Module:Infobox/Subdivision administrative
Apparence
[voir] [modifier] [historique] [purger]
Cette page définit un module d'infobox. Pour les conseils sur l'usage de ce module, voyez Modèle:Infobox Subdivision administrative.
La documentation de ce module est générée par le modèle {{Documentation module}}.
Elle est incluse depuis la page Modèle:Documentation module d'infobox. Veuillez placer les catégories sur cette page-là.
Les éditeurs peuvent travailler dans le bac à sable (créer).
Voir les statistiques d'appel depuis le wikicode sur l'outil wstat et les appels depuis d'autres modules.
local general = require "Module:Infobox/Fonctions"
local wd = require "Module:Interface Wikidata".fromLua
local linguistic = require "Module:Linguistique"
local function age()
local s = wd.formatAndCat{entity = item, property = "P571", conjtype= "or"}
if s then
return "il y a " .. s
end
end
return
{
maincolor = '#FFDEAD',
parts = {
general.title(),
general.mainimage(), --rajouter upright
{type = 'table', title = 'Symboles', rows = {
{type = 'row', label = 'Blason', value = 'blason', property = 'P237'},
{type = 'row', label = 'Logo', value = 'logo'},
}
},
{type = 'table', title = 'Histoire', rows = {
{type = 'row', label = 'Fondation', value = 'fondation', property = 'P571'},
{type = 'row', label = 'Fondateur', value = 'fondateur', property = 'P112'},
{type = 'row', label = 'Éponyme', value = 'éponyme', property = 'P138'},
{type = 'row', label = 'Constitution', value = 'constitution'},
}
},
{type = 'table', title = 'Administration', rows = {
{type = 'row', label = 'Type', plurallabel = 'Types',value = 'type', property = 'P31'},
{type = 'row', label = 'Nature', value = 'nature'}, -- obsolète car maintenant inclu dans la propriété type
{type = 'row', label = 'Activité', value = 'activité'},
}
},
{type = 'table', title = 'Démographie', rows = {
{type = 'row', label = 'Gentilé', value = 'gentilé', property = 'P1549'},
{type = 'row', label = 'Population', value = 'population', property = 'P1082'},
}
},
{type = 'table', title = 'Géographie', rows = {
{type = 'row', label = 'Nom international', value = 'nom international', property = 'P1448'}, -- nom donné par l'UAI
{type = 'row', label = 'Astre', value = 'astre', property = 'P376'}, -- corps astronomique où se trouve le lieu dont il est question
{type = 'row', label = 'Continent', value = 'continent', property = 'P30'}, -- dans le cas d'une planète de type terrestre uniquement
{type = 'row', label = 'Région', value = 'région', property = 'P706'}, -- régions géographiques sans quadrangle
general.coordinates(),
{type = 'row', label = 'Altitude', value = 'altitude', property = 'P2044'},
{type = 'row', label = 'Superficie', value = 'surface', wikidata = {property = 'P2046', targetunit = 'square kilometer'}},
}
},
{type = 'table', title = 'Identifiants', rows = {
{type = 'row', label = 'Code postal', value = 'cp', property = 'P281'},
{type = 'row', label = 'Site web', value = 'url', property = 'P856'},
{type = 'row', label = 'INSEE', value = 'insee', property = 'P374'}
}
},
general.geoloc(),
}
}