« Module:Infobox/Lieu » : différence entre les versions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 2 : | Ligne 2 : | ||
-- sujet | -- sujet | ||
local subject = localdata['type'] or ' | local subject = localdata['type'] or 'lieu' | ||
subjects = { | subjects = { | ||
["ville"] = "Ville", | ["ville"] = "Ville", |
Version du 19 juillet 2022 à 08:27
localdata = require( "Module:Infobox/Localdata" )
-- sujet
local subject = localdata['type'] or 'lieu'
subjects = {
["ville"] = "Ville",
}
subject = subjects[subject] or 'lieu'
return {
parts = {
{ type = "title", value = "nom", subtitle = "sous-titre", icon = "icône", subhead = { subject = subject, link = "Starfield" }},
{ type = "images", imageparameters = { "image", "image2", "image3", "image4", "image5" }, captionparameter = { "légende", "image desc" }},
{ type = "table", separator = true, rows = {
{ type = "row", label = "Corporation", value = "corporation" },
}},
{ type = "text", value = "pied" }
}
}