Template:EditButton/CheckList
From Metabolomics.JP
< Template:EditButton(Difference between revisions)
Line 23: | Line 23: | ||
if (head ~= nil) then | if (head ~= nil) then | ||
body = string.sub(list[i],string.len(head)+1); | body = string.sub(list[i],string.len(head)+1); | ||
− | --%% あらかじめセットしてあるデータをチェック - データは | + | --%% あらかじめセットしてあるデータをチェック - データは"、"区切り %%-- |
− | if (string.match("{{#get:initset}}", " | + | if (string.match("{{#get:initset}}", "、" .. body .. "、", 0) == nil) then |
checked = '' | checked = '' | ||
else | else |