Modulo:DTGenerico: differenze tra le versioni
Vai alla navigazione
Vai alla ricerca
m (Redundant colon removed) |
m (Test Naval class category) |
||
Riga 90: | Riga 90: | ||
local ItemQ = mw.wikibase.getEntityIdForCurrentPage() | local ItemQ = mw.wikibase.getEntityIdForCurrentPage() | ||
local IsEpisode = false | local IsEpisode = false | ||
local OperatorName | |||
if not Item then | if not Item then | ||
Riga 134: | Riga 135: | ||
--AllRows[#AllRows + 1] = {{Prop[1], PropName .. ":"}, {PropValue}} | --AllRows[#AllRows + 1] = {{Prop[1], PropName .. ":"}, {PropValue}} | ||
AllRows[#AllRows + 1] = {{Prop[1], PropName}, {PropValue}} | AllRows[#AllRows + 1] = {{Prop[1], PropName}, {PropValue}} | ||
if Prop[1] == "P41" then | |||
OperatorName = PropValue | |||
end | |||
if AddSemantic then | if AddSemantic then | ||
mw.smw.set(PropName .. "=" .. PropValue) | mw.smw.set(PropName .. "=" .. PropValue) | ||
Riga 200: | Riga 204: | ||
GenericItem = SnakValue.qualifiers['P15'][1].datavalue.value .. " " .. GenericItem | GenericItem = SnakValue.qualifiers['P15'][1].datavalue.value .. " " .. GenericItem | ||
end | end | ||
--Naval class | |||
if Property == "P88" then | |||
GenericItem = GenericItem .. "[[Category:Prova]" | |||
end | |||
AccValues[#AccValues + 1] = GenericItem --.. "|" .. Header[2] .. "|" .. tostring(AddSemantic) | AccValues[#AccValues + 1] = GenericItem --.. "|" .. Header[2] .. "|" .. tostring(AddSemantic) | ||
elseif SnakValue.mainsnak.datavalue['type'] == 'time' then | elseif SnakValue.mainsnak.datavalue['type'] == 'time' then |