Help:Adding an article to a category: Difference between revisions
Jump to navigation
Jump to search
new article, first section of instructions |
|||
| Line 10: | Line 10: | ||
#At the end of your article, add the following: | #At the end of your article, add the following: | ||
#: <code><nowiki>[[Category:Your chosen category]]</nowiki></code> | #: <code><nowiki>[[Category:Your chosen category]]</nowiki></code> | ||
#: ''Note: Articles can be in as many categories as needed. For example:'' | #: ''Note: Articles (and categories) can be in as many categories as needed. For example:'' | ||
#: <code><nowiki>[[Category:Your chosen category]][[Category:Another category]]</nowiki></code> | #: <code><nowiki>[[Category:Your chosen category]][[Category:Another category]]</nowiki></code> | ||
# Save your article. | # Save your article. | ||
# If you chose a nonexistent category, tie the category into the hierarchy as described in the next section. | # If you chose a nonexistent category, the category link at the bottom of the article shows up in red, and then you must tie the category into the hierarchy as described in the next section. | ||
==Adding a new category to the category tree== | |||
To add a new category: | |||
# Check existing categories to find an appropriate parent category (as described above). | |||
# Click the link of a nonexistent category (as described above). | |||
#:This displays the '''Editing Category:''your category name''''' page. | |||
# Type a brief description of what kinds of articles will be in this category; for example: | |||
#:<code>This is a collection of articles about conformance testing.</code> | |||
# Add this template reference: | |||
#:<code><nowiki>{{addtocategory}}</nowiki></code> | |||
#:''(This displays instructions on how to add more articles to this category.)'' | |||
#Add this category to one or more categories in the same way as described in the "Adding an article to a category" instructions. | |||
[[Category:Help|Categories]] | [[Category:Help|Categories]] | ||
[[Category:foo]] | |||
Revision as of 23:41, 27 April 2007
All articles should belong to at least one category.
Adding an article to a category
To add an article to a category:
- Review existing categories to find whether there's an appropriate category already defined. You can either:
- Browse by category through categories arranged in a hierarchy.
- Look through the alphabetical list of all categories.
- If there isn't one, decide on an appropriate category name based on what already exists.
- At the end of your article, add the following:
[[Category:Your chosen category]]- Note: Articles (and categories) can be in as many categories as needed. For example:
[[Category:Your chosen category]][[Category:Another category]]
- Save your article.
- If you chose a nonexistent category, the category link at the bottom of the article shows up in red, and then you must tie the category into the hierarchy as described in the next section.
Adding a new category to the category tree
To add a new category:
- Check existing categories to find an appropriate parent category (as described above).
- Click the link of a nonexistent category (as described above).
- This displays the Editing Category:your category name page.
- Type a brief description of what kinds of articles will be in this category; for example:
This is a collection of articles about conformance testing.
- Add this template reference:
{{addtocategory}}- (This displays instructions on how to add more articles to this category.)
- Add this category to one or more categories in the same way as described in the "Adding an article to a category" instructions.