Template:Main/doc/ms: Difference between revisions
Template page
More actions
< Template:Main | doc
No edit summary |
Updating to match new version of source page |
||
| Line 9: | Line 9: | ||
You can add up to 5 article names in parameters: | You can add up to 5 article names in parameters: | ||
: <code>{{tlx|TNT|Main| | : <code>{{tlx|TNT|Main|MediaWiki/de|MediaWiki/en|MediaWiki/es|MediaWiki/fr|MediaWiki/zh}}</code> | ||
which renders as | which renders as | ||
{{TNT|Main| | {{TNT|Main|MediaWiki/de|MediaWiki/en|MediaWiki/es|MediaWiki/fr|MediaWiki/zh}} | ||
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 | ||
Revision as of 16:16, 7 February 2014
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|MediaWiki/de|MediaWiki/en|MediaWiki/es|MediaWiki/fr|MediaWiki/zh}}
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}})