Softyu (トーク | 投稿記録)
ページの作成:「local p = {}; local function setProperty(fanpla_name) -- メイン空間のみ if not mw.title.getCurrentTitle().namespace == 0 then return true; end if not mw.smw then return true; end local dataStore = {} dataStore['fanpla_nameルームキー'] = fanpla_name local result = mw.smw.set( dataStore ) if result == true then -- everything ok else -- error message to be found in result.error end end…」
 
Softyu (トーク | 投稿記録)
編集の要約なし
 
13行目: 13行目:
      
      
     local dataStore = {}
     local dataStore = {}
     dataStore['fanpla_nameルームキー'] = fanpla_name
     dataStore['fanplaルームキー'] = fanpla_name


     local result = mw.smw.set( dataStore )
     local result = mw.smw.set( dataStore )