https://wiki.phpgedview.net/en/index.php?title=PGVWiki:Categorisation&feed=atom&action=historyPGVWiki:Categorisation - Revision history2024-03-28T21:44:03ZRevision history for this page on the wikiMediaWiki 1.34.2https://wiki.phpgedview.net/en/index.php?title=PGVWiki:Categorisation&diff=12134&oldid=prevMomse: /* Links to categories */2010-05-16T17:19:35Z<p><span dir="auto"><span class="autocomment">Links to categories</span></span></p>
<p><b>New page</b></p><div>For detailed technical information on how to use categories, see Wikipedia's [[w:Help:Category|Help:Category]].<br />
<br />
==Approaches to Category Navigation==<br />
<br />
Categories are utilised in two ways by users of the PGVWiki site in order to find articles of interest and relavence. These approaches have to be considered when formulating and expanding the hierarchy of categories.<br />
<br />
===Top-Down Approach===<br />
<br />
A user can browse the top-level of the categories hierarchy via the [[:Category:Contents]] page. The user then [[w:Drill_down|drills-down]] towards categories of increasing specificity by clicking the links within the subcategory section of the category page. This way the user can navigate towards articles of relavence.<br />
<br />
===Bottom-Up Approach===<br />
<br />
A user may have already found an article of relavence and wishes to find similar or a broader range of articles. The user can click on a category link at the bottom of the page to find articles within the same category. Following a similar link at the bottom of a category page will allow you to view the parent category in order to located more broadly categorised articles.<br />
<br />
==How to categorise an article==<br />
<br />
Categorising an article is simply performed by editing it, and including one or more category declarations. For instance, to add the ''[[Blocks]]'' article to the "PhpGedView" category, you would edit the article and enter <tt><nowiki>[[Category:PhpGedView]]</nowiki></tt> at the bottom, but ''before'' any [[w:Interlanguage links|interlanguage links]]. The appeal of categories is that they update themselves automatically, and you don't have to edit the category to add an article to it.<br />
<br />
When adding an article to a category, or creating categories, one should be careful to use the correct categories and subcategories. Horizontal categorisation (below), refers to placing an article in the correct category while vertical categorisation refers to placing an article in the correct ''sub''category.<br />
<br />
When assigning an article into categories, try to be thorough in a "horizontal" sense. You might need to poke around the [[:Category:Contents|category hierarchy]] a bit to find the right place. Try searching for articles similar to the article you are categorising to get ideas or to find the most appropriate place. <br />
<br />
In the "vertical" dimension, placing articles only in the most specific categories they reasonably fit in. Thus, if an article relates to a Chart type in PhpGedView then it could be categorised under [[:Category:Charts]] but not [[:Category:PhpGedView]] since [[:Category:Charts]] is a subcategory of [[:Category:PhpGedView]]. It is expected that the user should be able navigate the categorise hierarchy to find related articles using one of the above [[#Approaches to Category Navigation|approaches]].<br />
<br />
==When creating categories . . .==<br />
<br />
===Look before you leap===<br />
Before creating a category, look to see if one already exists. The best way to do this is to first add the category to your article but preview before saving. When previewing a page, scroll right to the ''very bottom of the browser window'' to see the categories. If the category appears in blue, the category already exists. If it is in red, then you will be creating a new category. Check the capitalisation of the category name. For any red categories, you should look for categories with similar names before creating a new category. One way to do this is to think of the parent category for the new category. Search for it and then look at the subcategories in the parent. You may find that a category already exists that is similar to the one you are thinking about creating.<br />
<br />
Before creating a new category, familiarise yourself with all the guidelines on this page, and related pages. Categories are deleted, merged and renamed at the PGVWiki Admin's discretion, particularly if over-categorisation occurs.<br />
<br />
Note that, although "uncreated" categories ''will'' correctly list articles that have been assigned to them, the category page itself does not exist until it is manually created. The easiest way to create the category page is to follow the red category link from your article and create a new category page with a parent category and a category description as explained in the next section.<br />
<br />
==How to create subcategories==<br />
Subcategories may be created by putting <nowiki>[[Category:</nowiki>''parent_category_name''<nowiki>]]</nowiki> onto the page that you would like to make into a subcategory. This may seem counterintuitive, because you edit the subcategory page rather than the parent category page. <br />
<br />
Let's say that you wanted to make the category called '''Roses''' into a ''subcategory'' of the category called '''Flowers'''.<br />
<br />
: Step 1 - Go to the page called <nowiki>[[Category:Roses]]</nowiki>, and click '''edit this page'''. <br />
: Step 2 - Place the text '''<nowiki>[[Category:Flowers]]</nowiki>''' within the body of the <nowiki>[[Category:Roses]]</nowiki> article, and save. <br />
: Finished! '''Roses''' is now a subcategory of '''Flowers''', and <nowiki>[[Category:Roses]]</nowiki> will be visible on <nowiki>[[Category:Flowers]]</nowiki>.<br />
<br />
==Links to categories==<br />
You can create a link to a category page without adding the page to that category by using a colon before the word Category. Example: <tt><nowiki>[[:Category:Charts]]</nowiki></tt> appears as [[:Category:Charts]].<br />
<br />
==Category sorting==<br />
===Pipe tricks and sort keys===<br />
Contrary to some expectations, text after a pipe ("<tt>|</tt>") in a category link is not used in place of the category text. Rather, this text is used as the [[w:sort key|sort key]] on the category page itself. However, again contrary to expectations, that sort text is '''not''' displayed. For example, <nowiki>[[Category:User|Nathan Watson-Haigh]]</nowiki> used in the [[User:Nathan Watson-Haigh|user page of Nathan Watson-Haigh]] will make the "User:Nathan Watson-Haigh" page list under N rather than U in the category.<br />
<br />
===Setting a default sort key===<br />
The default sort key of a page for categories can be changed using the <code><nowiki>{{DEFAULTSORT}}</nowiki></code> [[w:Magic word|magic word]]. For instance, on [[User:Nathan Watson-Haigh]], <code><nowiki>{{DEFAULTSORT:Nathan Watson-Haigh}}</nowiki></code> would cause <code><nowiki>[[Category:User]]</nowiki></code> to be equivalent to <code><nowiki>[[Category:User|Nathan Watson-Haigh]]</nowiki></code>, not <code><nowiki>[[Category:User|User:Nathan Watson-Haigh]]</nowiki></code>. This is especially useful when the article belongs in many categories. If more than one default sort key magic word is present on a page, the last occurrence is the one used. The <code><nowiki>{{DEFAULTSORT}}</nowiki></code> magic word affects all categories that the article is in, regardless of the position of the magic word relative to the category. It does not just affect subsequent categories. The default sort key can be overridden for individual categories applied to an article by manually applying a sort key.<br />
<br />
An easy way of overriding the magic word and using the current article name as the sort key is to use the <code><nowiki>{{PAGENAME}}</nowiki></code> template after the pipe, e.g. <code><nowiki>[[CATEGORY:User|{{PAGENAME}}]]</nowiki></code>. Using this template will cause the article to appear in the position appropriate to its full article name if the article is moved.<br />
<br />
[[Category:PGVWiki]]</div>Momse