Editing
Help:Categorising pages
From Deskthority Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Categorisation of wiki pages makes them more accessible by allowing pages to be found easily through site navigation. Categories function a lot like "tags" in other websites, in that a page can be placed into as many different categories as you desire. By clicking the category names at the bottom of a page, you can explore related pages through browsing the category contents. The MediaWiki category syntax is rather odd and tricky to remember. ==Categorising a page== To categorise a page, write the category name as a link: :<kbd><nowiki>[[Category:IBM keyboards]]</nowiki></kbd> Confusingly, this syntax '''does not''' create a link; instead, it places the page into the specified category! Also bear in mind that categorisation cannot be checked by edit preview; to verify that the category exists as expected, temporary convert it to a link (see section below) and make sure that the category link shows up in blue/purple instead of red. Then remove the colon from the category "tag" before saving your changes. Category "tags" can occur anywhere on the page, including inside any template; for example, the template invocation <kbd><nowiki>{{stub}}</nowiki></kbd> adds <kbd><nowiki>[[Category:Stubs]]</nowiki></kbd> to the page at the point where <kbd><nowiki>{{stub}}</nowiki></kbd> is written (usually at the top of the page) along with the visible message that the page is a stub. Conventionally, the list of categories is placed at the bottom of the page, one per line. ==Linking to a category== To link to a category, add a colon to the beginning of the name: :<kbd><nowiki>[[</nowiki>''':'''<nowiki>Category:IBM keyboards]]</nowiki></kbd> This produces a link as follows: :[[:Category:IBM keyboards]] To avoid having "Category:" show up as part of the link text, add a pipe to the end of the name (i.e. set the display text to the empty string): :<kbd><nowiki>[[:Category:IBM keyboards</nowiki>'''|'''<nowiki>]]</nowiki></kbd> When saving the page, this will automatically expand out, and be saved, as follows: :<kbd><nowiki>[[:Category:IBM keyboards|IBM keyboards]]</nowiki></kbd> This required redundancy is an unfortunate limitation of the way MediaWiki was designed.
Summary:
Please note that all contributions to Deskthority Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Help page
Discussion
Read
Edit source
History
Page actions
Help page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Deskthority forum
Support Deskthority
Search
Main categories
Guides
Keyboards
Keyboard switches
Keycaps
Keyboard modding
Pointing devices
Brands & companies
Group buys
Other topics
Wiki info & links
Recent changes
Random page
All pages
Deskthority wiki help
MediaWiki help
Tools
What links here
Related changes
Special pages
Page information