Template:T/doc: Difference between revisions

From PZwiki
(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]]


Which links to [[Hammer/pl]].
===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

Notebook.png
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:

Młotek

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:

Młotki

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