Assigning your Page to a Category: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
No edit summary
 
m (link fix)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
There are two ways to put an article (or even a category itself) into another category:
# by using templates (this should be prefered)
# by manually adding category tags
== Using Templates ==
Especially for '''tutorial''' and '''editing''' pages, several templates exist that make categorizing a page
even easier. Just include the one (or more than one) of the following templates at the bottom of each page:
<nowiki>
{{tutorial-ai}}
{{tutorial-scripting}}
{{tutorial-sound}}
{{tutorial-models}}
{{tutorial-textures}}
{{tutorial-water}}    etc.</nowiki>
For wiki pages use this template:
<nowiki>
{{tutorial-wiki}} </nowiki>
Note: if the article name does not start with the main topic, you must '''use the sort parameter''' to adjust the sorting order. For instance, an article about creating headlines that is named "Creating a headline" would by default be sorted under "C", but it should be actually under "H". So include the template like this:
<nowiki>{{tutorial-wiki|sort=Headline}}</nowiki>
These templates make sure that the article is put into all the relevant categories, please review the [[Categorizing guideline]] article for the reasoning behind the current categorization scheme.
Please see the [[:Category:Templates|list of templates]] and the [[:Category:Tutorial_Templates|list of tutorial templates]] for what templates are available.
== Manual Categorizing ==
This is easy, just add this to the bottom of your article:
This is easy, just add this to the bottom of your article:


Line 5: Line 37:
Where ''SomeCategory'' should be replaced by the name of the chosen category.  
Where ''SomeCategory'' should be replaced by the name of the chosen category.  


Please not that an article can belong to mutiple categories, this is not a problem.
Please note that an article can belong to mutiple categories, this is not a problem, just list all of them:


After adding your page to any category, it will be automatically listed on the overview page of this category. Category overview pages can be recognized by the prefix '''Category:''' in front of the name, like [[Category:Editing]].
<nowiki>
[[Category:SomeCategory]]
[[Category:SomeOtherCategory]]
</nowiki>
 
After adding your page to any category, it will be automatically listed on the overview page of this category. Category overview pages can be linked to by the prefix '''Category:''' in front of the name, like this [[:Category:Editing]].


== See also ==
== See also ==
* [[Special:Categories|DarkWiki Categories]]
* The list of existing [[Special:Categories|DarkWiki categories]]
 
{{tutorial-wiki|sort=Categories}}

Latest revision as of 12:33, 7 November 2022

There are two ways to put an article (or even a category itself) into another category:

  1. by using templates (this should be prefered)
  2. by manually adding category tags

Using Templates

Especially for tutorial and editing pages, several templates exist that make categorizing a page even easier. Just include the one (or more than one) of the following templates at the bottom of each page:

 {{tutorial-ai}}
 {{tutorial-scripting}}
 {{tutorial-sound}}
 {{tutorial-models}}
 {{tutorial-textures}}
 {{tutorial-water}}     etc.

For wiki pages use this template:

 {{tutorial-wiki}} 

Note: if the article name does not start with the main topic, you must use the sort parameter to adjust the sorting order. For instance, an article about creating headlines that is named "Creating a headline" would by default be sorted under "C", but it should be actually under "H". So include the template like this:

{{tutorial-wiki|sort=Headline}}

These templates make sure that the article is put into all the relevant categories, please review the Categorizing guideline article for the reasoning behind the current categorization scheme.

Please see the list of templates and the list of tutorial templates for what templates are available.

Manual Categorizing

This is easy, just add this to the bottom of your article:

[[Category:SomeCategory]]

Where SomeCategory should be replaced by the name of the chosen category.

Please note that an article can belong to mutiple categories, this is not a problem, just list all of them:

 [[Category:SomeCategory]]
 [[Category:SomeOtherCategory]]
 

After adding your page to any category, it will be automatically listed on the overview page of this category. Category overview pages can be linked to by the prefix Category: in front of the name, like this Category:Editing.

See also