Module:Infobox/Infobox universelle : Différence entre versions
Sauter à la navigation
Sauter à la recherche
fr>Zebulon84 (interface wikidata → wikidata (sinon bug car la fonction getids a évoluée)) |
(Aucune différence)
|
Version du 4 septembre 2017 à 06:17
La documentation pour ce module peut être créée à Module:Infobox/Infobox universelle/doc
local p = {}
local isInstance = require( 'Module:Wikidata' ).isInstance
function p.main(frame)
local item = frame.args[1]
local template = "Monument" -- plus ou moins passe partout
if isInstance("Q5", item, 0) then
template = "Biographie"
elseif isInstance("Q56061", item, 3) then
template = "Localité"
end
return template
end
return p