Modèle:Début des onglets2/Documentation

Utilisation modifier

Syntaxe modifier

{{Début des onglets2
 | template = 
 | selected = 
 | title    = 
 | tab1     = 
 | body1    = 
 | tab2     = 
 | body2    = 
 | <!-- jusqu'à 10 onglets -->
}}
Paramètres
Paramètre Description
template Nom du modèle pour les liens « voir », « discussion » et « modifier ».
selected L'onglet sélectionné. Doit être identique au contenu de tab1, ou tab2, etc.
title Le titre de la boîte.
tab1 Le lien à afficher sur le premier onglet.
body1 Le contenu affiché si tab1 est l'onglet sélectionné.
tab2 cf. tab1
body2 cf. body1
jusqu'à 10 onglets

Exemple modifier

Code
{{Début des onglets2
 | template = Début des onglets2
 | selected = [[Antarctica]]
 | title    = [[continent]]
 | tab1     = [[Antarctica]]
 | body1    = zone sud
 | tab2     = [[Africa]]
 | body2    = zone A
 | tab3     = [[Asia]]
 | body3    = zone B
 | tab4     = [[Australia]]
 | body4    = zone C
 | tab5     = [[Europe]]
 | body5    = zone D
 | tab6     = [[Asia]]
 | body6    = zone E
 | tab7     = [[Afrique]]
 | body7    = zone F
 | tab8     = [[Europe]]
 | body8    = zone H
 | tab9     = [[Africa]]
 | body9    = zone H
 | tab10    = [[Asie]]
 | body10   = zone I
}}
Résultat
 continent v · d · m 


Voir aussi modifier