Difference between revisions of "Help:Categories"

From Krafties
Jump to navigation Jump to search
m
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:WikiHelp]]
+
{{WikiHelp}}
 
:'''Categories''' are important and useful for organizing pages.
 
:'''Categories''' are important and useful for organizing pages.
All links that have the <code>Category:</code> namespace, are categories.  
+
All ''pages'' that have the <code>Category:</code> namespace, are categories.
 +
==Using Categories==
 +
*To add a page to a category, write the category link on the page: <code><nowiki>[[Category:WikiHelp]]</nowiki></code>
 +
*To create a normal [[Help:Links|link]] to a category without adding the page to said category, you need to write it like this: <code><nowiki>[[:Category:WikiHelp]]</nowiki></code>
 +
 
 +
===Notes===
 +
*The ''Categories'' will '''always''' appear at the bottom of the page when viewed if done correctly, no matter where you put the Category tag when editing.
 +
*This is why it is best to '''add categories in the first line''', so they are easily found when editing.
 +
*Even if a category has not been created, items can be put into it (the link will just appear red).
 +
*Categories are groups and can be used to link together related groups ''(Categories in Categories)'' and some are in multiple ones.
  
 
==What can be Categorized?==
 
==What can be Categorized?==
Everything can be put into a category
+
Everything can be put into a category, such as
*'''Pages'''
+
:*'''Pages'''
*'''Categories''' (for further sorting)
+
:*'''Categories''' (for further sorting)
*'''Media Files''' (they have <code>File:</code> as namespace)
+
:*'''Media Files''' (they have <code>File:</code> as namespace)
 
+
:*'''Redirects''' (useful for getting certain things to appear on the Category page list, just add them after the Redirect link)
==Using Categories==
 
:*To add a page to a category, you simply add it's link on the page
 
:*When viewing the page, the Category will '''always''' appear at the bottom, no matter where you put the link when editing.
 
:::''Example: When editing this page, the category link is in the first line. But when viewing the category link appears on the bottom.
 
:*''When adding '''multiple categories''', each needs to be a separate link
 
:::They will automatically arrange the links '''alphabetically''' when viewed.
 
:*For clean setup, I recommend to '''always''' put the category link in the first line, for easy location when editing.
 
  
 
==Templates with Categories==
 
==Templates with Categories==
 
Some templates have been made so it will add the page using it into the same category.  
 
Some templates have been made so it will add the page using it into the same category.  
 
*There will be a note on the template page itself, telling you what the template is made to do, such as if it will add the page to a category.
 
*There will be a note on the template page itself, telling you what the template is made to do, such as if it will add the page to a category.
 +
*An example can be made of this help page, by using the <code><nowiki>{{WikiHelp}}</nowiki></code> template, the page has been organized into the [[:Category:WikiHelp|WikiHelp Category]].

Latest revision as of 01:30, 22 August 2014

Our Wiki Help Pages
General Mediawiki Helpguides
Categories are important and useful for organizing pages.

All pages that have the Category: namespace, are categories.

Using Categories[edit]

  • To add a page to a category, write the category link on the page: [[Category:WikiHelp]]
  • To create a normal link to a category without adding the page to said category, you need to write it like this: [[:Category:WikiHelp]]

Notes[edit]

  • The Categories will always appear at the bottom of the page when viewed if done correctly, no matter where you put the Category tag when editing.
  • This is why it is best to add categories in the first line, so they are easily found when editing.
  • Even if a category has not been created, items can be put into it (the link will just appear red).
  • Categories are groups and can be used to link together related groups (Categories in Categories) and some are in multiple ones.

What can be Categorized?[edit]

Everything can be put into a category, such as

  • Pages
  • Categories (for further sorting)
  • Media Files (they have File: as namespace)
  • Redirects (useful for getting certain things to appear on the Category page list, just add them after the Redirect link)

Templates with Categories[edit]

Some templates have been made so it will add the page using it into the same category.

  • There will be a note on the template page itself, telling you what the template is made to do, such as if it will add the page to a category.
  • An example can be made of this help page, by using the {{WikiHelp}} template, the page has been organized into the WikiHelp Category.