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 = 'Drapeau', value = 'drapeau', property = 'P41'},
{type = 'row', label = 'Logo', value = 'logo'},
{type = 'row', label = 'Devise', value = 'devise', property = 'P1451'},
}
},
{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 = 'Localisation administrative', value = 'nature', property = 'P131'},
{type = 'row', label = 'Chef de l’exécutif', plurallabel = 'Chefs de l’exécutif', value = {'maire', 'chef'}, property = 'P6'},
{type = 'row', label = 'Assemblée', value = 'assemblée', property = 'P194'},
{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', 'nom officiel'}, property = 'P1448'}, -- nom donné par l'UAI
{type = 'row', label = 'Surnom', value = {'surnom', 'autres nom'}, property = 'P1449'}, -- 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 = 'Pays', plurallabel = 'Pays', value = 'continent', property = 'P17'}, -- dans le cas d'une planète de type terrestre uniquement
{type = 'row', label = 'Subdivision administrative', plurallabel = 'Subdivisions administratives', value = {'unité_admin', 'pays1_nom_subdivision1', 'pays1_nom_subdivision2', 'pays1_nom_subdivision3'}, property = 'P131'},
{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'},
{type = 'row', label = 'GNIS', value = 'gnis', property = 'P590'}
}
},
general.geoloc(),
}
}