Template:L/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
[[Ru/Logic_auto|logic_auto]]
[[Ru/Logic_auto|logic_auto]]
</pre>
</pre>
{{important|Don't use on English pages or templates that would transclude this on an English page. Will not work properly there and is not supposed to avoid any extra unnecessary checks as this template should remain as light as possible. If transclusion to an English page is needed or want to link other namespace than main use [[Template:Lx]]. }}
{{important|Don't use on English pages or templates that would transclude this on an English page. Will not work properly there and is not supposed to avoid any extra unnecessary checks as this template should remain as light as possible. If transclusion to an English page is needed use more expensive version of this template {{T|Lx}} which also automatically checks for namespace to place the prefix in proper place. }}


== See Also ==
== See Also ==

Revision as of 02:14, 11 August 2024

Template to use for mainspace links on non-English articles. Will also have link to English version of the page next to it in parentheses.

{{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]]
{{L|some Page#subsection|altlink}} while on pages starting with Ru/ prefix
becomes:
[[Ru/Some Page#subsection|altlink]]
{{L|logic_auto}} while on pages starting with Ru/ prefix
becomes:
[[Ru/Logic_auto|logic_auto]]
Icon-Important.pngImportant:Don't use on English pages or templates that would transclude this on an English page. Will not work properly there and is not supposed to avoid any extra unnecessary checks as this template should remain as light as possible. If transclusion to an English page is needed use more expensive version of this template {{Lx}} which also automatically checks for namespace to place the prefix in proper place.

See Also