Sandbox91
From Metabolomics.JP
(Difference between revisions)
(4 intermediate revisions by one user not shown) | |||
Line 5: | Line 5: | ||
{{#get:title}} 「species」や「効能」と言ったようなタイトル | {{#get:title}} 「species」や「効能」と言ったようなタイトル | ||
--> | --> | ||
− | {{# | + | {{#def:listpage|{{#if:{{#get:listpage}}|{{#get:listpage}}|Test}}}} <!-- リストページ def. Test --> |
{{#lua: | {{#lua: | ||
Line 69: | Line 69: | ||
if(flag[i] == 1) then | if(flag[i] == 1) then | ||
-- <nowiki>{{#formtag:input|type="checkbox" value="data" name="list" id="data"}}{{#formtag:label|for="data"|data}}</nowiki> | -- <nowiki>{{#formtag:input|type="checkbox" value="data" name="list" id="data"}}{{#formtag:label|for="data"|data}}</nowiki> | ||
− | print('{{#form' .. 'tag:input|type="checkbox" value="' .. list[i] .. '" name="list" id="' .. list[i] .. '"' .. checked .. '}}{{#form' .. 'tag:label|for="' .. list[i] .. '"|' .. list[i] .. '}}<br>') | + | print('{{#form' .. 'tag:input|type="checkbox" value="' .. list[i] .. '" name="list[]" id="' .. list[i] .. '"' .. checked .. '}}{{#form' .. 'tag:label|for="' .. list[i] .. '"|' .. list[i] .. '}}<br>') |
else | else | ||
print(list[i] .. "<br>") | print(list[i] .. "<br>") | ||
Line 76: | Line 76: | ||
print("</span>") | print("</span>") | ||
end | end | ||
+ | print('{{#form' .. 'tag:input|type="hidden" name="listpage" value="{{#var:listpage}}"}}') | ||
print('{{#form' .. 'tag:input|type="hidden" name="title" value="{{#get:title}}"}}') | print('{{#form' .. 'tag:input|type="hidden" name="title" value="{{#get:title}}"}}') | ||
print('{{#form' .. 'tag:input|type="hidden" name="hookinsert" value="__HOOK_AND_INSERT__"}}') | print('{{#form' .. 'tag:input|type="hidden" name="hookinsert" value="__HOOK_AND_INSERT__"}}') | ||
Line 81: | Line 82: | ||
print('}}') | print('}}') | ||
− | |{{# | + | |{{#SearchLine:-|Index|{{#var:listpage}}}} |
+ | }} |
Latest revision as of 23:20, 28 February 2009