Template:ACategory: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(default sort key = pagename without language prefix)
No edit summary
Line 3: Line 3:
     |[[Category:{{{1}}}|{{{2|{{{1}}}}}}]]
     |[[Category:{{{1}}}|{{{2|{{{1}}}}}}]]
}}</includeonly></onlyinclude>
}}</includeonly></onlyinclude>
 
{{doc}}
<pre>Template to add category on non English pages.
 
{{ACategory|Entity|SortKey}} will on pages with prefix Zh/ become:
 
[[Category:Zh/Entity|SortKey]]
 
</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.}}
 
[[Category:Language-related templates]]
[[Category:Language-related templates]]

Revision as of 21:56, 18 July 2024

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

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