Différences entre les versions de « Module:Boîte d'informations (Configuration) »
Aller à la navigation
Aller à la recherche
(6 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 13 : | Ligne 13 : | ||
-- Box types | -- Box types | ||
p.availableBoxes = { | p.availableBoxes = { | ||
-- Character | |||
character = { | |||
{ | |||
title = 'Informations personnelles', | title = 'Informations personnelles', | ||
items = { | items = { | ||
Ligne 29 : | Ligne 29 : | ||
} | } | ||
}, | }, | ||
{ | |||
title = 'Activités & Relations', | title = 'Activités & Relations', | ||
items = { | items = { | ||
Ligne 75 : | Ligne 75 : | ||
} | } | ||
} | } | ||
}, | |||
-- Location | |||
location = { | |||
{ | { | ||
title = 'Localisation', | title = 'Localisation', | ||
items = { | items = { | ||
{key = 'carte', title = 'Sur la carte'}, | |||
{key = 'pays', title = 'Pays'}, | {key = 'pays', title = 'Pays'}, | ||
{key = 'état', title = 'État'}, | {key = 'état', title = 'État'}, | ||
Ligne 98 : | Ligne 98 : | ||
{key = 'capitale', title = 'Capitale'}, | {key = 'capitale', title = 'Capitale'}, | ||
{key = 'villes', title = 'Ville(s)'}, | {key = 'villes', title = 'Ville(s)'}, | ||
{key = 'points interets', title = 'Point(s) d\'intérêt'}, | |||
{key = 'langues', title = 'Langue(s)'}, | {key = 'langues', title = 'Langue(s)'}, | ||
{key = 'espèces', title = 'Espèce(s)'}, | {key = 'espèces', title = 'Espèce(s)'}, | ||
{key = 'caractéristiques', title = 'Caractéristique(s)'} | {key = 'caractéristiques', title = 'Caractéristique(s)'}, | ||
} | |||
}, | |||
{ | |||
title = 'Politique', | |||
items = { | |||
{key = 'gouvernement', title = 'Gouvernement'}, | |||
{key = 'leader', title = 'Leader'} | |||
} | } | ||
}, | }, | ||
{ | { | ||
title = 'Évènements', | title = 'Évènements', | ||
Ligne 126 : | Ligne 126 : | ||
{key = 'séries', title = 'Séries TV'}, | {key = 'séries', title = 'Séries TV'}, | ||
{key = 'livres', title = 'Livres'} | {key = 'livres', title = 'Livres'} | ||
} | |||
}, | |||
{ | |||
title = 'Emploi', | |||
items = { | |||
{key = 'gentilé', title = 'Gentilé'}, | |||
{key = 'articles', title = 'Articles'} | |||
} | } | ||
}, | }, | ||
Ligne 132 : | Ligne 139 : | ||
items = { | items = { | ||
{key = 'version originale', title = 'Version originale'}, | {key = 'version originale', title = 'Version originale'}, | ||
{key = 'version ancienne langue', title = 'Ancienne | {key = 'version ancienne langue', title = 'Ancienne langue'}, | ||
{key = 'version ancienne traduction', title = 'Ancienne traduction'}, | {key = 'version ancienne traduction', title = 'Ancienne traduction'}, | ||
{key = 'version nouvelle traduction', title = 'Nouvelle traduction'} | {key = 'version nouvelle traduction', title = 'Nouvelle traduction'} | ||
} | } | ||
} | } | ||
}, | |||
-- Book | -- Book | ||
book = { | book = { | ||
Ligne 143 : | Ligne 150 : | ||
title = 'Informations', | title = 'Informations', | ||
items = { | items = { | ||
{key = 'auteur', title = 'Auteur(s)'}, | {key = 'auteur', title = 'Auteur(s)'}, | ||
{key = 'pays', title = 'Pays'}, | {key = 'pays', title = 'Pays'}, | ||
Ligne 228 : | Ligne 235 : | ||
items = { | items = { | ||
{key = 'version originale', title = 'Version originale'}, | {key = 'version originale', title = 'Version originale'}, | ||
{key = 'version ancienne langue', title = 'Ancienne | {key = 'version ancienne langue', title = 'Ancienne langue'}, | ||
{key = 'version ancienne traduction', title = 'Ancienne traduction'}, | {key = 'version ancienne traduction', title = 'Ancienne traduction'}, | ||
{key = 'version nouvelle traduction', title = 'Nouvelle traduction'} | {key = 'version nouvelle traduction', title = 'Nouvelle traduction'} | ||
Ligne 252 : | Ligne 259 : | ||
title = 'Localisation', | title = 'Localisation', | ||
items = { | items = { | ||
{key = 'carte', title = 'Sur la carte'}, | |||
{key = 'pays', title = 'Pays'}, | {key = 'pays', title = 'Pays'}, | ||
{key = 'état', title = 'État'}, | {key = 'état', title = 'État'}, | ||
Ligne 280 : | Ligne 287 : | ||
items = { | items = { | ||
{key = 'version originale', title = 'Version originale'}, | {key = 'version originale', title = 'Version originale'}, | ||
{key = 'version ancienne langue', title = 'Ancienne | {key = 'version ancienne langue', title = 'Ancienne langue'}, | ||
{key = 'version ancienne traduction', title = 'Ancienne traduction'}, | {key = 'version ancienne traduction', title = 'Ancienne traduction'}, | ||
{key = 'version nouvelle traduction', title = 'Nouvelle traduction'} | {key = 'version nouvelle traduction', title = 'Nouvelle traduction'} | ||
Ligne 294 : | Ligne 301 : | ||
{key = 'titre dirigeante', title = 'Titre dirigeante'}, | {key = 'titre dirigeante', title = 'Titre dirigeante'}, | ||
{key = 'dirigeante', title = 'Dirigeante'} | {key = 'dirigeante', title = 'Dirigeante'} | ||
} | |||
} | |||
}, | |||
-- Aiel clan | |||
aielClan = { | |||
{ | |||
title = 'Informations', | |||
items = { | |||
{key = 'chef', title = 'Chef de tribu'}, | |||
{key = 'place forte', title = 'Place forte'}, | |||
{key = 'clans', title = 'Clan(s)'} | |||
} | |||
}, | |||
{ | |||
title = 'Traductions', | |||
items = { | |||
{ key = 'version originale', title = 'Version originale' }, | |||
{ key = 'version ancienne traduction', title = 'Ancienne traduction' }, | |||
{ key = 'version nouvelle traduction', title = 'Nouvelle traduction' } | |||
} | |||
} | |||
}, | |||
-- Aiel sept | |||
aielSept = { | |||
{ | |||
title = 'Informations', | |||
items = { | |||
{ key = 'tribu', title = 'Tribu' }, | |||
{ key = 'chef', title = 'Chef de clan' }, | |||
{ key = 'place forte', title = 'Place forte' } | |||
} | |||
}, | |||
{ | |||
title = 'Traductions', | |||
items = { | |||
{ key = 'version originale', title = 'Version originale' }, | |||
{ key = 'version ancienne traduction', title = 'Ancienne traduction' }, | |||
{ key = 'version nouvelle traduction', title = 'Nouvelle traduction' } | |||
} | |||
} | |||
}, | |||
-- Aiel warrior society | |||
aielWarriorSociety = { | |||
{ | |||
title = 'Informations', | |||
items = { | |||
{ key = 'chef', title = 'Chef' }, | |||
{ key = 'fonction', title = 'Fonction' } | |||
} | |||
}, | |||
{ | |||
title = 'Traductions', | |||
items = { | |||
{ key = 'version originale', title = 'Version originale' }, | |||
{ key = 'version ancienne langue', title = 'Ancienne langue' }, | |||
{ key = 'version ancienne traduction', title = 'Ancienne traduction' }, | |||
{ key = 'version nouvelle traduction', title = 'Nouvelle traduction' } | |||
} | } | ||
} | } | ||
Ligne 303 : | Ligne 367 : | ||
items = { | items = { | ||
{key = 'version originale', title = 'Version originale'}, | {key = 'version originale', title = 'Version originale'}, | ||
{key = 'version ancienne langue', title = 'Ancienne | {key = 'version ancienne langue', title = 'Ancienne langue'}, | ||
{key = 'version ancienne traduction', title = 'Ancienne traduction'}, | {key = 'version ancienne traduction', title = 'Ancienne traduction'}, | ||
{key = 'version nouvelle traduction', title = 'Nouvelle traduction'} | {key = 'version nouvelle traduction', title = 'Nouvelle traduction'} | ||
} | |||
} | |||
}, | |||
tvEpisode = { | |||
{ | |||
title = 'Informations', | |||
items = { | |||
{key = 'réalisation', title = 'Réalisation'}, | |||
{key = 'scénario', title = 'Scénario'}, | |||
{key = 'durée', title = 'Durée'} | |||
} | |||
}, | |||
{ | |||
title = 'Version française', | |||
items = { | |||
{key = 'date sortie française', title = 'Date de sortie'} | |||
} | |||
}, | |||
{ | |||
title = 'Version originale', | |||
items = { | |||
{key = 'titre original', title = 'Titre'}, | |||
{key = 'date sortie originale', title = 'Date de sortie'} | |||
} | |||
}, | |||
{ | |||
title = 'Chronologie', | |||
items = { | |||
{key = 'épisode précédent', title = 'Précédé par'}, | |||
{key = 'épisode suivant', title = 'Suivi par'}, | |||
{key = 'numéro', title = 'Numéro'} | |||
} | } | ||
} | } |
Version actuelle datée du 12 mars 2025 à 18:32
Le module Module:Boîte d'informations (Configuration) contient la configuration liée au module Boîte d'informations. Les paramètres communs et spécifiques des boîtes d'informations sont définis.
Groupes d'éléments
Il est possible de créer différent types de groupe d'éléments, le plus commun étant la liste qui est défini comme celui par défaut. Les groupes d'éléments possèdent les propriétés communes suivantes.
Propriété | Type | Description |
---|---|---|
title |
Facultatif | Titre du groupe |
type |
Facultatif, list par défaut |
Type du groupe |
Liste
Les listes sont définies par le type list
ou en omettant le type. Il faut alors définir une propriété items
contenant la liste d'éléments à ajouter aux groupes. Chaque élément doit et peut contenir les propriétés suivantes.
Propriété | Type | Description |
---|---|---|
key |
Obligatoire | La clé à utiliser pour la construction du modèle. |
title |
Obligatoire | Titre de l'élément de liste qui sera affiché à gauche. |
description |
Factultatif | Description de l'élément à utiliser lors de la construction de la documentation. |
Chaque liste d'éléments aura une propriété libre ajoutée automatiquement formatée de la façon suivante :
Propriété | Description |
---|---|
libellé libre # |
Titre de l'élément. |
valeur libre # |
Valeur de l'élement. |
Texte libre
Les textes sont définies par le type free
et utilisent du wikitexte.
Groupes d'icônes
Les groupes d'icônes, définis par le type iconsList
, sont une liste de liens mis en place sur des icônes de Font Awesome.
Références
local p = {} -- Common parameters for every box p.commonParameters = { {key = 'classes', title = 'Classes CSS', description = 'Classes CSS à ajouter à la boîte d\informations.'}, {key = 'titre', title = 'Titre', description = 'Titre de la boîte d\'informations.'}, {key = 'sous titre', title = 'Sous-titre', description = 'Sous-titre de la boîte d\'informations.'}, {key = 'image', title = 'Image', description = 'Nom de l\'image à afficher.'}, {key = 'légende', title = 'Légende', description = 'Légende à afficher sous l\'image.'}, {key = 'galerie', title = 'Galerie à afficher', description = 'Galerie à afficher à la place de l\'image à utiliser avec [[Modèle:Boîte d\'informations Galerie]].'} } -- Box types p.availableBoxes = { -- Character character = { { title = 'Informations personnelles', items = { {key = 'nom complet', title = 'Nom complet'}, {key = 'nom original', title = 'Nom original'}, {key = 'espèce', title = 'Espèce'}, {key = 'aliases', title = 'Alias(es)'}, {key = 'origine', title = 'Origine'}, {key = 'nationalité', title = 'Nationalité'}, {key = 'sexe', title = 'Sexe'}, {key = 'naissance', title = 'Naissance'}, {key = 'mort', title = 'Mort'} } }, { title = 'Activités & Relations', items = { {key = 'activité', title = 'Activité'}, {key = 'affiliation', title = 'Affiliation'}, {key = 'famille', title = 'Famille'}, {key = 'entourage', title = 'Entourage', description = 'Amis du personnage.'}, {key = 'ennemis', title = 'Ennemi(s)'} } }, { title = 'Équipement, pouvoirs et compétences', items = { {key = 'équipement', title = 'Équipement'}, {key = 'armes', title = 'Armes'}, {key = 'pouvoirs', title = 'Pouvoirs'}, {key = 'compétences', title = 'Compétences'} } }, { title = 'Interprétation', items = { {key = 'interprète', title = 'Interprète'}, {key = 'voix', title = 'Voix'}, {key = 'films', title = 'Film(s)'}, {key = 'séries', title = 'Série(s)'}, {key = 'romans', title = 'Roman(s)'}, {key = 'pièces', title = 'Pièce(s)'}, {key = 'albums', title = 'Album(s)'}, {key = 'éditeur', title = 'Éditeur'}, {key = 'comics', title = 'Comics'}, {key = 'dessins animés', title = 'Dessin(s) animé(s)'}, {key = 'saisons', title = 'Saison(s)'}, {key = 'épisodes', title = 'Épisodes'}, {key = 'première apparition', title = 'Première apparition'}, {key = 'dernière apparition', title = 'Dernière apparition'} } }, { title = 'Traductions', items = { {key = 'version originale', title = 'Version originale'}, {key = 'version ancienne traduction', title = 'Ancienne traduction'}, {key = 'version nouvelle traduction', title = 'Nouvelle traduction'} } } }, -- Location location = { { title = 'Localisation', items = { {key = 'carte', title = 'Sur la carte'}, {key = 'pays', title = 'Pays'}, {key = 'état', title = 'État'}, {key = 'région', title = 'Région et nation'}, {key = 'département', title = 'Département'}, {key = 'ville', title = 'Ville'} } }, { title = 'Informations', items = { {key = 'construction', title = 'Construction'}, {key = 'destruction', title = 'Destruction'}, {key = 'style', title = 'Style'}, {key = 'résidents', title = 'Résident(s)'}, {key = 'capitale', title = 'Capitale'}, {key = 'villes', title = 'Ville(s)'}, {key = 'points interets', title = 'Point(s) d\'intérêt'}, {key = 'langues', title = 'Langue(s)'}, {key = 'espèces', title = 'Espèce(s)'}, {key = 'caractéristiques', title = 'Caractéristique(s)'}, } }, { title = 'Politique', items = { {key = 'gouvernement', title = 'Gouvernement'}, {key = 'leader', title = 'Leader'} } }, { title = 'Évènements', items = { {key = 'guerres', title = 'Guerre(s)'}, {key = 'naissances', title = 'Naissance(s)'}, {key = 'décès', title = 'Décès'} } }, { title = 'Apparitions', items = { {key = 'films', title = 'Films'}, {key = 'séries', title = 'Séries TV'}, {key = 'livres', title = 'Livres'} } }, { title = 'Emploi', items = { {key = 'gentilé', title = 'Gentilé'}, {key = 'articles', title = 'Articles'} } }, { title = 'Traductions', items = { {key = 'version originale', title = 'Version originale'}, {key = 'version ancienne langue', title = 'Ancienne langue'}, {key = 'version ancienne traduction', title = 'Ancienne traduction'}, {key = 'version nouvelle traduction', title = 'Nouvelle traduction'} } } }, -- Book book = { { title = 'Informations', items = { {key = 'auteur', title = 'Auteur(s)'}, {key = 'pays', title = 'Pays'}, {key = 'genre', title = 'Genre(s)'}, {key = 'distinction', title = 'Distinction(s)'}, {key = 'site web', title = 'Site web'}, {key = 'nombre pages', title = 'Pages'}, {key = 'nombre chapitres', title = 'Chapitres'} } }, { title = 'Version française', items = { {key = 'titre français', title = 'Titre'}, {key = 'éditeur français', title = 'Éditeur'}, {key = 'collection française', title = 'Collection'}, {key = 'date parution française', title = 'Date de parution'}, {key = 'isbn français', title = 'ISBN'}, {key = 'traducteur', title = 'Traducteur(s)'}, } }, { title = 'Version originale', items = { {key = 'langue', title = 'Langue'}, {key = 'titre original', title = 'Titre'}, {key = 'éditeur original', title = 'Éditeur'}, {key = 'collection originale', title = 'Collection'}, {key = 'date parution originale', title = 'Date de parution'}, {key = 'isbn original', title = 'ISBN'} } }, { title = 'Chronologie', items = { {key = 'série', title = 'Série'}, {key = 'précédé par', title = 'Précédé par'}, {key = 'suivi par', title = 'Suivi par'}, {key = 'lié à', title= 'Lié à'} } } }, -- Item item = { { title = 'Informations', items = { {key = 'nature', title = 'Nature', description = 'Angreal, Sa\'angreal, Ter\'angreal, ...'}, {key = 'type', title = 'Type'}, {key = 'origine', title = 'Origine'}, {key = 'fabricant', title = 'Fabricant'} } }, { title = 'Caractéristiques', items = { {key = 'matériaux', title = 'Matériaux'}, {key = 'composants', title = 'Composants'}, {key = 'forme', title = 'Forme'}, {key = 'couleur', title = 'Couleur'}, {key = 'poids', title = 'Poids'}, {key = 'volume', title = 'Volume'}, {key = 'longueur', title = 'Longueur'}, {key = 'largeur', title = 'Largeur'}, {key = 'hauteur', title = 'Hauteur'} } }, { title = 'Invention', items = { {key = 'inventeur', title = 'Inventeur'}, {key = 'date invention', title = 'Date d\'invention'} } }, { title = 'Utilisation', items = { {key = 'usage', title = 'Usage'}, {key = 'utilisateurs', title = 'Utilisateur(s)'} } }, { title = 'Traductions', items = { {key = 'version originale', title = 'Version originale'}, {key = 'version ancienne langue', title = 'Ancienne langue'}, {key = 'version ancienne traduction', title = 'Ancienne traduction'}, {key = 'version nouvelle traduction', title = 'Nouvelle traduction'} } } }, -- Merchant merchant = { { title = 'Informations', items = { {key = 'type', title = 'Type'}, {key = 'propriétaires', title = 'Propriétaire(s)'}, {key = 'employés', title = 'Employés(s)'}, {key = 'résidents', title = 'Résident(s)'}, {key = 'construction', title = 'Construction'}, {key = 'destruction', title = 'Destruction'}, {key = 'style', title = 'Style'}, {key = 'caractéristiques', title = 'Caractéristique(s)'} } }, { title = 'Localisation', items = { {key = 'carte', title = 'Sur la carte'}, {key = 'pays', title = 'Pays'}, {key = 'état', title = 'État'}, {key = 'région', title = 'Région et nation'}, {key = 'département', title = 'Département'}, {key = 'ville', title = 'Ville'} } }, { title = 'Évènements', items = { {key = 'guerres', title = 'Guerre(s)'}, {key = 'naissances', title = 'Naissance(s)'}, {key = 'décès', title = 'Décès'} } }, { title = 'Apparitions', items = { {key = 'films', title = 'Films'}, {key = 'séries', title = 'Séries TV'}, {key = 'livres', title = 'Livres'} } }, { title = 'Traductions', items = { {key = 'version originale', title = 'Version originale'}, {key = 'version ancienne langue', title = 'Ancienne langue'}, {key = 'version ancienne traduction', title = 'Ancienne traduction'}, {key = 'version nouvelle traduction', title = 'Nouvelle traduction'} } } }, -- Ajah ajah = { { title = 'Informations', items = { {key = 'but', title = 'But'}, {key = 'titre dirigeante', title = 'Titre dirigeante'}, {key = 'dirigeante', title = 'Dirigeante'} } } }, -- Aiel clan aielClan = { { title = 'Informations', items = { {key = 'chef', title = 'Chef de tribu'}, {key = 'place forte', title = 'Place forte'}, {key = 'clans', title = 'Clan(s)'} } }, { title = 'Traductions', items = { { key = 'version originale', title = 'Version originale' }, { key = 'version ancienne traduction', title = 'Ancienne traduction' }, { key = 'version nouvelle traduction', title = 'Nouvelle traduction' } } } }, -- Aiel sept aielSept = { { title = 'Informations', items = { { key = 'tribu', title = 'Tribu' }, { key = 'chef', title = 'Chef de clan' }, { key = 'place forte', title = 'Place forte' } } }, { title = 'Traductions', items = { { key = 'version originale', title = 'Version originale' }, { key = 'version ancienne traduction', title = 'Ancienne traduction' }, { key = 'version nouvelle traduction', title = 'Nouvelle traduction' } } } }, -- Aiel warrior society aielWarriorSociety = { { title = 'Informations', items = { { key = 'chef', title = 'Chef' }, { key = 'fonction', title = 'Fonction' } } }, { title = 'Traductions', items = { { key = 'version originale', title = 'Version originale' }, { key = 'version ancienne langue', title = 'Ancienne langue' }, { key = 'version ancienne traduction', title = 'Ancienne traduction' }, { key = 'version nouvelle traduction', title = 'Nouvelle traduction' } } } }, -- Translation translation = { { title = 'Traductions', items = { {key = 'version originale', title = 'Version originale'}, {key = 'version ancienne langue', title = 'Ancienne langue'}, {key = 'version ancienne traduction', title = 'Ancienne traduction'}, {key = 'version nouvelle traduction', title = 'Nouvelle traduction'} } } }, tvEpisode = { { title = 'Informations', items = { {key = 'réalisation', title = 'Réalisation'}, {key = 'scénario', title = 'Scénario'}, {key = 'durée', title = 'Durée'} } }, { title = 'Version française', items = { {key = 'date sortie française', title = 'Date de sortie'} } }, { title = 'Version originale', items = { {key = 'titre original', title = 'Titre'}, {key = 'date sortie originale', title = 'Date de sortie'} } }, { title = 'Chronologie', items = { {key = 'épisode précédent', title = 'Précédé par'}, {key = 'épisode suivant', title = 'Suivi par'}, {key = 'numéro', title = 'Numéro'} } } } } return p