Template:LCategory: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Made is so if there is a Category:<lang>/page name (Category:De/Level Design) it removes the english next to it.)
m (High use template)
Line 1: Line 1:
<onlyinclude><includeonly>[[:Category:{{ROOTPAGENAME}}/{{ucfirst:{{{1|}}}}}|{{{2|{{{1|}}}}}}]] {{#ifexist: Category:{{ROOTPAGENAME}}/{{ucfirst:{{{1}}}}}||(<span class="plainlinks>[{{fullurl:Category:{{{1}}}}} {{language name|en|{{lcfirst:{{ROOTPAGENAME}} }}|true}}]</span>)}}</includeonly></onlyinclude>
<onlyinclude><includeonly>[[:Category:{{ROOTPAGENAME}}/{{ucfirst:{{{1|}}}}}|{{{2|{{{1|}}}}}}]] {{#ifexist: Category:{{ROOTPAGENAME}}/{{ucfirst:{{{1}}}}}||(<span class="plainlinks>[{{fullurl:Category:{{{1}}}}} {{language name|en|{{lcfirst:{{ROOTPAGENAME}} }}|true}}]</span>)}}</includeonly></onlyinclude>
{{High-use}}
<pre>Template to link category page (not for adding category) on non English pages.
<pre>Template to link category page (not for adding category) on non English pages.



Revision as of 05:37, 13 July 2024

Warning icon.png
This template is used on many pages and changes may be widely noticed.
Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage.
Consider discussing changes on the talk page before implementing them.
Template to link category page (not for adding category) on non English pages.

{{LCategory|Level Design}} will on pages with prefix Zh/ become:

[[:Category:Zh/Level Design|Level Design]]