Module:Sandbox/User:Microbrews/Variants: Difference between revisions
no edit summary
Microbrews (talk | contribs) No edit summary |
Microbrews (talk | contribs) No edit summary |
||
Line 13:
local query = {
'[[Variant of::'..variant_name..']]',
'?
'?Profession A #', -- Adding a # to this query makes it return plaintext instead of a link
'?Profession B #',
Line 38:
local formatted = {}
for _, entry in ipairs(smw_data) do
local name = entry['
local variant_name = name:gsub(' ' .. main_variant .. '$', '', 1)
table.insert(formatted, '[[' .. name .. '|' .. variant_name .. ']]')
|