Cosmoteer Wiki:Categorization

From Cosmoteer Wiki
Jump to navigation Jump to search

This page describes what categories are, how and when to use them, also providing a handy list of categories to select from.

What is a category?

Learn about categories on MediaWiki: https://www.mediawiki.org/wiki/Help:Categories

Things to take away from that article and in general:

  • Categories are meant to group pages by certain criteria. This serves various needs, but mainly:
    • Creating a hierarchy of pages. Makes navigation and discovery of pages much easier.
    • Grouping pages by meaning and purpose. Helps find related things.
    • Automation. Various external utilities might have options to work with pages in certain categories. More categories make interacting with the wiki easier.
  • Categories live in Category namespace. Thus, all categories must start with Category:.
  • Naming is important. The name for a category should reflect its exact purpose, and be unambiguous. it also should follow sentence case: only the first word of a sentence and proper nouns are capitalized, with the rest of the words in lowercase.
  • Categories appear at the bottom of a page. This is also true for when editing and previewing a page.
  • Categories can be added using templates. Templates that add categories can be found in Category:Templates populating categories.

List of categories

Cosmoteer Wiki is the top-level category. It holds every other category there is.

Main categories are:

More categories can be discovered by navigating those described above, but there are other ways:

  • Search category on Special:SpecialPages - there are a bunch of pages that allow to look at categories in different light.
  • Use the wiki's search with Category namespace selected.

Creating a category

A category is created the same way a page is, but with Category:written before its name - this is a namespace prefix.

https://cosmoteer.wiki.gg/wiki/Category:Category_name

Replace Category_name with the name for your category and press Enter.

This will open a non-existing page, which you can create (assuming the category doesn't exist already).

Give your category a description and save the page.

Any page you add to your new category will appear on the category page.

Adding a category to a page

In VisualEditor

Press Wiki--visual-editor--hamburger-menu--white.svg in the editor toolbar → Categories.

Add your category under the Categories, then press Apply changes.


In source editor

Markup for adding categories is [[Category:Category name]], where Category name is your category name.

Linking to a category

In VisualEditor

Same as for anything else - create a link and put Category:Your category name into the address.


In source editor

To link to a category, write [[:Category:Category name]]. Notice the colon symbol at the start - this creates a link instead of adding a page to a category.

With Templates

There are a few templates that help with linking:

  • {{cat}} just creates a link to a category.
  • {{catt}} creates a link, but omits [[Category:]] part. This one also supports custom link text.

Category cheatsheet

This section contains a list of question you need to ask yourself when trying to figure out the categories to add.

Since there are a gazillion categories to pick from, don't be hard on yourself for forgetting or not understanding.

For a page

CalloutIconWarning.pngStub
This section is currently empty.

Feel free to start it!

For a template

CalloutIconWarning.pngWork in Progress
This section is currently work-in-progress. Some things may not be up-to-date or documented at all.

Feel free to contribute to make it better!

Section Question Question 2 Question 3 Question 4 Answer Link to a template that adds that category

No Maybe Yes
IMAGES Produces an image or images? Category:Image templates
Is a image license template? Category:Image license templates
TEMPLATES Should be used only inside other templates?

Meaning inside them and not on documentation pages.

Category:Templates for use with templates {{Template for use with templates}}
Should be used only only on category pages?
Should be used only only on module pages?
UNKNOWN Used to flag content in some way? Category:Cleanup templates
WIKITEXT Used to substitute a character or a sequence? Category:Character-substitution templates

For a module

CalloutIconWarning.pngStub
This section is currently empty.

Feel free to start it!