Moduł:Partie polityczne: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
Utworzono nową stronę "local function getPartyParams(country) mw.logObject(country, "country") local moduleprefix = "Moduł:Partie polityczne/dane/" local moduletitle = mw.title.new(country..."
 
Nie podano opisu zmian
Linia 58:
mw.logObject({desc, link}, "desc, link")
if link and desc and (link ~= desc) then
mw.logObject("[[w:"..link.."|"..desc.."]]", "return nazwa A")
return "[[w:"..link.."|"..desc.."]]"
elseif link then
mw.logObject("[[w:"..link.."]]", "return nazwa B")
return "[[w:"..link.."]]"
elseif desc then
mw.logObject(desc, "return nazwa C")
Linia 121:
local link = party.link
if link and abbr then
return link == abbr and ("[[w:"..link.."]]") or ("[[w:"..link.."|"..abbr.."]]")
elseif abbr then
return abbr