Modulo:Software/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
aggiornamento al 23 ago 2017 alle 14:39 |
fix wl cat |
||
(4 versioni intermedie di 2 utenti non mostrate) | |||
Riga 178:
function p.wikidataCategoriesFromMainTopic(frame)
local s = p._wikidataCategories( fromItemMainTopic() )
return s .. string.format('[[Categoria:
end
Riga 222:
]]
function p.yearsCategories(frame)
return p._yearsCategories( fromItem(frame), onlySoftwareArguments(frame).DataPrimaVersione )
end
Riga 278:
if tl_has then
-- Wikidata ha migliorato il template e il template aveva già altri valori
s = s .. '[[Categoria:
else
-- Wikidata ha migliorato il template che era vuoto
s = s .. '[[Categoria:
end
else
if p._templateHasExtraInformations(args) or count(tl_languages) > count(wd_languages) then
-- Nel template c'è qualcosa in più rispetto a Wikidata
s = s .. '[[Categoria:
elseif count(wd_languages) ~= 0 then
-- Non ha migliorato niente perchè sono gli stessi valori
s = s .. '[[Categoria:
end
end
Riga 296:
if tl_has and nszero then
-- solo se il template specifica linguaggi ma Wikidata no
s = s .. '[[Categoria:
end
end
Riga 828:
]]
function p._yearsCategories(from, value)
local mCategoryByYear = require('Modulo:Categoria per anno')._main
local
if '' ==
return mCategoryByYear
end
return mCategoryByYear
end
|