Guidelines:Categories: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
(Created page with "{{BasePageLink|Guidelines:Main}} {{Big|Overview|3}}<br> '''Categories''' are the system that we use to organize and sort each page. They are located at the bottom of each page...")
 
m (Mass Formatting <br> to <br/>)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{BasePageLink|Guidelines:Main}}
{{ZW Nav|Guidelines}}
{{Big|Overview|3}}<br>
{{Big|Overview|3}}<br/>
'''Categories''' are the system that we use to organize and sort each page. They are located at the bottom of each page. A list of all categories can be found at [[Special:Categories]].
'''Categories''' are the system that we use to organize and sort each page. They are located at the bottom of each page. A list of all categories can be found at [[Special:Categories]].


Line 6: Line 6:


==How to Use Categories==
==How to Use Categories==
Categories can be placed in a page by prefixing a category name with <code>Category:</code> and placing those between two brackets. Some categories are organized to form trees. The hierarchies of these trees depends on the subjects covered, though they often derive from commonalities between child categories. For example, the categories for [[:Category:Enemies in Breath of the Wild|Enemies in Breath of the Wild]] and [[:Category:Enemies in Link's Awakening (Nintendo Switch)|Enemies in Link's Awakening]] are both sorted into the [[:Category:Enemies|Enemies]] parent category.
There are multiple ways to add categories to pages. The recommended way is to make use of the [[Template:Categories|Categories template]]. For example, if you wanted to add the [[:Category:Hyruleans]] and [[:Category:Sheikah]] categories to a page, you should add the following:
<pre>
{{Categories
|Hyruleans, Sheikah
}}
</pre>
When adding categories this way, you should sort them alphabetically and separate them with a comma. These should also be left as upper-case words. Furthermore, you can also add "X in Y" categories by adding the "X" parameter as a separate field followed by <code>=</code> and a list of game initialisms in the [[Guidelines:Main#Canon Order|canon order]] (the categories for [[:Category:Characters in Link's Awakening (Nintendo Switch)|Characters in Link's Awakening (Nintendo Switch)]] and [[:Category:Enemies in Link's Awakening (Nintendo Switch)|Enemies in Link's Awakening (Nintendo Switch)]] would be placed ''before'' [[:Category:Bosses in Ocarina of Time|Bosses in Ocarina of Time]]).. For example, in addition to the categories listed above, you can add the following:
<pre>
{{Categories
|Hyruleans, Sheikah
|bosses= TP, TPHD
|characters= LA, LANS
|dungeons= LADX
|enemies= FSA
|items= OoT, OoT3D, TMC
|objects= MM, MM3D
|places= MM, BotW
|songs= OoT, OoT3D
|stages= HW, HWL, HWDE, SSBfN3DS, SSBfWU
|sub-bosses= TP, TPHD
}}
</pre>
For all of the category types that follow with a <code>=</code>, it will generate and sort categories such as [[:Category:Bosses in Twilight Princess]]. The Categories template presently covers the subjects of <code>bosses</code>, <code>characters</code>, <code>dungeons</code>, <code>enemies</code>, <code>items</code>, <code>objects</code>, <code>places</code>, <code>songs</code>, <code>stages</code>, and <code>sub-bosses</code>. For advanced details on how to use [[Template:Categories]], visit the template's page.


When placed on a page, categories should follow in an alphabetical format, except in the case of categories pertaining to specific games (such as "Enemies in X"). In the latter case, these should be placed after all other categories alphabetically per game in the [[Guidelines:Main#Canon Order|canon order]] (the categories for [[:Category:Characters in Link's Awakening (Nintendo Switch)|Characters in Link's Awakening (Nintendo Switch)]] and [[:Category:Enemies in Link's Awakening (Nintendo Switch)|Enemies in Link's Awakening (Nintendo Switch)]] would be placed ''before'' [[:Category:Bosses in Ocarina of Time|Bosses in Ocarina of Time]]). A specific template was created to sort multiple categories of this nature, [[Template:Categories]]. Template:Categories presently covers the subjects of <code>bosses</code>, <code>characters</code>, <code>dungeons</code>, <code>enemies</code>, <code>items</code>, <code>objects</code>, <code>places</code>, <code>songs</code>, <code>stages</code>, and <code>sub-bosses</code>. Instructions on how to use both methods of categorization have been provided below. For advanced details on how to use [[Template:Categories]], visit the template's page.
Some categories are organized to form trees. The hierarchies of these trees depends on the subjects covered, though they often derive from commonalities between child categories. For example, the categories for [[:Category:Enemies in Breath of the Wild|Enemies in Breath of the Wild]] and [[:Category:Enemies in Link's Awakening (Nintendo Switch)|Enemies in Link's Awakening]] are both sorted into the [[:Category:Enemies|Enemies]] parent category.


{| class="altrow" style="text-align:left; width:40em;"
Categories are traditionally added to pages by placing them within code that resembles the following: <code><nowiki>[[Category:Hylians]]</nowiki></code>. However, this is not recommended for Zelda Wiki as we have the [[Template:Categories|Categories template]] to automate and condense our categories.
 
{| class="wikitable" style="text-align:left; width:40em;"
|-
|-
!width:50%| Code
!width:50%| Code
!width:50%| Categories
!width:50%| Categories
|-
|-
| <nowiki>[[Category:Animals]]</nowiki>
| <nowiki>[[Category:Animals]]</nowiki><br/>{{Small|(This format is not recommended.)}}
| [[:Category:Animals]]
| [[:Category:Animals]]
|-
|-
| <nowiki>{{Categories</nowiki><br><nowiki>&nbsp;|bosses= OoT</nowiki><br><nowiki>}}</nowiki>
| <nowiki>{{Categories</nowiki><br/><nowiki>&nbsp;|bosses= OoT</nowiki><br/><nowiki>}}</nowiki>
| [[:Category:Bosses in Ocarina of Time]]
| [[:Category:Bosses in Ocarina of Time]]
|-
|-
| <nowiki>{{Categories</nowiki><br><nowiki>&nbsp;|bosses= OoT, OoT3D</nowiki><br><nowiki>&nbsp;|characters= OoT</nowiki><br><nowiki>}}</nowiki>
| <nowiki>{{Categories</nowiki><br/><nowiki>&nbsp;|bosses= OoT, OoT3D</nowiki><br/><nowiki>&nbsp;|characters= OoT</nowiki><br/><nowiki>}}</nowiki>
| [[:Category:Bosses in Ocarina of Time]]<br>[[:Category:Characters in Ocarina of Time]]<br>[[:Category:Bosses in Ocarina of Time 3D]]
| [[:Category:Bosses in Ocarina of Time]]<br/>[[:Category:Characters in Ocarina of Time]]<br/>[[:Category:Bosses in Ocarina of Time 3D]]
|-
|-
| <nowiki>[[Category:Undead]]</nowiki><br><nowiki>{{Categories</nowiki><br><nowiki>&nbsp;|enemies= LA, LADX, LANS</nowiki><br><nowiki>}}</nowiki>
| <nowiki>{{Categories</nowiki><br/><nowiki>&nbsp;|Undead</nowiki><br/><nowiki>&nbsp;|enemies= LA, LADX, LANS</nowiki><br/><nowiki>}}</nowiki>
| [[:Category:Undead]]<br>[[:Category:Enemies in Link's Awakening]]<br>[[:Category:Enemies in Link's Awakening DX]]<br>[[:Category:Enemies in Link's Awakening (Nintendo Switch)]]
| [[:Category:Undead]]<br/>[[:Category:Enemies in Link's Awakening]]<br/>[[:Category:Enemies in Link's Awakening DX]]<br/>[[:Category:Enemies in Link's Awakening (Nintendo Switch)]]
|}
|}



Latest revision as of 17:14, 30 January 2022

Overview
Categories are the system that we use to organize and sort each page. They are located at the bottom of each page. A list of all categories can be found at Special:Categories.

How to Use Categories

There are multiple ways to add categories to pages. The recommended way is to make use of the Categories template. For example, if you wanted to add the Category:Hyruleans and Category:Sheikah categories to a page, you should add the following:

{{Categories
 |Hyruleans, Sheikah
}}

When adding categories this way, you should sort them alphabetically and separate them with a comma. These should also be left as upper-case words. Furthermore, you can also add "X in Y" categories by adding the "X" parameter as a separate field followed by = and a list of game initialisms in the canon order (the categories for Characters in Link's Awakening (Nintendo Switch) and Enemies in Link's Awakening (Nintendo Switch) would be placed before Bosses in Ocarina of Time).. For example, in addition to the categories listed above, you can add the following:

{{Categories
 |Hyruleans, Sheikah
 |bosses= TP, TPHD
 |characters= LA, LANS
 |dungeons= LADX
 |enemies= FSA
 |items= OoT, OoT3D, TMC
 |objects= MM, MM3D
 |places= MM, BotW
 |songs= OoT, OoT3D
 |stages= HW, HWL, HWDE, SSBfN3DS, SSBfWU
 |sub-bosses= TP, TPHD
}}

For all of the category types that follow with a =, it will generate and sort categories such as Category:Bosses in Twilight Princess. The Categories template presently covers the subjects of bosses, characters, dungeons, enemies, items, objects, places, songs, stages, and sub-bosses. For advanced details on how to use Template:Categories, visit the template's page.

Some categories are organized to form trees. The hierarchies of these trees depends on the subjects covered, though they often derive from commonalities between child categories. For example, the categories for Enemies in Breath of the Wild and Enemies in Link's Awakening are both sorted into the Enemies parent category.

Categories are traditionally added to pages by placing them within code that resembles the following: [[Category:Hylians]]. However, this is not recommended for Zelda Wiki as we have the Categories template to automate and condense our categories.

Code Categories
[[Category:Animals]]
(This format is not recommended.)
Category:Animals
{{Categories
 |bosses= OoT
}}
Category:Bosses in Ocarina of Time
{{Categories
 |bosses= OoT, OoT3D
 |characters= OoT
}}
Category:Bosses in Ocarina of Time
Category:Characters in Ocarina of Time
Category:Bosses in Ocarina of Time 3D
{{Categories
 |Undead
 |enemies= LA, LADX, LANS
}}
Category:Undead
Category:Enemies in Link's Awakening
Category:Enemies in Link's Awakening DX
Category:Enemies in Link's Awakening (Nintendo Switch)

Creating Categories

Categories should be created before they're used on pages. To create a category, simply visit its page and begin editing it. There is a general rule that categories should only be created if five or more articles apply to it. If a category is created with less than five applicable pages, it may be subject for deletion. Exceptions to this rule include framework and support categories for games. For details on these categories, please refer to step 8 of the New Games guidelines.