Assigning your Page to a Category: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
Tels (talk | contribs)
re-org and mention templates
Datiswous (talk | contribs)
m link fix
 
(One intermediate revision by one other user 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 ==
== 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 14: Line 45:


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]].
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]].
== Using templates ==
Especially for tutorial pages, several templates exist that make categorizing a page even easier.
Just include the template at the bottom of each page:
<nowiki>
{{tutorial-wiki}}
</nowiki>
Please see [[List of tutorial templates]] for what templates exist. If one is missing, please add
it by copying one of the existing tutorials and modify it, then use it accordingly.


== See also ==
== See also ==
* [[Special:Categories|DarkWiki Categories]]
* The list of existing [[Special:Categories|DarkWiki categories]]


{{tutorial-wiki|sort=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