« Module:Infobox/Mission » : différence entre les versions
mAucun résumé des modifications |
mAucun résumé des modifications |
||
Ligne 20 : | Ligne 20 : | ||
{ type = 'table', title = 'Missions associées', rows = { | { type = 'table', title = 'Missions associées', rows = { | ||
{ type = 'succession', value = { | { type = 'succession', value = { | ||
before = localdata['précédente'], | before = function(localdata) return localdata['précédente'] end, | ||
after = localdata['suivante'] | after = function(localdata) return localdata['suivante'] end | ||
}} | }} | ||
}}, | }}, |
Dernière version du 29 juillet 2021 à 19:23
Ce module contient le paramétrage de l'infobox {{Infobox mission}}.
local localdata = require('Module:Infobox/Localdata')
return {
parts = {
{ type = 'title', value = 'nom', subtitle = 'sous-titre', icon = 'icône', subhead = { games = 'jeux', subject = 'Mission', link = 'Missions' }},
{ type = 'images', imageparameters = { 'image', 'image2', 'image3', 'image4', 'image5' }, captionparameter = { 'légende', 'image desc' }},
{ type = 'table', separator = true, rows = {
{ type = 'row', label = 'Chapitre', value = 'chapitre' },
{ type = 'row', label = 'Lieu', value = 'lieu' },
{ type = 'row', label = 'Donnée par', value = 'donnée par' },
{ type = 'row', label = 'Récompenses', value = 'récompenses' }
}},
{ type = 'table', title = 'Objectifs', rows = {
{ type = 'row', label = 'Principal', value = 'principal' },
{ type = 'row', label = 'Optionnel', value = 'optionnel' }
}},
{ type = 'table', title = 'Technique', rows = {
{ type = 'row', label = 'Fichier dialogue', value = 'dialogue' }
}},
{ type = 'table', title = 'Missions associées', rows = {
{ type = 'succession', value = {
before = function(localdata) return localdata['précédente'] end,
after = function(localdata) return localdata['suivante'] end
}}
}},
{ type = 'text', value = 'pied' }
}
}