Module:Sandbox/User:Microbrews/Variants: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 13:
local query = {
'[[Variant of::'..variant_name..']]',
'?Name#-=page',
'?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['Namepage']
local variant_name = name:gsub(' ' .. main_variant .. '$', '', 1)
table.insert(formatted, '[[' .. name .. '|' .. variant_name .. ']]')
291

edits