Share your knowledge & experience! Help fill out the pages.
Email your content and we'll help.

New: Report on the Collision between USS FITZGERALD (DDG62) and Motor Vessel ACX CRYSTAL

Changes

Jump to: navigation, search

Help:Categories

2,613 bytes added, 16:02, 22 September 2011
Undo revision 437119 by Vukovic (talk)
{{PD Help Page}}
MediaWiki allows you to categorize pages and files by appending one or more '''{{ns:category}}''' tags to the content text. Adding these tags creates links at the bottom Categories, a software feature of the page MediaWiki, provide automatic indexes that take you to the list are useful as tables of all pages in that category, which makes it easy to browse related articlescontents.
== How to add a page to a You can categorize pages and files by adding one or more '''Category ==To add a page to a ''' {{#ifeq:Category|{{ns:category}}, simply put ||'''({{ns:category}})'''}} tags to the following in content text. These tags create links at the bottom of the page that take you are editing:to the list of all pages in that category, which makes it easy to browse related articles.
<nowiki>== Summary ==Each of the pages in the '''Category''' [[</nowiki>{{ns:category}}Help:Namespace|namespace]] represents a so-called ''NAME'category''', a grouping of related pages, and contains an index for the pages of its category. For example, this page belongs to "[[:Category:Help]]". If you open the "[[:Category:Help]]" page, you will see a link to this page there.
where ''NAME'' is When a page belongs to one or more categories, these categories appear at the name bottom of the {{ns:category}} you want to add it to. Any number of {{ns:category}} tags may be added to the page and the page will be listed in all of them. {{ns:category}} tags can be added wherever you like (or in the editing textupper-right corner, but in general, they are added at depending on the very bottom for the convenience of other editors[[Help:Preferences|skin]] being used).
Images and other uploaded files can be categorized by adding {{ns:The category}} tags to pages themselves contain 2 parts :* at their description beginning, an optional part may contain text that can be edited, like any other page. Adding {{ns:category}} tags to categories will categorize them into subcategories. It is always a good idea to organize ,* at their end, an ever present, automatically generated, alphabetical list of all categories within your wiki into a hierarchy with a single top level pages in that category, in the form of links. (In fact, in ASCII order. See [[Help:Special page]]).
== Sort key ==You can add To assign a “sort key” category to a page, simply add the {{nslink "<nowiki>[[</nowiki>Category:category}} tag that specifies where ''Category name'']]" to the page will appear within the Category's wikitext. This The usual place to add it is done by using at the following markup:bottom of the page.
To link a category page within a page as a normal wiki link (without adding the page to the category), prefix the link name with a colon. For example: <nowiki>[[</nowiki>{{ns:category}}Category:''NAME''|''SORT''Not in this category]]
For example, to add this New categories can be [[Help:Starting a new page|created]] before assigning any page to it, in the “Help” category under the section “H” you writesame way as any other regular page.
<nowiki>Individual wikis may have their own top-level categories, such as [[</nowiki>{{nswikipedia:category}}Category:HelpContents|HelpCategory:Contents]]in Wikipedia.
Note that sort keys are case sensitive, and even For a space is recognized as a sort key. The order complete list of the sections within a {{nsall categories which have at least one page, see [[Special:category}} follows the order of UnicodeCategories]].
The sort key does not affect how For a complete list of all created/edited categories, including the ones that don't have any page title is displayed in the category, only how it is ordered in see [[Special:Allpages/Category:]] (note the list. In colon at the above example, the link to this page will still read “Category:Help”end).
By default==Adding a page to a category==To add a page or uploaded file to a category, pages not in simply edit the “main” [[Help:Namespaces|namespaces]] will all have page and add the same starting letter for that [[Help:Namespaces|namespace]] following text (for example "C" in "Category" [[Help:Namespaces|namespace]]). This makes sorting rather ineffective and inconvenient. One basic trick to avoid this where '''''Name''''' is the name of the category you want to use a special tag as a sort key as following:add it to).
<nowiki>[[</nowiki>{{ns:category}}:Help|<nowiki>{{PAGENAME}}</nowiki>'''''Name''''']]
== How to create a category ==A Any number of {{ns:category can }} tags may be created just as other wiki pages (See [[Help:Starting a new added to the page]])and the page will be listed in all of them. Just remember to add <code>{{ns:category}}:</code> before tags are usually added at the name very bottom of the categorypage for the convenience of other editors.
In fact===Sort key===By default, the list of pages in a category exists even if the category page is not createdsorted under the first letter of its full name ''including the namespace''. Also, but such categories are isolated MediaWiki groups accented characters separately from other categories and will serve little to sort out the their unaccented version, so pages and files starting by À, Á, Ä, will be listed under separate headings, instead of your wikiunder heading A.
Renaming (moving) a category is not possible like other wiki pages. If it is necessaryA ''sort key'' specifies under which letter heading, you have to create a new category and change the tag where in each member of the category. This loses list, the page historywill appear. You can add a sort key by placing it inside the tag after a pipe character. For example, which is undesirable in wikis where category pages contain significant amounts of textthe tag below will add the page under heading "S".
To save extra work, you may want to search well within your wiki before attempting to create a new category. The list of all categories can be found in “ <nowiki>[[</nowiki>{{lcfirstns:{{int:specialpagescategory}}}}” in the “{{lcfirst:{{int:toolbox}}}}” box of the [[Help:Navigation#Sidebar'''''Name'''''|sidebar'''''Sort''''']].
== Linking to categories ==To create a link to Sort keys are case-sensitive, and spaces and other characters are also valid. The order of the sections within a category, use a leading colon as follows the Unicode sort order. The sort key does not change the page title displayed inthe category.
<nowiki>[[</nowiki>:{{ns:==Creating a category}}:NAME]]page==Categories exist even if their page has not been created, but these categories are isolated from others and serve little purpose for organization or navigation.
For example, to link to “{{nsA category is created by creating a page in the '''''Category:''''' namespace. A category}}page can be created the same way as other wiki pages (see [[Help:HelpStarting a new page]]); just add ", write <code><nowiki>[[</nowikI>:{{ns:category}}:Help]]</code>, which will result in [[:{{ns:category}}:Help]]. Without the leading colon, it would add " before the page into the categorytitle.
If you want to display alternate text for the linkTo avoid extra work, add that after try searching within your wiki before creating a pipe as with other internal links (See new category. The list of all categories can be found in "{{int:specialpages}}" in the "{{lcfirst:{{int:toolbox}}}}" box of the [[Help:LinksNavigation#Sidebar|sidebar]]):.
<nowiki>[[</nowiki>:Unlike other wiki pages, it is not possible to rename (move) a category. It is necessary to create a new category and change the {{ns:category}}:NAME|TEXT]]tag on every page. The new category will not have the older category's page history, which is undesirable if there are many revisions.
==Managing the category hierarchy== Categories may belong to other categories in a hierarchy. Since category pages are much like any other page, a {{ns:category}} tag may be added to the bottom of a category page.  It is a good idea to organize all categories into a hierarchy with a single top level category. The category structure can take the form of a tree with separate branches, but more often will have a graph structure. Generally, there should be a contiguous chain of parent-child links between each category and the top level category.  ==Hidden categories==The categories that a page is in are normally listed at the bottom of the page. A category can be hidden from this list by adding the [[Help:RedirectMagic words|Redirectsmagic word]] "<code><nowiki>__HIDDENCAT__</nowiki></code>" to the category page. Hidden categories are not hidden from category pages ({{bugzilla|15550}}). Users can choose to see hidden categories in a separate "{{int:hidden-categories}}" list, by checking "{{int:tog-showhiddencats}}" in the "{{int:prefs-rendering}}" section of [[Special:Preferences]]. Hidden categories are automatically added to [[:Category:{{mediawiki:hidden-category also need -category}}]]. This category is specified in the system message [[MediaWiki:Hidden-category-category]]. ==Linking to a category==To create a link to a category, use a leading colon before the category name (without this colon, the current page would be added to prevent the redirect category): :<code><nowiki>[[</nowiki>:{{ns:category}}:Help]]</code> &rarr; '''[[:{{ns:category}}:Help]]'''  To change the link text, write the text inside the link tag after a pipe: :<code><nowiki>[[</nowiki>:{{ns:category}}:Help|Help category]]</code> &rarr; '''[[:{{ns:category}}:Help|Help category]]''' [[Help:Redirects|Redirect pages from being included in ]] that redirect to categories must also use the colon, otherwise they will be added to the categoryinstead of redirecting==Redirecting a category==Like normal wiki pages, category pages can be redirected to other normal or category pages. ==See also==* [[:Category:Category extensions]]
{{Languages}}
[[Category:Help|Categories]]
[[Category:Category]]
Anonymous user

Navigation menu