Template:T/doc: Difference between revisions
(Created page with "{{Documentation subpage}} A template used to translate links from English to the current articles language (subpage language code). ==Usage== ===Default translation=== If the...") |
(no link documentation) |
||
Line 25: | Line 25: | ||
[[Hammer/pl|Młotki]] | [[Hammer/pl|Młotki]] | ||
===Remove link=== | |||
Alternatively, the link can be removed, showing only the translated text. | |||
'''For example on a Polish page:''' | |||
<code><nowiki>{{</nowiki>T|Hammer|no link}}</code> | |||
'''Will result in:''' | |||
Młotki |
Revision as of 16:56, 6 August 2021
This is a documentation subpage for Template:T.
It contains usage information and other content that is not part of the original template page. |
A template used to translate links from English to the current articles language (subpage language code).
Usage
Default translation
If the current article subpage is /pl
(Polish):
{{T|Hammer}}
Will result in:
Which links to Młotek.
Custom translation
Similar to a normal link, a pipe |
can be used after the English word, then proceeded by the desired word/phrase.
For example on a Polish page:
{{T|Hammer|Młotki}}
Will result in:
Remove link
Alternatively, the link can be removed, showing only the translated text.
For example on a Polish page:
{{T|Hammer|no link}}
Will result in:
Młotki