Template:LCategory: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Protected "Template:LCategory": High traffic page ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
(shorter en link, Category: shown too if no altname provided)
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|Category:{{{1|}}}}}}]] {{#ifexist: Category:{{ROOTPAGENAME}}/{{ucfirst:{{{1}}}}}||(<span class="plainlinks>[{{fullurl:Category:{{{1}}}}} en|true}}]</span>)}}</includeonly></onlyinclude>
{{High-use}}
{{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.
Line 5: Line 5:
{{LCategory|Level Design}} will on pages with prefix Zh/ become:
{{LCategory|Level Design}} will on pages with prefix Zh/ become:


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


</pre>
</pre>
[[Category:Language-related templates]]
[[Category:Language-related templates]]

Revision as of 17:29, 16 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|Category:Level Design]]