Modulo:DTGenerico: differenze tra le versioni

Vai alla navigazione Vai alla ricerca
Operator in class category
m (Space)
(Operator in class category)
Riga 87: Riga 87:
local ItemQ = mw.wikibase.getEntityIdForCurrentPage()
local ItemQ = mw.wikibase.getEntityIdForCurrentPage()
local IsEpisode = false
local IsEpisode = false
local OperatorName
local OperatorName = ""
local AstroRA = nil
local AstroRA = nil
local AstroD = nil
local AstroD = nil
Riga 182: Riga 182:
--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
if Prop[1] == "P41" then
OperatorName = mw.wikibase.getEntity(Value['id']).labels['it'].value .. "]]"
--String to be used with P88 Naval Class
end]==]
OperatorName = mw.wikibase.getEntity(Value['id']).labels['it'].value .. " - "
end
if AddSemantic then
if AddSemantic then
mw.smw.set(PropName .. "=" .. PropValue)
mw.smw.set(PropName .. "=" .. PropValue)
Riga 260: Riga 261:
--Naval class
--Naval class
if Property == "P88" then
if Property == "P88" then
GenericItem = GenericItem .. "[[Category:" .. mw.wikibase.getEntity(Value['id']).labels['it'].value .. "]]"
GenericItem = GenericItem .. "[[Category:" .. OperatorName .. mw.wikibase.getEntity(Value['id']).labels['it'].value .. "]]"
end
end

Menu di navigazione