Module:Sandbox/User:Alsang: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 106: | Line 106: | ||
:tag('td') |
:tag('td') |
||
:wikitext('[[File:' .. page.name .. ' (perfect) dye.png]]') |
:wikitext('[[File:' .. page.name .. ' (perfect) dye.png]]') |
||
:done() |
|||
:done() |
|||
end |
|||
return out |
|||
end |
|||
function p.carp() |
|||
local query = '[[Variant type::~*]] AND [[Category:Carpenter]] AND [[~*Post*]]|?#-=name|limit=500' |
|||
local results = mw.smw.ask(query) |
|||
local out = mw.html.create('table') |
|||
:addClass('wikitable sortable') |
|||
for _,page in ipairs(results) do |
|||
out:tag('tr') |
|||
:tag('th') |
|||
:wikitext('[[' .. page.name .. ']]') |
|||
:done() |
|||
:tag('td') |
|||
:wikitext('[[File:Coarse ' .. page.name .. '.png]]') |
|||
:done() |
|||
:tag('td') |
|||
:wikitext('[[File:Rugged ' .. page.name .. '.png]]') |
|||
:done() |
|||
:tag('td') |
|||
:wikitext('[[File:Average ' .. page.name .. '.png]]') |
|||
:done() |
|||
:tag('td') |
|||
:wikitext('[[File:Fine ' .. page.name .. '.png]]') |
|||
:done() |
|||
:tag('td') |
|||
:wikitext('[[File:Sturdy ' .. page.name .. '.png]]') |
|||
:done() |
|||
:tag('td') |
|||
:wikitext('[[File:Perfect ' .. page.name .. '.png]]') |
|||
:done() |
:done() |
||
:done() |
:done() |