Module:Infobox/Saison TV

De Les Archives de Vault-Tec
Révision datée du 15 mai 2024 à 18:45 par Atsarb (discussion | contributions) (Page créée avec « local localdata = require('Module:Infobox/Localdata') function buildSubject(localdata) local subject = 'Saison' if localdata['type'] then local types = { ['saison'] = 'Saison' } subject = types[localdata['type']:lower()] or subject end return subject end return { parts = { { type = "title", value = "nom", subtitle = "sous-titre", icon = "icône", subhead = { games = 'série', subject = buildSubject(localdata) }}, { type = "images",... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Documentation du module

Ce module contient le paramétrage de l'infobox {{Infobox saison TV}}.

Documentation transclues de Module:Infobox/Saison TV/doc.
local localdata = require('Module:Infobox/Localdata')

function buildSubject(localdata)
	local subject = 'Saison'
	if localdata['type'] then
		local types = {
			['saison']             = 'Saison'
		}
		subject = types[localdata['type']:lower()] or subject
	end
	return subject
end

return {
	parts = {
		{ type = "title", value = "nom", subtitle = "sous-titre", icon = "icône", subhead = { games = 'série', subject = buildSubject(localdata) }},
		{ type = "images", imageparameters = { "image", "image2", "image3", "image4", "image5" }, captionparameter = { "légende", "image desc" }},
		{ type = "table", title = 'Information', separator = true, rows = {
			{ type = "row", label = "Date de diffusion ", value = "date", "diffusion" },
			{ type = "row", label = "Durée", value = "durée" },
			{ type = "row", label = "Âge", value = "age" },
			{ type = "row", label = "Description", value = "description" },
		}},
		{ type = 'table', rows = {
			{ type = 'succession', value = {
				before = function(localdata) return localdata['précédent'] end,
				after  = function(localdata) return localdata['suivant'] end
			}},
			{ type = 'row1col', value = { 'partie de' } }
		}},
		{ type = "text", value = "pied" }
	}
}