Template:L: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(.)
m (Add lang and use <onlyinclude>.)
Line 1: Line 1:
<noinclude>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.
{{lang|Template:L}}
<pre>[[targetname:zh-cn|targetname]]
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.
<pre>{{L|targetname|zh-cn}}
becomes:
becomes:
{{L|targetname|zh-cn}}</pre></noinclude>[[{{{1}}}:{{{2}}}|{{{1}}}]]
[[targetname:zh-cn|targetname]]</pre>
<onlyinclude><includeonly>[[{{{1}}}:{{{2}}}|{{{1}}}]]</includeonly></onlyinclude>

Revision as of 06:10, 19 September 2021

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.

{{L|targetname|zh-cn}}
becomes:
[[targetname:zh-cn|targetname]]