Module:Political party and Module:Political party/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
Undid revision 1153505214 by R'n'B (talk) this is already in the /I module as an alternate name?
 
Zukunft99 (talk | contribs)
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