Volatile:ListMolByReference: Difference between revisions

mNo edit summary
No edit summary
 
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}}}}


{{#replace:
{{#replace:
{{#lua:
{{#invoke:Common|ListMolByReference|
  idS = {}
  count=0
  for ref, sp, id in stdin:gmatch("&?&?([^&]+)&&([%w\., \(\)]+)&&([^\n]+)") do
    local S = idS[id]
    if (S == nil) then idS[id]={} S = idS[id] count = count + 1 end
    if (S[sp] == nil) then S[sp] = {ref}
    else table.insert(S[sp], ref) end
  end
  print("Showing below ".. count .. " structures.")
  for k,v in pairs(idS) do
    print("* [[" ..k.. "&" ..k.. "]] [[Image:" ..k.. ".png&200px]] ")
    for i,w in pairs(v) do
      print(i)
      for j,x in ipairs(w) do
        au, ja, yr = string.match(x, "([%w_]+)[^,]+,([^,]+),([%d]+)" )
        print('([[Reference:' ..x.. '&' ..au..'_'..yr..'_'..ja.. ']])')
      end
    end
  end
|
{{#var:list}}
{{#var:list}}
}}
}}
|&|{{#bar:}}}}
|&|{{#bar:}}}}

Latest revision as of 06:02, 29 January 2023

Searching IDs with in the reference namespace.


Showing below 0 structures.