Volatile:ListMolByReference: Difference between revisions

mNo edit summary
No edit summary
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Searching IDs with {{{1}}} in the reference namespace.  
Searching IDs with {{#get:1}} in the reference namespace.  
</noinclude>{{#def:list|{{#SearchLineReg:{{{1}}}|Reference}}}}
</noinclude>{{#def:list|{{#SearchLineReg:{{#get:1}}|Reference}}}}
Showing below {{#count:{{#var:list}}}} results of search <tt>{{{1}}}</tt>.
{{#repeat:InternalMolLink2|1|{{#var:list}}}}


{{#lua:
{{#replace:
  idS = {}
{{#invoke:Common|ListMolByReference|
  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("# [[Image:" ..k.. ".png]] ")
    for i,w in pairs(v) do
      print(i)
      for j,x in ipairs(w) do
        print(" [[Reference:" ..x.. "&ref]] ")
      end
    end
  end
|
{{#var:list}}
{{#var:list}}
}}
}}
|&|{{#bar:}}}}

Latest revision as of 06:02, 29 January 2023

Searching IDs with in the reference namespace.


Showing below 0 structures.