Aller au contenu

« Modèle:Infobox V3/Tableau Ligne mixte » : différence entre les versions

De Wikiquestia
Aucun résumé des modifications
Balise : Révoqué
Aucun résumé des modifications
Balise : Révocation manuelle
Ligne 1 : Ligne 1 :
<includeonly>
<includeonly>{{#if: {{{if|{{{2|}}}}}}
<tr>
  | <tr>
  <th style="text-align: {{{alignement|left}}}; width: {{{largeur|40%}}}; vertical-align: top; padding: 0.3em 0.5em;">{{#invoke:String|trim|{{{1|}}}}}</th>
<th scope="row" {{#if:{{{class|}}}|class="{{{class|}}}"}} {{#if: {{{width|}}}|style="width:{{{width|}}}em;"}}>{{{1}}}</th>
  <td style="vertical-align: top; padding: 0.3em 0.5em;">{{#invoke:String|trim|{{{2|}}}}}</td>
<td>
{{trim|{{{2|}}}}}</td>
</tr>
</tr>
</includeonly>
  | <nowiki />
<noinclude>{{Documentation}}</noinclude>
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Version du 24 mai 2025 à 13:50

Utilisation

Ce modèle permet d’afficher le début d’une infobox personnalisée avec un titre centré, sur fond coloré.

Syntaxe

Vide

{{Infobox V3/Début
 | text    = 
 | Couleur = 
}}

Conditionnelle

{{Infobox V3/Début
 | text    = {{{text|}}}
 | Couleur = {{{Couleur|}}}
}}

Exemple

Code minimal (couleurs par défaut, le titre est automatiquement celui de la page) :

Nom
Âge
{{Infobox V3/Début}}
{{Infobox V3/Tableau début}}
{| class="Infobox V3/Tableau Ligne mixte"
|-
{{Infobox V3/Tableau Ligne mixte|Nom|Jean Dupont}}
|-
{{Infobox V3/Tableau Ligne mixte|Âge|45 ans}}
|}
{{Infobox V3/Fin}}

Paramètres

  • text – Le titre principal de l’infobox.
  • Couleur – La couleur de fond du bandeau supérieur (facultatif).

🔗 Voir aussi