« Modèle:Tlnf/doc » : différence entre les versions

De Adadov.net wiki
Page créée avec « {{Documentation subpage}} <!-- Les catégories se placent au bas de cette page. --> __NOTOC__ == Utilisation == The '''template link''' template is a simple macro templat... »
 
Aucun résumé des modifications
 
(3 versions intermédiaires par le même utilisateur non affichées)
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>{{tlc|Exemple}}</nowiki></code>
::<code><nowiki>{{tlnf|Exemple}}</nowiki></code>
:generates
:generates
::{{tlc|Exemple}}
::{{tlnf|Exemple}}


<templatedata>{
<templatedata>{
Ligne 29 : Ligne 29 :
{{Template-linking templates}}-->
{{Template-linking templates}}-->


 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Placer les catégories sous cette ligne -->
<!-- Placer les catégories sous cette ligne -->
 
[[Category:Modèle liaison-modèles]]
}}
}}</includeonly>

Dernière version du 6 février 2015 à 13:15

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ètres du modèle

ParamètreDescriptionTypeÉtat
template name1

the template name without the namespace prefix “Template:”, which is added automatically

Chaîneobligatoire

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