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...")
 
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Template to add category on non English pages.
Template to easily add category on non English pages.


<pre>
<pre>
Line 8: Line 8:


<pre>
<pre>
{{ACategory|Entity}} will on pages with prefix Ru/ become:
{{ACategory|Entity}} will on page Ru/Info_target become:


[[Category:Ru/Entity|Entity]]
[[Category:Ru/Entity|Info_target]]
</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.}}
 
== See Also ==
* [[Template:LCategory]]
* [[Template:L]]

Latest revision as of 22:08, 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 page Ru/Info_target become:

[[Category:Ru/Entity|Info_target]]
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.

See Also