Template:L: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-obsolete with current multipage)
No edit summary
Line 1: Line 1:
{{lang|Template:L}}
{{lang|Template:L}}
A convenience template for articles in other languages. Allows for links to pages where the name is identical across all languages (e.g. $envmap) to be done a little faster. If the name is below 6 characters, this template is less efficient per-character.
A convenience template for articles in other languages.  
<pre>{{L|targetname|zh-cn}}
<pre>{{L|Targetname}} while on pages starting with Zh/ prefix
becomes:
becomes:
[[targetname:zh-cn|targetname]]</pre>
[[Zh/Targetname|Targetname]]
<onlyinclude><includeonly>[[{{{1}}}]]</includeonly></onlyinclude>
</pre>
<pre>{{L|Targetname|Name}} while on pages starting with Zh/ prefix
becomes:
[[Zh/Targetname|Name]]
</pre>
Don't use on English pages.
<onlyinclude><includeonly>[[{{ROOTPAGENAME}}/{{{1|}}}|{{{2|{{{1|}}}}}}]]</includeonly></onlyinclude>

Revision as of 02:09, 11 July 2024

A convenience template for articles in other languages.

{{L|Targetname}} while on pages starting with Zh/ prefix
becomes:
[[Zh/Targetname|Targetname]]
{{L|Targetname|Name}} while on pages starting with Zh/ prefix
becomes:
[[Zh/Targetname|Name]]

Don't use on English pages.