Content deleted Content added
BrandonXLF (talk | contribs) Show error for unknown type |
BrandonXLF (talk | contribs) Only show the shield when it exists and show "Terminus" |
||
Line 24:
end
if shield and shield ~= '' then
out = out .. string.format('[[File:%s|15px|alt=%s]]', shield, alt) .. ' ' end
if not link or link == '' then
out = out
else
out = out
end
if out ~= '' then
out = "'''" .. out .. "'''"
end
return
end
Line 71 ⟶ 77:
local out = ''
while templateArgs[prefix .. index] or (index == 1 and templateArgs[prefix ]) do
local route = templateArgs[prefix .. index]
or (index == 1 and templateArgs[prefix] or '')
Line 88 ⟶ 94:
index = index + 1
end
if out == '' then
return "'''Terminus'''"
end
return label .. ' ' .. (index - 1 > 1 and 'routes' or 'route') .. '<br>' .. out
|