Volatile:ListField

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
m
Line 2: Line 2:
 
   list = {}
 
   list = {}
 
   id = {}
 
   id = {}
   for page,data in stdin:gmatch("&&([%S]+)&&tribe= *([^\n]+) *") do
+
   for page,data in stdin:gmatch("&&([%S]+)&&{{{1}}} *([^\n]+) *") do
 
     if ((data ~= "-") and (data ~= " ")) then
 
     if ((data ~= "-") and (data ~= " ")) then
 
       tmp = list[data]
 
       tmp = list[data]
Line 19: Line 19:
 
     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("[[Bangladesh:" .. list[v][i] .."]]") end
+
         print("[[{{{2}}}:" .. list[v][i] .."]]") end
 
     end
 
     end
 
   end
 
   end
 
|
 
|
{{#replace:{{#SearchLine:tribe=|Bangladesh}}|||&&}}
+
{{#replace:{{#SearchLine:{{{1}}}|{{{2}}}}}|||&&}}
 
}}
 
}}

Revision as of 00:55, 9 February 2010

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox