mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-06 22:04:19 +00:00
Translation of the TabsMacro and related samples for the fr-FR edition.
While we are at it, propose an addendum at the end of the TabsMacro documentation
This commit is contained in:
parent
c82fbbb6e5
commit
2579553375
8
editions/fr-FR/tiddlers/SampleTabFour.tid
Normal file
8
editions/fr-FR/tiddlers/SampleTabFour.tid
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
caption: ~OngletQuatre
|
||||||
|
created: 20141211133915113
|
||||||
|
modified: 20141211134626996
|
||||||
|
tags: sampletab
|
||||||
|
title: SampleTabFour
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
Voici le quatrième de nos onglets d'exemple.
|
8
editions/fr-FR/tiddlers/SampleTabOne.tid
Normal file
8
editions/fr-FR/tiddlers/SampleTabOne.tid
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
caption: ~OngletUn
|
||||||
|
created: 20141211110121033
|
||||||
|
modified: 20141211134650836
|
||||||
|
tags: sampletab
|
||||||
|
title: SampleTabOne
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
Voici le premier de nos onglets d'exemple.
|
8
editions/fr-FR/tiddlers/SampleTabThree.tid
Normal file
8
editions/fr-FR/tiddlers/SampleTabThree.tid
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
caption: ~OngletTrois
|
||||||
|
created: 20141211134223579
|
||||||
|
modified: 20141211134854238
|
||||||
|
tags: sampletab
|
||||||
|
title: SampleTabThree
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
Voici le troisième de nos onglets d'exemple.
|
8
editions/fr-FR/tiddlers/SampleTabTwo.tid
Normal file
8
editions/fr-FR/tiddlers/SampleTabTwo.tid
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
caption: ~OngletDeux
|
||||||
|
created: 20141211133820329
|
||||||
|
modified: 20141211134639089
|
||||||
|
tags: sampletab
|
||||||
|
title: SampleTabTwo
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
Voici le deuxième de nos onglets d'exemple.
|
36
editions/fr-FR/tiddlers/TabsMacro.tid
Normal file
36
editions/fr-FR/tiddlers/TabsMacro.tid
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
caption: tabs
|
||||||
|
created: 20131228162203521
|
||||||
|
modified: 20141211140315547
|
||||||
|
tags: Macros
|
||||||
|
title: TabsMacro
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
La macro tabs affiche une liste de tiddlers sous forme d'onglets. L'utilisateur peut passer d'un onglet à l'autre en cliquant. Les onglets sont étiquetés avec le titre du tiddler correspondant, sauf si un champ `caption` est présent, auquel cas c'est celui-ci qui est utilisé.
|
||||||
|
|
||||||
|
Par défaut, les onglets sont disposés horizontalement, le contenu étant affiché en-dessous. Vous pouvez aussi disposer les onglets verticalement en passant en paramètre la classe `tc-vertical`.
|
||||||
|
|
||||||
|
! Paramètres
|
||||||
|
|
||||||
|
|!Position |!Nom |!Description |!Défaut |
|
||||||
|
|1re |tabsList |Filtre indiquant les tiddlers à afficher | |
|
||||||
|
|2e |default |Nom du tiddler contenant l'onglet qui s'affichera par défaut | |
|
||||||
|
|3e |state |Chaîne de caractères permettant de distinguer plusieurs ensembles d'onglets présents dans le même tiddler (l'utilisation du préfixe des tiddlers système est recommandée) |''$:/state/tab'' |
|
||||||
|
|4e |class |Classes CSS supplémentaires pour les trois DIVs imbriquées qui construisent les onglets (vous pouvez indiquer plusieurs classes en les séparant avec des espaces) | |
|
||||||
|
|5e |template |Un tiddler template optionnel via lequel le contenu de l'onglet doit être rendu | |
|
||||||
|
|
||||||
|
À l'intérieur du template, le titre de l'onglet courant est accessible via la variable ''currentTab''. La variable ''currentTiddler'' n'est pas modifiée par la macros tabs.
|
||||||
|
|
||||||
|
! Exemples
|
||||||
|
|
||||||
|
Voici quelques exemples d'utilisation de la macro tabs. Notez que l'édition française de la documentation utilise le champ `caption` pour faire apparaître le titre de l'onget en Français<<dp>>
|
||||||
|
|
||||||
|
```
|
||||||
|
<<tabs "SampleTabOne SampleTabTwo SampleTabThree SampleTabFour" "SampleTabThree" "$:/state/tab1">>
|
||||||
|
|
||||||
|
<<tabs "[tag[sampletab]]" "SampleTabTwo" "$:/state/tab2" "tc-vertical">>
|
||||||
|
```
|
||||||
|
|
||||||
|
<<tabs "SampleTabOne SampleTabTwo SampleTabThree SampleTabFour" "SampleTabThree" "$:/state/tab1">>
|
||||||
|
|
||||||
|
<<tabs "[tag[sampletab]]" "SampleTabTwo" "$:/state/tab2" "tc-vertical">>
|
||||||
|
Exercice : comment faire en sorte que cette deuxième liste soit triée<<pi>> Indice<<dp>> lisez le tiddler [[Tagging]] jusqu'au bout.
|
@ -1,9 +1,9 @@
|
|||||||
|
caption: tabs
|
||||||
created: 20131228162203521
|
created: 20131228162203521
|
||||||
modified: 20141209113527667
|
modified: 20141211141507313
|
||||||
tags: Macros
|
tags: Macros
|
||||||
title: TabsMacro
|
title: TabsMacro
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
caption: tabs
|
|
||||||
|
|
||||||
The tabs macro displays a list of tiddlers as a tab control. The user can switch between tabs by clicking on them. The tabs are labelled with the title of the corresponding tiddler, unless there is a `caption` field present in which case it is used instead.
|
The tabs macro displays a list of tiddlers as a tab control. The user can switch between tabs by clicking on them. The tabs are labelled with the title of the corresponding tiddler, unless there is a `caption` field present in which case it is used instead.
|
||||||
|
|
||||||
@ -33,3 +33,4 @@ Here are some examples of the tabs macro:
|
|||||||
<<tabs "SampleTabOne SampleTabTwo SampleTabThree SampleTabFour" "SampleTabThree" "$:/state/tab1">>
|
<<tabs "SampleTabOne SampleTabTwo SampleTabThree SampleTabFour" "SampleTabThree" "$:/state/tab1">>
|
||||||
|
|
||||||
<<tabs "[tag[sampletab]]" "SampleTabTwo" "$:/state/tab2" "tc-vertical">>
|
<<tabs "[tag[sampletab]]" "SampleTabTwo" "$:/state/tab2" "tc-vertical">>
|
||||||
|
//Exercise//: how would you make sure that the second tab list is correctly sorted? Hint : read [[Tagging]] until the end.
|
Loading…
x
Reference in New Issue
Block a user