Anonimo

Modulo:DTGenerico: differenze tra le versioni

Da Wikitrek.
m
Test
Nessun oggetto della modifica
m (Test)
Riga 198: Riga 198:
--OperatorName = string.gsub("[[Flotta Stellare|Flotta Stellare]]", "|.+]]", ""):gsub("%[%[", "") .. " - "
--OperatorName = string.gsub("[[Flotta Stellare|Flotta Stellare]]", "|.+]]", ""):gsub("%[%[", "") .. " - "
OperatorName = string.gsub(PropValue, "|.+]]", ""):gsub("%[%[", "") .. " - "
OperatorName = string.gsub(PropValue, "|.+]]", ""):gsub("%[%[", "") .. " - "
mw.smw.set("OperatorName=" .. OperatorName)
end
end
if AddSemantic then
if AddSemantic then
Riga 275: Riga 274:
--Naval class
--Naval class
if Property == "P88" then
if Property == "P88" then
mw.smw.set("OperatorName=" .. OperatorName)
GenericItem = GenericItem .. "[[Category:" .. OperatorName .. mw.wikibase.getEntity(Value['id']).labels['it'].value .. "]]"
GenericItem = GenericItem .. "[[Category:" .. OperatorName .. mw.wikibase.getEntity(Value['id']).labels['it'].value .. "]]"
end
end