66 606
contributi
Nessun oggetto della modifica |
(Identify episode source) |
||
Riga 85: | Riga 85: | ||
local HTMLTable | local HTMLTable | ||
local CollectionTable = '' | local CollectionTable = '' | ||
local ExcludeP = { | local ExcludeP = {} | ||
local POnTree = {} | local POnTree = {} | ||
local Item = mw.wikibase.getEntity() | local Item = mw.wikibase.getEntity() | ||
local ItemQ = mw.wikibase.getEntityIdForCurrentPage() | local ItemQ = mw.wikibase.getEntityIdForCurrentPage() | ||
local IsEpisode = false | |||
if not Item then | if not Item then | ||
Item = mw.wikibase.getEntity('Q1') | Item = mw.wikibase.getEntity('Q1') | ||
Riga 96: | Riga 98: | ||
AddSemantic = true | AddSemantic = true | ||
end | end | ||
if frame.args['IsEpisode'] ~= nil then | |||
IsEpisode = frame.args['IsEpisode'] | |||
end | |||
ExcludeP = {P3 = true, P7 = true, P14 = false, P21 = IsEpisode, P23 = true, P26 = true, P30 = true, P37 = true, P46 = true, P58 = true, P68 = true, P52 = true, P79 = true, P90 = true} | |||
AllP = mw.wikibase.orderProperties(Item:getProperties()) | AllP = mw.wikibase.orderProperties(Item:getProperties()) |