Help:Categories: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(added sort key info)
(that should not have wiki formatting. oops!)
Line 3: Line 3:
Categories are pages that group together pages which share similar purposes, subjects or other qualities. To add a page to a category, add it as a link at the bottom of the page. Some [[Help:Templates|templates]] may also assign categories when added to a page.
Categories are pages that group together pages which share similar purposes, subjects or other qualities. To add a page to a category, add it as a link at the bottom of the page. Some [[Help:Templates|templates]] may also assign categories when added to a page.


Hidden categories are just that; categories usually not displayed on a page. This is done only for maintenance categories, like [[:Category:TODO]]. To mark a category as hidden, add the [[Help:Templates|magic word]] <code>__HIDDENCAT__</code> on that category's page.
Hidden categories are just that; categories usually not displayed on a page. This is done only for maintenance categories, like [[:Category:TODO]]. To mark a category as hidden, add the [[Help:Templates|magic word]] <code><nowiki>__HIDDENCAT__</nowiki></code> on that category's page. To make the website show hidden categories for you, check the '''Show hidden categories''' box in [[Special:Preferences#mw-prefsection-rendering|Special:Preferences]].


If you want to simply [[Help:Linking|link]] to a category on a page, put a <code>:</code> at the start of the page name, like this: <code><nowiki>[[:Category:Shaders]]</nowiki></code>.
If you want to simply [[Help:Linking|link]] to a category on a page, put a <code>:</code> at the start of the page name, like this: <code><nowiki>[[:Category:Shaders]]</nowiki></code>.


It may take some time for a page to appear or disappear from a category. Try adding <code>?action=purge</code> at the end of the URL to nudge the server to do it faster. The wait time may be even longer if assigned through a template.
It may take some time for a page to appear or disappear from a category. Try adding <code>?action=purge</code> at the end of the URL to nudge the server to do it faster. The wait time may be even longer if assigned through a template.
{{note|Categories have been in a sort of frozen state since [[User:Pinsplash/Early July 2018 hacking incident|July 4-5 maintenance downtime]], probably due to RunJobs.php not running at all. Attempts to contact Valve ''have'' been made.}}


===Sorting keys===
===Sorting keys===

Revision as of 23:18, 31 July 2018

Help:Editing

Stub

This article or section is a stub. You can help by expanding it.

Categories are pages that group together pages which share similar purposes, subjects or other qualities. To add a page to a category, add it as a link at the bottom of the page. Some templates may also assign categories when added to a page.

Hidden categories are just that; categories usually not displayed on a page. This is done only for maintenance categories, like Category:TODO. To mark a category as hidden, add the magic word __HIDDENCAT__ on that category's page. To make the website show hidden categories for you, check the Show hidden categories box in Special:Preferences.

If you want to simply link to a category on a page, put a : at the start of the page name, like this: [[:Category:Shaders]].

It may take some time for a page to appear or disappear from a category. Try adding ?action=purge at the end of the URL to nudge the server to do it faster. The wait time may be even longer if assigned through a template.

Sorting keys

A sort key allows you to change where in a category a page is listed. To change a page's location, simply add a | after the category name, and then specify where to put it. A sorting key can be as specific as needed. To make a page be categorized under the Es, just add |E. See Wikipedia:WP:SORTKEY for more information and uses.

See Also