Volatile:ListField

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
 
<!----List fields of name "<nowiki>{{{1}}}</nowiki>" in namespace "<nowiki>{{{2}}}</nowiki>"---->
 
<!----List fields of name "<nowiki>{{{1}}}</nowiki>" in namespace "<nowiki>{{{2}}}</nowiki>"---->
<!---{{#formtag:form|action="/wiki/Volatile:ListField"| Showing groups of size >
+
{{#def:ARG1|{{{1}}}}}{{#def:ARG2|{{{2}}}}}{{#def:ARG3|{{{3|0}}}}}{{#formtag:form|action="/wiki/Volatile:ListField"| Showing groups of size >
 
{{#formtag:select|name="ARG1"|
 
{{#formtag:select|name="ARG1"|
{{#formtag:option|value="0" {{#ifeq:{{{3}}}||selected="yes"}}|0}}
+
{{#formtag:option|value="0" {{#ifeq:{{#var:ARG3}}||selected="yes"}}|0}}
{{#formtag:option|value="1" {{#ifeq:{{{3}}}|1|selected="yes"}}|1}}
+
{{#formtag:option|value="1" {{#ifeq:{{#var:ARG3}}|1|selected="yes"}}|1}}
{{#formtag:option|value="2" {{#ifeq:{{{3}}}|2|selected="yes"}}|2}}
+
{{#formtag:option|value="2" {{#ifeq:{{#var:ARG3}}|2|selected="yes"}}|2}}
{{#formtag:option|value="3" {{#ifeq:{{{3}}}|3|selected="yes"}}|3}}
+
{{#formtag:option|value="3" {{#ifeq:{{#var:ARG3}}|3|selected="yes"}}|3}}
 
{{#formtag:input|type="submit"}} }} }}--->
 
{{#formtag:input|type="submit"}} }} }}--->
  
Line 25: Line 25:
 
   end
 
   end
 
   table.sort(id)
 
   table.sort(id)
   local coff = tonumber("{{{3|0}}}")
+
   local coff = tonumber("{{#var:ARG3}}")
 
   if (coff == nil) then coff =0 else print("Printing groups more than size=" .. coff) end
 
   if (coff == nil) then coff =0 else print("Printing groups more than size=" .. coff) end
 
   for _,v in ipairs(id) do
 
   for _,v in ipairs(id) do
Line 33: Line 33:
 
       for i = 1,table.getn(list[v]) do
 
       for i = 1,table.getn(list[v]) do
 
         if (list[v][i] ~= list[v][i + 1]) then
 
         if (list[v][i] ~= list[v][i + 1]) then
           print("[[{{{2}}}:" .. list[v][i] .."|".. list[v][i] .."]]") end
+
           print("[[{{#var:ARG2}}:" .. list[v][i] .."|".. list[v][i] .."]]") end
 
       end
 
       end
 
     end
 
     end
 
   end
 
   end
 
|
 
|
{{#replace:{{#SearchLine:{{{1}}}|{{{2}}}}}|&#124;|&&}}
+
{{#replace:{{#SearchLine:{{#var:ARG1}}|{{#var:ARG2}}}}|&#124;|&&}}
 
}}
 
}}

Revision as of 20:23, 8 September 2011

Showing groups of size >
--->


Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox