Template:Tlx: Difference between revisions
m (doc update) |
m (update doc) |
||
Line 14: | Line 14: | ||
==Examples== | ==Examples== | ||
* | *{{tll|tlx|About}} -> {{tlx|About}} | ||
* | *{{tll|tlx|About|Use1}} -> {{tlx|About|Use1}} | ||
* | *{{tll|tlx|About|subst{{=}}1}} -> {{tlx|About|subst=1}} | ||
* | *{{tll|tlx|About|SISTER{{=}}mw:}} -> {{tlx|About|SISTER=mw:}} | ||
{{Translation guide}} | {{Translation guide}} | ||
Line 27: | Line 27: | ||
}} | }} | ||
{{ll|Category:Metatemplates}} | {{ll|Category:Metatemplates}} | ||
</noinclude><includeonly><code | </noinclude><includeonly><code>{{<nowiki/>{{#if:{{{subst|}}}|[[mw:Help:Substitution|subst]]:}}[[{{{SISTER|}}}{{ns:Template}}:{{{1|[[Category:Incorrect template usage]]}}}|{{{1|}}}]]<!-- | ||
-->{{#if:{{{2|}}}|{{!}}{{{2}}} | -->{{#if:{{{2|}}}|{{!}}{{{2}}} | ||
}}{{#if:{{{3|}}}|{{!}}{{{3}}} | }}{{#if:{{{3|}}}|{{!}}{{{3}}} | ||
Line 39: | Line 39: | ||
}}{{#if:{{{11|}}}|{{!}}{{{11}}} | }}{{#if:{{{11|}}}|{{!}}{{{11}}} | ||
}}{{#if:{{{12|}}}|{{!}}''...'' | }}{{#if:{{{12|}}}|{{!}}''...'' | ||
}}<nowiki>}} | }}<nowiki/>}}</code></includeonly> |
Revision as of 13:00, 30 December 2023
Template link expanded, shortened to {{tlx}}
, is used to provide stylized formatting to template displays without actually using the template itself. The code generated will be displayed inline.
Usage
Parameters
1
(required)- The name of the template to be displayed.
2
-12
- Parameters to be displayed within the template.
subst
- If not empty, will display a link to the template with the
subst:
prefix. SISTER
- Interwiki prefix for the template. e.g.
mw:
.
Examples
{{tlx|About}}
->{{About}}
{{tlx|About|Use1}}
->{{About|Use1}}
{{tlx|About|subst=1}}
->{{subst:About}}
{{tlx|About|SISTER=mw:}}
->{{About}}
How to translate
This template doesn't need to/shouldn't be translated, but you can translate the documentation of this template with the following steps:
- Create a subpage of this template with the language code of the language you want to translate to.
- Copy the code wrapped in the
<noinclude>
tag in this template into the page you created.{{Translation guide}}
template should be removed from the translated documentation.
- Translate the page according to the translation requirements of normal pages.
See also
Editors can experiment in this template's sandbox.