「モジュール:Fanpla」の版間の差分
ページの作成:「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…」 |
編集の要約なし |
||
| 13行目: | 13行目: | ||
local dataStore = {} | local dataStore = {} | ||
dataStore[' | dataStore['fanplaルームキー'] = fanpla_name | ||
local result = mw.smw.set( dataStore ) | local result = mw.smw.set( dataStore ) | ||