67 251
contributi
mNessun oggetto della modifica |
mNessun oggetto della modifica Etichetta: Ripristino manuale |
||
Riga 175: | Riga 175: | ||
--local PropValue = table.concat(PropertiesOnTree(Prop[1], Prop[2], Prop[3], true)) | --local PropValue = table.concat(PropertiesOnTree(Prop[1], Prop[2], Prop[3], true)) | ||
local PropValue = PropertiesOnTree(Prop[1], Prop[2], Prop[3], true) | local PropValue = PropertiesOnTree(Prop[1], Prop[2], Prop[3], true) | ||
if (PropValue ~= nil) and (PropValue ~= "") then | if (PropValue ~= nil) and (PropValue ~= "") then | ||
local PropName = mw.wikibase.getLabelByLang(Prop[1], 'it') or mw.wikibase.getLabel(Prop[1]) | local PropName = mw.wikibase.getLabelByLang(Prop[1], 'it') or mw.wikibase.getLabel(Prop[1]) | ||
Riga 187: | Riga 184: | ||
--OperatorName = string.sub("[[Flotta Stellare]]", 3, -3) | --OperatorName = string.sub("[[Flotta Stellare]]", 3, -3) | ||
--OperatorName = string.gsub("[[Flotta Stellare|Flotta Stellare]]", "|.+]]", ""):gsub("%[%[", "") .. " - " | --OperatorName = string.gsub("[[Flotta Stellare|Flotta Stellare]]", "|.+]]", ""):gsub("%[%[", "") .. " - " | ||
OperatorName = string.gsub(PropValue | OperatorName = string.gsub(PropValue, "|.+]]", ""):gsub("%[%[", "") .. " - " | ||
--mw.smw.set("OperatorName1=" .. OperatorName) | --mw.smw.set("OperatorName1=" .. OperatorName) | ||
end | end |