Template:Main/doc/ko: Difference between revisions
Template page
More actions
< Template:Main | doc
Updating to match new version of source page |
Updating to match new version of source page |
||
| 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 | ||
<source lang="html5"> | |||
{{TNT|Main|Example}} | |||
</source> | |||
which renders as | which renders as | ||
{{TNT|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: | ||
<source lang="html5"> | |||
{{TNT|Main|MediaWiki/de|MediaWiki/en|MediaWiki/es|MediaWiki/fr|MediaWiki/zh}} | |||
</source> | |||
which renders as | which renders as | ||
{{TNT|Main|MediaWiki/de|MediaWiki/en|MediaWiki/es|MediaWiki/fr|MediaWiki/zh}} | {{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 | ||
<source lang="html5"> | |||
{{TNT|Main|w:en:Example{{!}}Example (in English Wikipedia)}} | |||
</source> | |||
which renders as | which renders as | ||
{{TNT|Main|w:en:Example{{!}}Example (in English Wikipedia)}} | {{TNT|Main|w:en:Example{{!}}Example (in English Wikipedia)}} | ||
| Line 20: | Line 26: | ||
== Internationalisation == | == Internationalisation == | ||
Many articles on Meta should be translatable, in that case use | Many articles on Meta should be translatable, in that case use | ||
<source lang="html5"> | |||
{{tlx|TNT|Main|Special:MyLanguage/Example{{!}}Example}} | |||
</source> | |||
which renders as | which renders as | ||
{{TNT|Main|Special:MyLanguage/Example{{!}} | {{TNT|Main|Special:MyLanguage/Example{{!}}Example}} | ||
== See also == | == See also == | ||
Revision as of 16:24, 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
{{tlx|TNT|Main|Special:MyLanguage/Example{{!}}Example}}
which renders as Template:TNT
See also
- {{Further}}
- {{TNT}} (shortcut for {{Translatable template}})
- {{Ll}} (shortcut for {{Localized link}})