Module:Sandbox/BrandonXLF/3: Difference between revisions

Content deleted Content added
Use yesno
Tag: Reverted
No edit summary
Tag: Reverted
Line 76:
end
if (frame:callParserFunction('#ifexist', mw.title.new(link, '1') ~= ''.exists or yesno(args['showred'])) and not yesno(args['nolink'])) then -- Check if the link show be shown
return '[[' .. link .. '|' .. display .. ']]' -- Return the link
else
Line 85:
-- Gets the wikitext for a place
local function getPlace(frame, place, args)
if frame:callParserFunctionmw.title.new('#ifexist', place .. ', Ontario', '1') ~= ''.exists or yesno(args['showred']) then
return '[[' .. place .. ', Ontario|' .. place .. ']]'
else