Volatile:ListMolByReference: Difference between revisions

mNo edit summary
mNo edit summary
Line 3: Line 3:
</noinclude>{{#def:list|{{#SearchLineReg:{{{1}}}|Reference}}}}
</noinclude>{{#def:list|{{#SearchLineReg:{{{1}}}|Reference}}}}
Showing below {{#count:{{#var:list}}}} results of search <tt>{{{1}}}</tt>.
Showing below {{#count:{{#var:list}}}} results of search <tt>{{{1}}}</tt>.
{{#repeat:InternalMolLink2|1|{{#var:list}}}}


{{#replace:
{{#lua:
{{#lua:
   idS = {}
   idS = {}
Line 18: Line 18:
       print(i)
       print(i)
       for j,x in ipairs(w) do
       for j,x in ipairs(w) do
         print(" [[Reference:" ..x.. "&ref]] ")
         print("([[Reference:" ..x.. "&ref]])")
       end
       end
     end
     end
Line 25: Line 25:
{{#var:list}}
{{#var:list}}
}}
}}
|&|{{#bar:}}}}

Revision as of 03:58, 10 March 2013

Searching IDs with {{{1}}} in the reference namespace.

Showing below 1 results of search {{{1}}}.

{{#lua:

 idS = {}
 for ref, sp, id in stdin:gmatch("|?|?([%w\. ]+)||([%w\., ]+)||([^\n]+)") do
   local S = idS[id]
   if (S == nil) then idS[id]={} S = idS[id] end
   if (S[sp] == nil) then S[sp] = {ref}
   else table.insert(S[sp], ref) end
 end
 for k,v in pairs(idS) do
   print("# File:" ..k.. ".png ")
   for i,w in pairs(v) do
     print(i)
     for j,x in ipairs(w) do
       print("(ref)")
     end
   end
 end

| {{{1}}} }}