Template:L: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(just an idea...)
 
(.)
Line 1: Line 1:
<noinclude>A convenience template for articles in other languages. Allows for links to pages with names above 5 characters for subjects where the name is identical across all languages (e.g. $envmap) to be done a little faster.
<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 5 characters, this template is less efficient per-character.
<pre>[[targetname:zh-cn|targetname]]
<pre>[[targetname:zh-cn|targetname]]
becomes:
becomes:
{{L|targetname|zh-cn}}</pre></noinclude>[[{{{1}}}:{{{2}}}|{{{1}}}]]
{{L|targetname|zh-cn}}</pre></noinclude>[[{{{1}}}:{{{2}}}|{{{1}}}]]

Revision as of 14:56, 23 September 2018

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 5 characters, this template is less efficient per-character.

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

[[{{{1}}}:{{{2}}}|{{{1}}}]]