Include a tab set in the wiki

De Wiki de Calcul Québec
Aller à : Navigation, rechercher
Cette page est une traduction de la page Inclure un jeu d'onglets dans le wiki et la traduction est complétée à 100 % et à jour.

Autres langues :anglais 100% • ‎français 100%

It may sometimes be useful to include a set of tabs inside a wiki page. It could be the case for example to show specific features of each compute server. To simplify the creation of such a tab set, we have a template Tabs.

A tab set is create for example using the following code:

{{Tabs|tab1=Briarée|tab2=Colosse|tab3=Guillimin|tab4=Mammouth
|content1=
<xh2> Briarée </xh2>
Briarée is ...
|content2=
<xh2> Colosse </xh2>
Colosse is ...
|content3=
<xh2>Guillimin</xh2>
Guillimin is ...
|content4=
<xh2>Mammouth</xh2>
Mammouth is ...
}}

which produces the result:

Briarée

Briarée is ...

Colosse

Colosse is ...

Guillimin

Guillimin is ...

Mammouth

Mammouth is ...


Note that only a single set of tabs can be displayed on any given page, but that any number of tabs can be shown within a set of tabs. We however recommend to limit the number of tabs to facilitate the display on various media.

In the above example, we used the <xh2> tag. This tag allows to add a title without showing it in the table of content. This is required within a tab, since the table of content can not link to content inside a tab.

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Ressources de Calcul Québec
Outils
Partager