Help:Categories: Difference between revisions
m LifeWiki:Categories moved to Help:Categories |
navbox, cleaned up |
||
| Line 1: | Line 1: | ||
'''Categories''' are one of the ways that LifeWiki organizes the articles on the site so that readers can find information they need quickly. The category system, unlike many other wikis, is for the most part ''not'' hierarchical. That is, if a [[pattern]] is a [[Types of spaceships#Glide symmetric spaceship|glide symmetric]] [[spaceship]], it should be placed in the [[:Category:Glide symmetric spaceships|glide symmetric category]] as well as the [[:Category:Spaceships|general spaceships category]]. This is to allow for browsing of patterns at as high or low of a level as desired by the user - they may browse all spaceships at once, all spaceships with a given [[speed]], all | '''Categories''' are one of the ways that [[LifeWiki:About|LifeWiki]] organizes the articles on the site so that readers can find information they need quickly. The category system, unlike many other wikis, is for the most part ''not'' hierarchical. That is, if a [[pattern]] is a [[Types of spaceships#Glide symmetric spaceship|glide symmetric]] [[spaceship]], it should be placed in the [[:Category:Glide symmetric spaceships|glide symmetric category]] as well as the [[:Category:Spaceships|general spaceships category]]. This is to allow for browsing of patterns at as high or low of a level as desired by the user - they may browse all spaceships at once, all spaceships with a given [[speed]], all glider symmetric spaceships, and so on. | ||
==How to add categories== | ==How to add categories== | ||
To place an article in a category, you simply insert a link to the category somewhere on the page: <nowiki>[[Category:Spaceships]]</nowiki>. You can also specify an additional sortkey parameter that dictates where the page will appear, alphabetically, within the category. This is achieved by using the following markup: <nowiki>[[Category:Spaceships|My spaceship name]]</nowiki>. Note that if this is omitted, the page will alphabetize under the page's title. | To place an article in a category, you simply insert a link to the category somewhere on the page: <nowiki>[[Category:Spaceships]]</nowiki>. You can also specify an additional sortkey parameter that dictates where the page will appear, alphabetically, within the category. This is achieved by using the following markup: <nowiki>[[Category:Spaceships|My spaceship name]]</nowiki>. Note that if this is omitted, the page will alphabetize under the page's title. | ||
If a page has multiple categories (and most do on LifeWiki), you can simplify the category sorting by declaring a <nowiki>{{DEFAULTSORT}}</nowiki> variable. Thus, you could have a line that says <nowiki>{{DEFAULTSORT:Something}}</nowiki>, which would cause the page to be automatically sorted under "Something" in any category used on that page. This can also be used with the <nowiki>{{PAGENAME}}</nowiki> variable, in the following syntax: <nowiki>{{DEFAULTSORT:{{PAGENAME}}}}</nowiki>, though this is in most cases redundant and not needed. Note that declaring a sortkey | If a page has multiple categories (and most do on LifeWiki), you can simplify the category sorting by declaring a <nowiki>{{DEFAULTSORT}}</nowiki> variable. Thus, you could have a line that says <nowiki>{{DEFAULTSORT:Something}}</nowiki>, which would cause the page to be automatically sorted under "Something" in any category used on that page. This can also be used with the <nowiki>{{PAGENAME}}</nowiki> variable, in the following syntax: <nowiki>{{DEFAULTSORT:{{PAGENAME}}}}</nowiki>, though this is in most cases redundant and not needed. Note that declaring a sortkey as described earlier will override a <nowiki>{{DEFAULTSORT}}</nowiki> declaration, in case you want to have the page sorted under a different letter in some categories. | ||
==Current category system== | ==Current category system== | ||
An alphabetical listing of the current categories is available at [[Special:Categories]]. Before creating a new category, check whether or not there is already an appropriate category. Note that most relevant categories are automatically added to pattern pages by that [[LifeWiki: | An alphabetical listing of the current categories is available at [[Special:Categories]]. Before creating a new category, check whether or not there is already an appropriate category. Note that most relevant categories are automatically added to pattern pages by that [[LifeWiki:Pattern_pages|pattern's template]]. Also look over [[LifeWiki:Editor categories]] for a list of categories that are particularly useful for editors. | ||
{{ContributeNavbox}} | |||
Revision as of 15:40, 16 June 2009
Categories are one of the ways that LifeWiki organizes the articles on the site so that readers can find information they need quickly. The category system, unlike many other wikis, is for the most part not hierarchical. That is, if a pattern is a glide symmetric spaceship, it should be placed in the glide symmetric category as well as the general spaceships category. This is to allow for browsing of patterns at as high or low of a level as desired by the user - they may browse all spaceships at once, all spaceships with a given speed, all glider symmetric spaceships, and so on.
How to add categories
To place an article in a category, you simply insert a link to the category somewhere on the page: [[Category:Spaceships]]. You can also specify an additional sortkey parameter that dictates where the page will appear, alphabetically, within the category. This is achieved by using the following markup: [[Category:Spaceships|My spaceship name]]. Note that if this is omitted, the page will alphabetize under the page's title.
If a page has multiple categories (and most do on LifeWiki), you can simplify the category sorting by declaring a {{DEFAULTSORT}} variable. Thus, you could have a line that says {{DEFAULTSORT:Something}}, which would cause the page to be automatically sorted under "Something" in any category used on that page. This can also be used with the {{PAGENAME}} variable, in the following syntax: {{DEFAULTSORT:{{PAGENAME}}}}, though this is in most cases redundant and not needed. Note that declaring a sortkey as described earlier will override a {{DEFAULTSORT}} declaration, in case you want to have the page sorted under a different letter in some categories.
Current category system
An alphabetical listing of the current categories is available at Special:Categories. Before creating a new category, check whether or not there is already an appropriate category. Note that most relevant categories are automatically added to pattern pages by that pattern's template. Also look over LifeWiki:Editor categories for a list of categories that are particularly useful for editors.
| ||||||||||||||