Difference between revisions of "Template:Localized link"
m
new tvar syntax
>Shirayuki (prepare for translation) |
>Shirayuki m (new tvar syntax) |
||
Line 70: | Line 70: | ||
#: <code><translate>some text</translate> <nowiki>{{ll|Communication|<translate>About communication</translate>}}</nowiki> <translate>some text</translate></code>. | #: <code><translate>some text</translate> <nowiki>{{ll|Communication|<translate>About communication</translate>}}</nowiki> <translate>some text</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 | # <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 | * {{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 | * {{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 | * {{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> |