Modulo:Software/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
prova fix html |
fix wl cat |
||
(6 versioni intermedie di 2 utenti non mostrate) | |||
Riga 34:
--[[
* @param string
* @TODO ora prende il primo, a prescindere dalla lingua (credo).
* @return string
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 683:
--[[
* Ha un certo tipo di licenza?
*
* Per motivi di performance dal 29 luglio 2017 si cerca solo fino alla prima licenza identificabile.
*
* @param type FREE|PROPRIETARY|UNKNOWN
Riga 691 ⟶ 693:
for _, l in pairs( p._licenses(from) ) do
l = rawProperty(l)
if type ~= UNKNOWN then
return type == retrievedType
end
end
Riga 699 ⟶ 702:
--[[
* La voce
*
* @param from string|nil Wikidata item
Riga 709 ⟶ 712:
--[[
* La voce
*
* @param from string|nil Wikidata item
Riga 825 ⟶ 828:
]]
function p._yearsCategories(from, value)
local mCategoryByYear = require('Modulo:Categoria per anno')._main
local
if '' ==
return mCategoryByYear
end
return mCategoryByYear
end
|