Modulo:Wikidata/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m spazio |
aggiornato alla versione corrente |
||
Riga 100:
local function formatMonolingualtext(value, args)
local ret =
if args.showlang then▼
ret = value.text
ret = mLanguages.lingue({ value.language }) .. ' ' .. ret
end▼
end▼
end
return ret
Line 408 ⟶ 413:
if claim.rank == rank then
table.insert(ret, claim)
▲ end
▲ if not args.includelang or args.includelang:match('%f[a-z]' .. value.language .. '%f[^a-z]') then
▲ end
end
end
Line 449 ⟶ 438:
claims = mw.wikibase.getAllStatements(entityId, propertyId)
claims = filterRankValue(claims, args.rank)
end
|