Aller au contenu

« Modèle:Infobox V3/Conflits/Commandants/Documentation » : différence entre les versions

De Wikiquestia
 
(4 versions intermédiaires par le même utilisateur non affichées)
Ligne 11 : Ligne 11 :
<pre>
<pre>
{{Infobox V3/Conflits/Commandants
{{Infobox V3/Conflits/Commandants
| Charte        =
  | Sous-titre-commandants =  
  | Sous-titre   =
  | Commandant·s 1          =  
| Camp1        =
  | Commandant·s 2          =  
  | Commandant1  =  
  | Camp2        =  
  | Commandant2  =  
}}
}}
</pre>
</pre>
=== ⚙️ Conditionnelle ===
=== ⚙️ Conditionnelle ===
<pre>
<pre>
{{Infobox V3/Conflits/Commandants
{{Infobox V3/Conflits/Commandants
  | Charte       = {{{Charte|defaut}}}
  | Charte                 = {{{Charte|defaut}}}
  | Sous-titre   = {{{Sous-titre|Commandants}}}
  | Sous-titre-commandants  = {{{Sous-titre-commandants|Commandants}}}
  | Camp1        = {{{Camp1|}}}
  | Commandant·s 1          = {{{Commandant·s 1|}}}
| Commandant1  = {{{Commandant1|}}}
  | Commandant·s 2          = {{{Commandant·s 2|}}}
| Camp2        = {{{Camp2|}}}
  | Commandant2  = {{{Commandant2|}}}
}}
}}
</pre>
</pre>
==🧪 Exemple ==
==🧪 Exemple ==
<div>
<div>
{{Infobox V3/Début Documentation}}
{{Infobox V3/Début Documentation}}
{{Infobox V3/Conflits/Commandants
{{Infobox V3/Conflits/Commandants
  | Charte       = conflit
  | Charte                 = conflit
  | Sous-titre   = Généraux principaux
  | Sous-titre-commandants = Dirigeants militaires
  | Camp1        = Alliance du Nord
  | Commandant·s 1          = Général Ænrad
  | Commandant1  = Général Harkon de Valdheim
  | Commandant·s 2          = Duc Vaermond
| Camp2        = Empire d’Askar
  | Commandant2  = Maréchal Yserk le Fléau
}}
}}
{{Infobox V3/Fin Documentation}}
{{Infobox V3/Fin Documentation}}
<pre>
<pre>
{{Infobox V3/Conflits/Commandants
{{Infobox V3/Conflits/Commandants
  | Charte       = conflit
  | Charte                 = conflit
  | Sous-titre   = Généraux principaux
  | Sous-titre-commandants = Dirigeants militaires
  | Camp1        = Alliance du Nord
  | Commandant·s 1          = Général Ænrad
  | Commandant1  = Général Harkon de Valdheim
  | Commandant·s 2          = Duc Vaermond
| Camp2        = Empire d’Askar
  | Commandant2  = Maréchal Yserk le Fléau
}}
}}
</pre>
</pre>

Dernière version du 30 juin 2025 à 20:30

Note : Ceci est une page de documentation pour un modèle.

📘 Description[modifier le wikicode]

Ce modèle est une section de l'infobox principale Modèle:Infobox V3/Conflits. Il permet d'afficher côte à côte les commandants des deux camps d’un conflit ou d'une bataille, avec une présentation claire et symétrique.

Il s'utilise à l'intérieur d'une infobox modulaire V3 et s'appuie sur le modèle Modèle:Infobox V3/Tableau Ligne données.

🔧 Syntaxe[modifier le wikicode]

🕳️ Vide[modifier le wikicode]

{{Infobox V3/Conflits/Commandants
 | Sous-titre-commandants  = 
 | Commandant·s 1          = 
 | Commandant·s 2          = 
}}

⚙️ Conditionnelle[modifier le wikicode]

{{Infobox V3/Conflits/Commandants
 | Charte                  = {{{Charte|defaut}}}
 | Sous-titre-commandants  = {{{Sous-titre-commandants|Commandants}}}
 | Commandant·s 1          = {{{Commandant·s 1|}}}
 | Commandant·s 2          = {{{Commandant·s 2|}}}
}}

🧪 Exemple[modifier le wikicode]

Dirigeants militaires
Général Ænrad
Duc Vaermond


{{Infobox V3/Conflits/Commandants
 | Charte                  = conflit
 | Sous-titre-commandants  = Dirigeants militaires
 | Commandant·s 1          = Général Ænrad
 | Commandant·s 2          = Duc Vaermond
}}

🧩 Paramètres[modifier le wikicode]

Charte
Charte visuelle à appliquer (couleur, séparateur, etc.). Valeur par défaut : defaut.
Sous-titre
Titre de la section (optionnel). Par défaut : Commandants.
Camp1
Nom du premier camp ou faction.
Commandant1
Nom du commandant principal du premier camp.
Camp2
Nom du second camp ou faction.
Commandant2
Nom du commandant principal du second camp.