How To Make Categories: Difference between revisions

From Drunkapedia
Jump to: navigation, search
(New page: To create categories it takes only a few simple lines of code, but in the end it adds a good amount of usability and organization to any wiki. Categories help greatly to keep the wiki org...)
 
No edit summary
Line 8: Line 8:


----
----
<code>Category:QuestItem
<nowiki>[[Category:QuestItem]]</nowiki>
 
You would of course enclose this statement in [[ ]] tags, but doing so in this example would not show up properly</code>
----
----



Revision as of 07:49, 29 October 2007

To create categories it takes only a few simple lines of code, but in the end it adds a good amount of usability and organization to any wiki.

Categories help greatly to keep the wiki organized as well as providing pre-generated indexes for the various pages in a category, this basically makes a "master page" of all the items in that category sorted by name, which is great for a quick search through all related items in a wiki.

For example, let's say we are adding some pages for various items from a quest, by simply adding the QuestItem category to the bottom of the page, we are adding the item to the QuestItem index generated by the wiki, which makes it incredibly easy for a user to search for all QuestItems at once to locate another related item instead of searching for it directly.

To accomplish the example in this case we need only add the following code to the bottom of the previously mentioned quest item page:


[[Category:QuestItem]]


Using the example above you should be able to categorize your entries into the wiki (within reason) where the items can be grouped. Good examples of items that should be categorized when entered into the wiki would be weapons, npcs, magical items, wands, orbs, maces.

Basically any item that will likely belong to a group of items that will have multiple entries in the wiki, if you're adding something that likely has a lot of related or similar items you should consider if creating a category for it would be helpful / necessary. Don't be afraid to try out categories, if something becomes redundant or unnecessary it is much easier to clean up useless categories then to sort through tons of related entries and categorize them after the fact.