« Module:Infobox/Lieu » : différence entre les versions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 4 : | Ligne 4 : | ||
local subject = localdata['type'] or 'Jeu vidéo' | local subject = localdata['type'] or 'Jeu vidéo' | ||
subjects = { | subjects = { | ||
[" | ["ville"] = "Ville", | ||
} | } | ||
subject = subjects[subject] or ' | subject = subjects[subject] or 'lieu' | ||
return { | return { |
Version du 19 juillet 2022 à 08:26
localdata = require( "Module:Infobox/Localdata" )
-- sujet
local subject = localdata['type'] or 'Jeu vidéo'
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" }
}
}