Categories: Difference between revisions

From UNB Archives and Special Collections
Jump to navigation Jump to search
No edit summary
No edit summary
Line 27: Line 27:


<br/>Similar to creating a [[Archives Manual#Linking within the wiki|link]], the title of the Category must be enclosed in double square brackets at the bottom of the entry. To establish a Sortkey (as described in the RichTextEditor section above), use a [[Mark-up Language|pipe]] ( | ) to separate the title of the applied Category from the '''modified title''' (the title by which the page will be sorted by on the Category page) of the entry:
<br/>Similar to creating a [[Archives Manual#Linking within the wiki|link]], the title of the Category must be enclosed in double square brackets at the bottom of the entry. To establish a Sortkey (as described in the RichTextEditor section above), use a [[Mark-up Language|pipe]] ( | ) to separate the title of the applied Category from the '''modified title''' (the title by which the page will be sorted by on the Category page) of the entry:
<br/><center>'''Example:''' adding ''The Great Gatsby'' to the Example category (sort by ''Great'' instead of ''The'')<br/><nowiki>[[Category:Example|Great Gatsby]]</nowiki> [[File:CategoryTag.png|center]]<br/></center><div style="border:2px solid black; background-color:white"><br/><center>If the category exists and has been entered correctly it will appear as a blue hyperlink (<span style="color:#0000CD;"><u>Buildings</u></span>); if it does not yet exist, the hyperlink will be red (<span style="color:#FF0000;"><u>Example</u></span>). If the link is red, the administrator can quickly create a new category with this title by clicking that red link.<br/></center><br/></div><br/>
<br/><center>'''Example:''' adding ''The Great Gatsby'' to the Example category (sort by ''Great'' instead of ''The'')<br/><nowiki>[[Category:Example|Great Gatsby]]</nowiki> [[File:CategoryTag.png|center]]<br/></center><div style="border:2px solid black; background-color:white"><br/><center>If the category exists and has been entered correctly it will appear as a blue hyperlink (<span style="color:#0000CD;"><u>Buildings</u></span>); if it does not yet exist, the hyperlink will be red (<span style="color:#FF0000;"><u>Example</u></span>). If the link is red, the administrator can quickly create a new category with this title by clicking that red link.<br/></center><br/></div>
*'''Remember: All titles in MediaWiki are case-sensitive. Always check the title of the source page if a link does not function.'''
*'''Remember: All titles in MediaWiki are case-sensitive. Always check the title of the source page if a link does not function.'''
*When creating the category page, spaces '''must''' be replaced by underscores ( _ ) - otherwise your web browser will (likely) treat your effort like a Google search. However, when assigning category tags, spacing can be used. MediaWiki will automatically replace the spacing with underscores (this can be observed by looking at the WikiTextEditor coding after saving a category tag with spacing).
*When creating the category page, spaces '''must''' be replaced by underscores ( _ ) - otherwise your web browser will (likely) treat your effort like a Google search. However, when assigning category tags, spacing can be used. MediaWiki will automatically replace the spacing with underscores (this can be observed by looking at the WikiTextEditor coding after saving a category tag with spacing).
Line 35: Line 35:
= Creating Subcategories =
= Creating Subcategories =


Subcategories can be created to help a broader themed category. These relationships can grow infinitely in either direction. Any category can belong to several broader categories, depending on the desired organizational structure.<br/>To create a subcategory, simple attach the category tag of the broader category to the subcategory.
Subcategories can be created to help a broader themed category. These relationships can grow infinitely in either direction. Any category can belong to several broader categories, depending on the desired organizational structure.
<br/>To create a subcategory, simple attach the category tag of the broader category to the subcategory.
<center>'''Example:''' ''Fredericton'' and ''Saint John'' are desired subcategories of the '''Buildings''' category. To establish this, attach the '''Buildings''' category tag to the category page of the desired subcategories.</center><br/><div style="border:2px solid black; background-color:white"><center><br/>'''Note:''' Creators of category pages '''should avoid''' using special characters (&, #, @, $,&nbsp;%, *, etc...) in '''category titles''' because they may not function effectively.</center><br/></div>
<center>'''Example:''' ''Fredericton'' and ''Saint John'' are desired subcategories of the '''Buildings''' category. To establish this, attach the '''Buildings''' category tag to the category page of the desired subcategories.</center><br/><div style="border:2px solid black; background-color:white"><center><br/>'''Note:''' Creators of category pages '''should avoid''' using special characters (&, #, @, $,&nbsp;%, *, etc...) in '''category titles''' because they may not function effectively.</center><br/></div>

Revision as of 10:35, 2 July 2014

Categories are used to organize related entries dispersed throughout the wiki. Categories can be further divided into subcategories, which will provide for the gradual development of a hierarchical organization of pages within the wiki. This organization will facilitate future readers' browsing of the wiki.

Creating a New Category

Creating a new category is similar to creating a new entry - at the end of the wiki's URL, insert Category:Category_Title (using _ instead of spacing). If the category already exists, the administrator will be brought to a category page that lists all of the entries already tagged with that category tag; if the category does not exist, the administrator will notice the option to Create the new category page.


Example: http://unbhistory.lib.unb.ca/index.php/Category:Example


NewCategory.png

Using Category Tags

Once a category page has been created, entries can be added to that category by applying category tags. Category tags appear at the bottom of an entry and any number of category tags can be assigned to a given entry.

RichTextEditor


Select the Category icon on the toolbar:

CategorySymbol.png
  • Enter the title of the category into the first field.
  • The second field—Sortkey within category—allows for the reorganization of entries within the category page. If several entries assigned to a category begin with the same word, such as The, the administrator should sort by the second word of the entry's title by placing this modified title into this field. This refers to the title of the entry being placed within a category, not the category itself.

WikiTextEditor


Similar to creating a link, the title of the Category must be enclosed in double square brackets at the bottom of the entry. To establish a Sortkey (as described in the RichTextEditor section above), use a pipe ( | ) to separate the title of the applied Category from the modified title (the title by which the page will be sorted by on the Category page) of the entry:


Example: adding The Great Gatsby to the Example category (sort by Great instead of The)
[[Category:Example|Great Gatsby]]
CategoryTag.png


If the category exists and has been entered correctly it will appear as a blue hyperlink (Buildings); if it does not yet exist, the hyperlink will be red (Example). If the link is red, the administrator can quickly create a new category with this title by clicking that red link.

  • Remember: All titles in MediaWiki are case-sensitive. Always check the title of the source page if a link does not function.
  • When creating the category page, spaces must be replaced by underscores ( _ ) - otherwise your web browser will (likely) treat your effort like a Google search. However, when assigning category tags, spacing can be used. MediaWiki will automatically replace the spacing with underscores (this can be observed by looking at the WikiTextEditor coding after saving a category tag with spacing).

Creating Subcategories

Subcategories can be created to help a broader themed category. These relationships can grow infinitely in either direction. Any category can belong to several broader categories, depending on the desired organizational structure.
To create a subcategory, simple attach the category tag of the broader category to the subcategory.

Example: Fredericton and Saint John are desired subcategories of the Buildings category. To establish this, attach the Buildings category tag to the category page of the desired subcategories.



Note: Creators of category pages should avoid using special characters (&, #, @, $, %, *, etc...) in category titles because they may not function effectively.