Module:Political party and Module:Political party/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
No edit summary |
|||
Line 57: | Line 57: | ||
local party_info |
local party_info |
||
if party_alt then |
if party_alt then |
||
party = party_alt |
|||
if data_all[party_alt] then |
if data_all[party_alt] then |
||
party_info = data_all[party_alt] |
party_info = data_all[party_alt] |
||
Line 95: | Line 96: | ||
return party |
return party |
||
end |
end |
||
elseif out_type == 'link' then |
|||
return nil |
|||
else |
else |
||
return party |
|||
end |
|||
elseif return_value == nil then |
|||
if out_type == 'link' or out_type == 'altname' then |
|||
return party |
return party |
||
end |
end |