Module:Variants: Difference between revisions
Only show the variant name and do not repeat the variant category name
(Print unknown icon for professions with only a level) |
(Only show the variant name and do not repeat the variant category name) |
||
Line 19:
'?Profession Level A High',
'?Profession Level B High',
'?Variant name',
get_images and '?Image#64px;x64px = Image' or nil,
limit = args.limit or 500,
Line 36 ⟶ 37:
local formatted = {}
for _, entry in ipairs(smw_data) do
local pipe = page:find('|')
if pipe then
page = page:sub(3, pipe-1)
else
page = page:sub(3, -3)
end
table.insert(formatted, ('[[%s|%s]]'):format(page, entry['Variant name']))
end
contents = table.concat(formatted, ' • ')
|