Template:ACategory/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "Template to add category on non English pages. <pre> {{ACategory|Entity|SortKey}} will on pages with prefix Zh/ become: SortKey </pre> <pre> {{ACateg...")
 
No edit summary
Line 1: Line 1:
Template to add category on non English pages.
Template to easily add category on non English pages.


<pre>
<pre>
Line 13: Line 13:
</pre>
</pre>


{{note|Don't use on English pages as it's no different than adding category the regular way. It's also safe to use in templates that will be transcluded on any pages.}}
{{note|Using it on English pages is no different than adding category the regular way so it's safe to use in templates that will be transcluded on any pages.}}

Revision as of 21:58, 18 July 2024

Template to easily add category on non English pages.

{{ACategory|Entity|SortKey}} will on pages with prefix Zh/ become:

[[Category:Zh/Entity|SortKey]]
{{ACategory|Entity}} will on pages with prefix Ru/ become:

[[Category:Ru/Entity|Entity]]
Note.pngNote:Using it on English pages is no different than adding category the regular way so it's safe to use in templates that will be transcluded on any pages.