Template:End tab: Difference between revisions

From Independence of Québec
Jump to navigation Jump to search
Mathieugp (talk | contribs)
Created page with '<includeonly><!-- -->{{clr}}</div><!-- -->{{#if:{{{URL-1|}}}|<div style="float:right; margin-top: 0.0em; margin-bottom:3px; background-color: {{{fond Tabs|#cee0f2}}}; padding: .…'
 
Mathieugp (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:


-->{{clr}}</div><!--
-->{{clr}}</div><!--
-->{{#if:{{{URL-1|}}}|<div style="float:right; margin-top: 0.0em; margin-bottom:3px; background-color: {{{fond Tabs|#cee0f2}}}; padding: .2em .6em; font-size: 130%; border: {{{bordure|1px solid #a3b1bf}}}; {{#if:{{{arrondi|}}}|-moz-border-radius: {{{arrondi}}} {{{arrondi}}} 0 0; border-radius: {{{arrondi}}} {{{arrondi}}} 0 0;}}"> Page suivante : {{#switch:{{FULLPAGENAME}}|
-->{{#if:{{{URL-1|}}}|<div style="float:right; margin-top: 0.0em; margin-bottom:3px; background-color: {{{fond Tabs|#cee0f2}}}; padding: .2em .6em; font-size: 130%; border: {{{bordure|1px solid #a3b1bf}}}; {{#if:{{{arrondi|}}}|-moz-border-radius: {{{arrondi}}} {{{arrondi}}} 0 0; border-radius: {{{arrondi}}} {{{arrondi}}} 0 0;}}"> Next Page : {{#switch:{{FULLPAGENAME}}|
{{{URL-1}}}=[[{{{URL-2|{{{URL-Fin|{{{URL-1}}}}}}}}}|'''{{{Tab-2|{{{Tab-Fin|{{{Tab-1}}}}}}}}}''']]|
{{{URL-1}}}=[[{{{URL-2|{{{URL-Fin|{{{URL-1}}}}}}}}}|'''{{{Tab-2|{{{Tab-Fin|{{{Tab-1}}}}}}}}}''']]|
{{{URL-2}}}=[[{{{URL-3|{{{URL-Fin|{{{URL-1}}}}}}}}}|'''{{{Tab-3|{{{Tab-Fin|{{{Tab-1}}}}}}}}}''']]|
{{{URL-2}}}=[[{{{URL-3|{{{URL-Fin|{{{URL-1}}}}}}}}}|'''{{{Tab-3|{{{Tab-Fin|{{{Tab-1}}}}}}}}}''']]|
Line 17: Line 17:


--></includeonly><noinclude>
--></includeonly><noinclude>
{{Documentation modèle}}
{{Sommaire à droite}}


==En bref==
==En bref==
Line 27: Line 24:


==Détails==
==Détails==
* Le nombre maximum d'Tabs est de 10.  
* Le nombre maximum d'onglets est de 10.  
* Pour qu'au dernier Tab la page suivante ne soit pas la première vous pouvez définir <nowiki>{{{Tab-Fin}}} et {{{URL-Fin}}}</nowiki>.
* Pour qu'au dernier onglet la page suivante ne soit pas la première vous pouvez définir <nowiki>{{{Tab-Fin}}} et {{{URL-Fin}}}</nowiki>.
* Il est possible de définir des paramètres optionnels suivants :
* Il est possible de définir des paramètres optionnels suivants :
** <code>bordure=</code> : style de la bordure.
** <code>bordure=</code> : style de la bordure.
Line 159: Line 156:
|alignement Tab=left
|alignement Tab=left
}}
}}
 
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 20:38, 13 March 2010


En bref

But
Créer une interface à Tabs, notamment pour les pages d'aide et les pages utilisateur.
Ne pas utiliser dans l'espace encyclopédique.
Exemples
Projet:Traduction/*/Aide, Utilisateur:Antaya.
Syntaxe
{{Start tab|Tab-1=Titre 1|URL-1=Page 1|Tab-2=Titre 2|URL-2=page 2|…}}
Texte de la page.
{{End tab|Tab-1=Titre 1|URL-1=Page 1|Tab-2=Titre 2|URL-2=Page 2|…}}

Détails

  • Le nombre maximum d'onglets est de 10.
  • Pour qu'au dernier onglet la page suivante ne soit pas la première vous pouvez définir {{{Tab-Fin}}} et {{{URL-Fin}}}.
  • Il est possible de définir des paramètres optionnels suivants :
    • bordure= : style de la bordure.
    • fond Tabs= : couleur de fond..
    • arrondi= : rayon de l'arrondi des coins.

Exemples

Minimaliste

Code

<poem>{{Start tab |Tab-1=Start tab |URL-1=Template:Start tab |Tab-2=Fin des Tabs |URL-2=Template:Fin des Tabs |Tab-3=Tab |URL-3=Template:Tab |Tab-4=Exemple |URL-4=Projet:Traduction/*/Aide/Demander une traduction }} Bla bla bla. {{Fin des Tabs |Tab-1=Start tab |URL-1=Template:Start tab |Tab-2=Fin des Tabs |URL-2=Template:Fin des Tabs |Tab-3=Tab |URL-3=Template:Tab |Tab-4=Exemple |URL-4=Projet:Traduction/*/Aide/Demander une traduction }}</poem>

Résultat :

Start tab Fin des Tabs Tab Exemple

Bla bla bla


Next Page : Tab

Avec fioritures

Code

<poem>{{Start tab |Tab-1=Start tab |URL-1=Template:Start tab |Tab-2=Fin des Tabs |URL-2=Template:Fin des Tabs |Tab-3=Tab |URL-3=Template:Tab |Tab-4=Exemple |URL-4=Projet:Traduction/*/Aide/Demander une traduction |bordure=2px solid #888888 |fond Tabs=#cccccc |fond cadre=#EEEFFF |arrondi=5em |alignement Tab=left }} Bla bla bla. {{Fin des Tabs |Tab-1=Start tab |URL-1=Template:Start tab |Tab-2=Fin des Tabs |URL-2=Template:Fin des Tabs |Tab-3=Tab |URL-3=Template:Tab |Tab-4=Exemple |URL-4=Projet:Traduction/*/Aide/Demander une traduction |Tab-Fin=Revenir au projet traduction |URL-Fin=Projet:Traduction |bordure=2px solid #888888 |fond Tabs=#cccccc |alignement Tab=left }}</poem>

Résultat

Start tab Fin des Tabs Tab Exemple

Bla bla bla


Next Page : Tab