Difference between revisions of "Template:Localized link"

From WPRDC Wiki
Jump to navigation Jump to search
>Shirayuki
(prepare for translation)
>Shirayuki
m (new tvar syntax)
Line 70: Line 70:
#: <code>&lt;translate>some text&lt;/translate> <nowiki>{{ll|Communication|&lt;translate>About communication&lt;/translate>}}</nowiki> &lt;translate>some text&lt;/translate></code>.
#: <code>&lt;translate>some text&lt;/translate> <nowiki>{{ll|Communication|&lt;translate>About communication&lt;/translate>}}</nowiki> &lt;translate>some text&lt;/translate></code>.
#: <translate>This is useful for bulleted lists of links, e.g. in the "See also:" sections.</translate>
#: <translate>This is useful for bulleted lists of links, e.g. in the "See also:" sections.</translate>
# <translate>If link text does not have to be different from the name of landing page, will be better to embed all this code into <tvar|1>{{tag|tvar|open}}</>.</translate>
# <translate>If link text does not have to be different from the name of landing page, will be better to embed all this code into <tvar name=1>{{tag|tvar|open}}</tvar>.</translate>
#: As example, instead {{Tlx|ll|Communication}}, translation markup in translatable page will be <code><nowiki><tvar name=1>{{ll|Communication}}</tvar></nowiki></code>.
#: As example, instead {{Tlx|ll|Communication}}, translation markup in translatable page will be <code><nowiki><tvar name=1>{{ll|Communication}}</tvar></nowiki></code>.


Line 77: Line 77:
</translate>
</translate>
* [[Template:Localized link/messagedoc]] — <translate>should be used for message documentation in translatable pages that use this template.</translate>
* [[Template:Localized link/messagedoc]] — <translate>should be used for message documentation in translatable pages that use this template.</translate>
* {{tl|Translatable template}} - <translate>alias <tvar|1>{{tl|TNT}}</> or <tvar|2>{{tl|tnt}}</></translate>
* {{tl|Translatable template}} - <translate>alias <tvar name=1>{{tl|TNT}}</tvar> or <tvar name=2>{{tl|tnt}}</tvar></translate>
* {{tl|Translatable template name}} - <translate>alias <tvar|1>{{tl|TNTN}}</> or <tvar|2>{{tl|tntn}}</></translate>
* {{tl|Translatable template name}} - <translate>alias <tvar name=1>{{tl|TNTN}}</tvar> or <tvar name=2>{{tl|tntn}}</tvar></translate>
* {{tl|Page language link}} - <translate>alias <tvar|1>{{tl|pll}}</></translate> - <translate>add a link from a translatable page to another translatable page in the same language</translate>
* {{tl|Page language link}} - <translate>alias <tvar name=1>{{tl|pll}}</tvar></translate> - <translate>add a link from a translatable page to another translatable page in the same language</translate>


}}
}}
[[Category:Internationalization templates]]
[[Category:Internationalization templates]]
</noinclude>
</noinclude>

Revision as of 10:35, 5 June 2021

<languages/> [[Special:MyLanguage/{{{1}}}|{{{1}}}]][[:{{{1}}}| ]] Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.[[Category:Template documentation pages{{#translation:}}]]