« Modèle:Tlnf/doc » : différence entre les versions
m Adadov a déplacé la page Modèle:Tlc/doc vers Modèle:Tlnf/doc sans laisser de redirection |
Aucun résumé des modifications |
||
Ligne 6 : | Ligne 6 : | ||
The '''template link''' template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code: | The '''template link''' template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code: | ||
::<code><nowiki>{{ | ::<code><nowiki>{{tlnf|Exemple}}</nowiki></code> | ||
:generates | :generates | ||
::{{ | ::{{tlnf|Exemple}} | ||
<templatedata>{ | <templatedata>{ |
Dernière version du 6 février 2015 à 13:15
Ceci est la page de documentation de Modèle:Tlnf. Cette sous-page contient les instructions, les catégories de son modèle d'origine et elle n'est pas destinée à être visualisée directement. |
Utilisation
The template link template is a simple macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation. A short example is that the code:
{{tlnf|Exemple}}
- generates
- {{Modèle:Exemple}}
This template displays a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation.
Paramètre | Description | Type | État | |
---|---|---|---|---|
template name | 1 | the template name without the namespace prefix “Template:”, which is added automatically | Chaîne | obligatoire |
More complex variations are described below.
Exemple
Code | Résultat | Notes | Mnémonique |
---|---|---|---|
{{tl|Void}}
| {{Void}} | Utilisation standard | Template Link |
{{tlnf|Void}}
| {{Modèle:Void}} | Affichage du nom complet | Template Link Normal Full |