https://team1640.com/wiki/index.php?title=Help:Categories&feed=atom&action=historyHelp:Categories - Revision history2024-03-28T23:45:53ZRevision history for this page on the wikiMediaWiki 1.27.1https://team1640.com/wiki/index.php?title=Help:Categories&diff=108&oldid=prevRoboadmin: 1 revision2009-05-21T01:57:11Z<p>1 revision</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr style='vertical-align: top;' lang='en'>
<td colspan='1' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black; text-align: center;">Revision as of 01:57, 21 May 2009</td>
</tr><tr><td colspan='2' style='text-align: center;' lang='en'><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Roboadminhttps://team1640.com/wiki/index.php?title=Help:Categories&diff=107&oldid=prev87.72.215.200: Typo2009-05-13T10:55:48Z<p>Typo</p>
<p><b>New page</b></p><div>{{PD Help Page}}<br />
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 of the page that take you to the list of all pages in that category, which makes it easy to browse related articles.<br />
<br />
== How to add a page to a Category ==<br />
To add a page to a {{ns:category}}, simply put the following in the page you are editing:<br />
<br />
<nowiki>[[</nowiki>{{ns:category}}:''NAME'']]<br />
<br />
where ''NAME'' is the name 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 in the editing text, but in general, they are added at the very bottom for the convenience of other editors.<br />
<br />
Images and other uploaded files can be categorized by adding {{ns:category}} tags to their description page. Adding {{ns:category}} tags to categories will categorize them into subcategories. It is always a good idea to organize all categories within your wiki into a hierarchy with a single top level category.<br />
<br />
=== Sort key ===<br />
You can add a “sort key” to the {{ns:category}} tag that specifies where the page will appear within the Category. This is done by using the following markup:<br />
<br />
<nowiki>[[</nowiki>{{ns:category}}:''NAME''|''SORT'']]<br />
<br />
For example, to add this page to the “Help” category under the section “H” you write<br />
<br />
<nowiki>[[</nowiki>{{ns:category}}:Help|Help]]<br />
<br />
Note that sort keys are case sensitive, and even a space is recognized as a sort key. The order of the sections within a {{ns:category}} follows the order of Unicode.<br />
<br />
The sort key does not affect how the page title is displayed in the category, only how it is ordered in the list. In the above example, the link to this page will still read “Category:Help”.<br />
<br />
By default, pages not in the “main” [[Help:Namespaces|namespaces]] will all have the same starting letter for that [[Help:Namespaces|namespace]] (for example "C" in "Category" [[Help:Namespaces|namespace]]). This makes sorting rather ineffective and inconvenient. One basic trick to avoid this is to use a special tag as a sort key as following:<br />
<br />
<nowiki>[[</nowiki>{{ns:category}}:Help|<nowiki>{{PAGENAME}}</nowiki>]]<br />
<br />
== How to create a category ==<br />
A category can be created just as other wiki pages (See [[Help:Starting a new page]]). Just remember to add <code>{{ns:category}}:</code> before the name of the category.<br />
<br />
In fact, the list of pages in a category exists even if the category page is not created, but such categories are isolated from other categories and will serve little to sort out the pages and files of your wiki.<br />
<br />
Renaming (moving) a category is not possible like other wiki pages. If it is necessary, you have to create a new category and change the tag in each member of the category. This loses the page history, which is undesirable in wikis where category pages contain significant amounts of text.<br />
<br />
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 “{{lcfirst:{{int:specialpages}}}}” in the “{{lcfirst:{{int:toolbox}}}}” box of the [[Help:Navigation#Sidebar|sidebar]].<br />
<br />
== Linking to categories ==<br />
To create a link to a category, use a leading colon as in<br />
<br />
<nowiki>[[</nowiki>:{{ns:category}}:NAME]]<br />
<br />
For example, to link to “{{ns:category}}:Help", write <code><nowiki>[[</nowikI>:{{ns:category}}:Help]]</code>, which will result in [[:{{ns:category}}:Help]]. Without the leading colon, it would add the page into the category.<br />
<br />
If you want to display alternate text for the link, add that after a pipe as with other internal links (See [[Help:Links]]):<br />
<br />
<nowiki>[[</nowiki>:{{ns:category}}:NAME|TEXT]]<br />
<br />
[[Help:Redirect|Redirects]] to a category also need a leading colon to prevent the redirect pages from being included in the category.<br />
<br />
{{Languages}}<br />
[[Category:Help|Categories]]</div>87.72.215.200