Template:TransLink: Difference between revisions
No edit summary Tag: Manual revert |
Added support for sections |
||
Line 1: | Line 1: | ||
<translate><!--T:1--> | <translate><!--T:1--> | ||
{{TemplateUsage | {{TemplateUsage | ||
|usage=<pre>{{TransLink|Page Name|Link Text}}</pre> | |usage=<pre>{{TransLink|Page Name|Link Text|Section}}</pre> | ||
|description=Links to the translation of the provided page in the same language as the interface language of the user if it exists. | |description=Links to the translation of the provided page in the same language as the interface language of the user if it exists. Section is not required and will add a section specifier to the link, please add it with <code></code>. | ||
}}</translate> | }}</translate> | ||
<onlyinclude>[[Special:MyLanguage/{{{1}}}|{{{2}}}]]</onlyinclude> | <onlyinclude>{{#if:{{{section|}}} | ||
|[[Special:MyLanguage/{{{1}}}#{{{section}}}|{{{2}}}]] | |||
|[[Special:MyLanguage/{{{1}}}|{{{2}}}]]}}</onlyinclude> | |||
{{BulbAttrib|Template:Main}} | |||
[[Category:Link templates]] | [[Category:Link templates]] |