Template:EditButton/CheckList
From Metabolomics.JP
< Template:EditButton(Difference between revisions)
Line 24: | Line 24: | ||
body = string.sub(list[i],string.len(head)+1); | body = string.sub(list[i],string.len(head)+1); | ||
--%% あらかじめセットしてあるデータをチェック - データは"、"区切り %%-- | --%% あらかじめセットしてあるデータをチェック - データは"、"区切り %%-- | ||
− | if (string.match("{{#get:initset}}", "、" .. body .. "、", 0) | + | if (string.match("{{#get:initset}}", "、" .. body .. "、", 0) or |
− | string.match("{{#get:initset}}", "^" .. body .. "、", 0) | + | string.match("{{#get:initset}}", "^" .. body .. "、", 0) or |
− | string.match("{{#get:initset}}", "、" .. body .. "$", 0) | + | string.match("{{#get:initset}}", "、" .. body .. "$", 0) ) |
checked = ' checked="yes"' | checked = ' checked="yes"' | ||
else | else |
Revision as of 13:19, 9 April 2009
./lua: /tmp/mw_ex_lua_Bwsdtb:23: 'then' expected near 'checked'