Modulo:Categoria per anno: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m args.everyNS default true |
m aggiornato Modulo:Controllo Wikidata, -everyNS +ns |
||
(12 versioni intermedie di un altro utente non mostrate) | |||
Riga 1:
local p = {}
local DEFAULT_PROP = 'P571'
function err(msg)▼
local DEFAULT_CHECK_GENRE = 'fs'
▲local function err(msg)
string.format('<span class="error">msg</span>', msg)
end
Riga 8 ⟶ 12:
local s = ''
args.
if not args.
return err('richiesto parametro
end
if not args.
args.
end
local
args.
args.
from = args.from
} )
local year = mw.ustring.match(value, '%d%d%d%d')
local year = require('Modulo:String')._match( {▼
} )▼
▲ if year and year ~= '' then
s = s .. string.format(
args.raw and '%s' or '[[Categoria:%s]]',
string.format(args.
)
end
end
if DEFAULT_PROP == args.prop and not args.checkCat then
args.checkCat = DEFAULT_CHECK_CAT
args.localValue,▼
args.checkGenre = DEFAULT_CHECK_GENRE
▲ args.controlloWikidataCat or 'Data di fondazione o creazione',
end
args.value,
▲ if check then
args.checkCat,
s = s .. check▼
genere = args.checkGenre,
ns = args.ns
▲ } )
if check then
▲ s = s .. check
end
end
|