« Modèle:Tab Voir l’historique

(Created page with "<includeonly>{{#if:{{{preums|}}}||<td class="onglet" style="width: 2%; border-bottom: {{#if:{{{bordure|}}}|{{{bordure}}}|solid 2px #A3B1BF}}"> </td>}}<td class="onglet {{...")
 
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
<includeonly>{{#if:{{{preums|}}}||<td class="onglet" style="width: 2%; border-bottom: {{#if:{{{bordure|}}}|{{{bordure}}}|solid 2px #A3B1BF}}">&nbsp;</td>}}<td class="onglet {{#switch:{{{degrade}}}|oui=degrade|rev=degrade_rev|#default=}}" style="text-align: {{#if:{{{alignement onglet|}}}|{{{alignement onglet}}}|center}}; {{#if:{{{arrondi|}}}|-moz-border-radius: {{{arrondi}}} {{{arrondi}}} 0 0; -webkit-border-radius: {{{arrondi}}} {{{arrondi}}} 0 0; border-radius: {{{arrondi}}} {{{arrondi}}} 0 0;}} padding:0.3em; border: {{#if:{{{bordure|}}}|{{{bordure}}}|solid 2px #A3B1BF}}; font-size: 110%; {{#ifeq:{{anchorencode:{{FULLPAGENAME}}}}|{{anchorencode:{{{URL}}}}}|background-color: {{#if:{{{fond cadre|}}}|{{{fond cadre}}}|transparent}}; border-bottom: none; font-weight:bold; |background-color: {{#if:{{{fond onglets|}}}|{{{fond onglets}}}|#CEE0F2}}; }}" width="{{#expr:(100/{{{nombre onglets|{{Nombre de paramètres définis|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}|{{{10}}}}}}}})-2}}%">{{#if:{{{Image|}}}|[[Fichier:{{{Image}}}|20px|{{{Onglet}}}|link={{{URL}}}]]&nbsp;|}}{{#ifeq:{{{URLType|}}}|http|<span class="plainlinks noarchive">[{{fullurl:{{{URL}}}}} {{{Onglet}}}]</span>|{{#ifeq:{{{URLType|}}}|externe|[{{{URL}}} {{{Onglet}}}]|{{#ifeq:{{{URLType|}}}|externe2|<span class="plainlinks">[{{{URL}}} {{{Onglet}}}]</span>|[[{{{URL}}}|{{{Onglet}}}]]}}}}}}</td></includeonly><noinclude>{{Documentation}}</noinclude>
<includeonly>{{#if:{{{preums|}}}||<td class="onglet" style="width: 2%; border-bottom: {{#if:{{{bordure|}}}|{{{bordure}}}|solid 2px #A3B1BF}}">&nbsp;</td>}}<td class="onglet {{#switch:{{{degrade}}}|oui=degrade|rev=degrade_rev|#default=}}" style="text-align: {{#if:{{{alignement onglet|}}}|{{{alignement onglet}}}|center}}; {{#if:{{{arrondi|}}}|-moz-border-radius: {{{arrondi}}} {{{arrondi}}} 0 0; -webkit-border-radius: {{{arrondi}}} {{{arrondi}}} 0 0; border-radius: {{{arrondi}}} {{{arrondi}}} 0 0;}} padding:0.3em; border: {{#if:{{{bordure|}}}|{{{bordure}}}|solid 2px #A3B1BF}}; font-size: 110%; {{#ifeq:{{anchorencode:{{FULLPAGENAME}}}}|{{anchorencode:{{{URL}}}}}|background-color: {{#if:{{{fond cadre|}}}|{{{fond cadre}}}|transparent}}; border-bottom: none; font-weight:bold; |background-color: {{#if:{{{fond onglets|}}}|{{{fond onglets}}}|#CEE0F2}}; }}" width="{{#expr:(100/{{{nombre onglets|{{Nombre de paramètres définis|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}|{{{10}}}}}}}})-2}}%">{{#if:{{{Image|}}}|[[Fichier:{{{Image}}}|20px|{{{Onglet}}}|link={{{URL}}}]]&nbsp;|}}[[{{{URL}}}|{{{Onglet}}}]]</td></includeonly><noinclude>{{Documentation}}</noinclude>

Version du 29 septembre 2014 à 08:56

Documentation icon Template documentation[view] [edit] [history] [purge]

This template is called by {{Tab top}} to create a tabs bar for use in navigating pages. This is an internal pre-template. It should not be used directly.

Usage

{{Tab}} expects URL and Tab to be passed to it. If the current page title matches URL then the tab will be styled differently (as it is the selected tab). first is used to point the first tab of the tabs bar. This is avoiding to have a small gap at the beginning of the bar (the gap is used between tabs).

See also

The above documentation is transcluded from Modèle:Tab/doc.
Please add categories to the /doc subpage.
Subpages of this template.