Template:Main/doc: Difference between revisions
Template page
More actions
Marked this version for translation |
mNo edit summary |
||
| Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
To link to a main article on a topic like [[Example]], use | To link to a main article on a topic like [[Example]], use | ||
: <code>{{tlx|main|Example}}</code> | : <code>{{tlx|TNT|main|Example}}</code> | ||
which renders as | which renders as | ||
{{main|Example}} | {{TNT|main|Example}} | ||
You can add up to 5 article names in parameters: | You can add up to 5 article names in parameters: | ||
: <code>{{tlx|main|Example|Example|Example|Example|Example}}</code> | : <code>{{tlx|TNT|main|Example|Example|Example|Example|Example}}</code> | ||
which renders as | which renders as | ||
{{main|Example|Example|Example|Example|Example}} | {{TNT|main|Example|Example|Example|Example|Example}} | ||
These parameters are used to generate links and may include namespace prefixes or interwiki prefixes. If you want to hide these prefixes (for example here for a link to English Wikipedia) and display an alternative text you can use | These parameters are used to generate links and may include namespace prefixes or interwiki prefixes. If you want to hide these prefixes (for example here for a link to English Wikipedia) and display an alternative text you can use | ||
: <code>{{tlx|main|<nowiki>w:en:Example{{!}}Example (in English Wikipedia)</nowiki>}} | : <code>{{tlx|TNT|main|<nowiki>w:en:Example{{!}}Example (in English Wikipedia)</nowiki>}}</code> | ||
which renders as | which renders as | ||
{{ | {{TNT|main|w:en:Example{{!}}Example (in English Wikipedia)}} | ||
== Internationalisation == | == Internationalisation == | ||
Many articles on Meta should be translatable, in that case use | Many articles on Meta should be translatable, in that case use | ||
: <code>{{tlx|main|<nowiki>Special:MyLanguage/Example{{!}}<translate>Example</translate></nowiki>}}</code> | : <code>{{tlx|TNT|main|<nowiki>Special:MyLanguage/Example{{!}}<translate>Example</translate></nowiki>}}</code> | ||
which renders as | which renders as | ||
{{main|Special:MyLanguage/Example{{!}}<translate><!--T:1--> | {{TNT|main|Special:MyLanguage/Example{{!}}<translate><!--T:1--> | ||
Example</translate>}} | Example</translate>}} | ||
== See also == | == See also == | ||
* {{tl|Further}} | * {{tl|Further}} | ||
* {{tl|TNT}} (shortcut for {{tl|Translatable template}}) | |||
* {{tl|Ll}} (shortcut for {{tl|Localized link}}) | * {{tl|Ll}} (shortcut for {{tl|Localized link}}) | ||
<includeonly> | <includeonly> | ||
Revision as of 23:48, 26 December 2013
Usage
To link to a main article on a topic like Example, use
{{TNT|main|Example}}
which renders as Template:TNT
You can add up to 5 article names in parameters:
{{TNT|main|Example|Example|Example|Example|Example}}
which renders as Template:TNT
These parameters are used to generate links and may include namespace prefixes or interwiki prefixes. If you want to hide these prefixes (for example here for a link to English Wikipedia) and display an alternative text you can use
{{TNT|main|w:en:Example{{!}}Example (in English Wikipedia)}}
which renders as Template:TNT
Internationalisation
Many articles on Meta should be translatable, in that case use
{{TNT|main|Special:MyLanguage/Example{{!}}<translate>Example</translate>}}
which renders as Template:TNT
See also
- {{Further}}
- {{TNT}} (shortcut for {{Translatable template}})
- {{Ll}} (shortcut for {{Localized link}})