Différences entre les versions de « Modèle:Tab »
De Wikip
m (1 version importée)  | 
				|||
| (18 versions intermédiaires par 5 utilisateurs non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
<includeonly><table style="  | <includeonly><center><table class="wikitable sortable" style="padding:0.0em;margin:0em;margin-top:0.5em;margin-bottom:0.5em;border-collapse: collapse;{{{style|}}}" {{{params|}}}>{{{3}}}</table></center><p style="text-align:center;margin:0; padding:0;">{{AtCount|name=at_tab_count|prefix={{{label=|T n°}}}|id={{{2|}}}}}: {{{1}}}</p></includeonly><noinclude>  | ||
{{Model    | |||
<  | |||
{{Model  | |||
|class=tab  | |class=tab  | ||
|texte=Tableau.  | |texte=Tableau.  | ||
|syntaxe=<nowiki>{{tab|Titre|id|contenu|[  | |syntaxe=<nowiki>{{tab|Titre|id|contenu[|label=][|style=][|params=]}}</nowiki>  | ||
|specification=  | |specification=  | ||
;titre  | ;titre  | ||
| Ligne 15 : | Ligne 13 : | ||
;label  | ;label  | ||
;par defaut c'est Tableau n°.  | ;par defaut c'est Tableau n°.  | ||
;style  | |||
:le style en css  | |||
;params  | |||
:paramètres structurantes tels que rawspan  | |||
}}    | }}    | ||
Exemple :  | Exemple :  | ||
  <nowiki>{{tab|B|ref1| {{line| {{col|  |   <nowiki>  | ||
{{tab|B|ref1|    | |||
{{line| {{col_t|t1}} {{col_t|t2}} }}   | |||
{{line| {{col|3}} {{col|4}} }}    | |||
{{line| {{col|5}} {{col|6}} }}   | |||
}}  | |||
{{tab|B|ref1|   | |||
{{line| {{col_t|t1}} {{col_t|t2}} }}   | |||
{{line| {{col|3}} {{col|4}} }}   | |||
{{line| {{col|5}} {{col|6}} }}   | |||
|style=width:100%;}}  | |||
</nowiki>  | |||
donnera :  | donnera :  | ||
{{tab|B|ref1| {{line| {{col|  | {{tab|B|ref1|    | ||
{{line| {{col_t|t1}} {{col_t|t2}} }}   | |||
{{line| {{col|3}} {{col|4}} }}   | |||
{{line| {{col|5}} {{col|6}} }}   | |||
}}  | |||
{{tab|B|ref1|   | |||
{{line| {{col_t|t1}} {{col_t|t2}} }}   | |||
{{line| {{col|3}} {{col|4}} }}    | |||
{{line| {{col|5}} {{col|6}} }}   | |||
|style=width:100%;}}  | |||
</noinclude>  | </noinclude>  | ||
Version actuelle datée du 26 décembre 2023 à 11:28
Version : 1.36.1 4573 (2023-12-26) 20231226112817  
Résumé :
Tableau.
{{tab|Titre|id|contenu[|label=][|style=][|params=]}}
- titre
 - titre du tableau
 - id
 - l'id est un identifiant unique dans la page, par défaut il vaut une chaîne de caractères vide
 - contenu
 - Contenu du tableau.
 - label
 - par defaut c'est Tableau n°.
 - style
 - le style en css
 - params
 - paramètres structurantes tels que rawspan
 
Exemple :
{{tab|B|ref1| 
{{line| {{col_t|t1}} {{col_t|t2}} }} 
{{line| {{col|3}} {{col|4}} }} 
{{line| {{col|5}} {{col|6}} }} 
}}
{{tab|B|ref1| 
{{line| {{col_t|t1}} {{col_t|t2}} }} 
{{line| {{col|3}} {{col|4}} }} 
{{line| {{col|5}} {{col|6}} }} 
|style=width:100%;}}
donnera :
| t1 | t2 | 
|---|---|
| 3 | 4 | 
| 5 | 6 | 
T n°1: B
| t1 | t2 | 
|---|---|
| 3 | 4 | 
| 5 | 6 | 
T n°2: B