Module:Infobox/TestManoillon
Apparence
[voir] [modifier] [historique] [purger]
Cette page définit un module d'infobox.
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 geoloc = require "Module:Infobox/Fonctions/Géolocalisation"
local da = require "Module:Infobox/Fonctions/Division administrative"
local wikidata = require('Module:Wikidata')
return
{
maincolor = '#DDFFDD',
parts =
{
{
type = 'title',
value = 'nom',
icon = 'map',
},
{
type = 'images',
property = 'P94',
defaultcaption = 'Blason',
defaultsize = '65px',
numval = 1 -- 1 image au maximum (utile essentiellement pour les requêtes Wikidata)
},
{
type = 'images',
imageparameters = 'image', -- l'image est définie ici par le paramètre "image",
captionparameter = 'légende', -- la légende est définie par le paramètre "légende",
defaultimage = 'foo.jpg', --quand il n'y a pas d'image, monter "foo.jpg",
property = 'P18',
numval = 1 -- 1 image au maximum (utile essentiellement pour les requêtes Wikidata)
},
{
type = 'table',
title = 'Administration',
rows = {
{type = 'mixed', label = 'Pays', value = 'a', property = 'P17'},
{type = 'mixed', label = '[[Canton suisse|Canton]]', value = 'a', property = 'P131', rank="preferred"},
{type = 'mixed', label = '[[District suisse|District]]', value = 'a', property = 'P131', rank="normal"},
{type = 'mixed', label = 'Communes limitrophes', property = 'P47', rank='valid'},
}
},
{
type = 'table',
title = 'Démographie',
rows = {
{type = 'mixed', label = 'A', value = 'a'},
}
},
{
type = 'table',
title = 'Géographie',
rows = {
{type = 'mixed', label = 'A', value = 'a'},
}
},
{
type = 'table',
title = 'Divers',
rows = {
{type = 'mixed', label = 'A', value = 'a'},
}
},
{
type = 'table',
title = 'Localisation',
rows = {
{type = 'mixed', label = 'A', value = 'a'},
}
},
{
type = 'table',
title = 'Liens',
rows = {
{type = 'mixed', label = 'A', value = 'a'},
}
},
{
type = 'table',
title = 'Sources',
rows = {
{type = 'mixed', label = 'A', value = 'a'},
}
},
}
}