|
????????:
???????????????????? ?????????????????????????????????????????????????????
CC0
?????
?????????????????????????????
?????????????????????
|
|
???????? ???????????????????????????????????????????? ?????????????????????????????????????????????????????????????
??????????????????????????????????????????????????????????????????
????????
???????????????????? ??????????????????????????????????????????????????? ????????????????????????????????????????????????? ?????????????????????????????????????????????
????
?????????????
???????
???????? ????????????????????????????????
????????
??????????????????????????????????????? ????????????????????????????? ? ???????????? ??????????? "
????????:?????????
" ?????????????????????? ???????????????????????????????
??????????????????????????????????? ??????????????????????????????????????? (?????????????? ???????????
????
??????????)
?????????????????????????????????? 2 ????:
- ??????????????????????? ?????????????????????????????????????????????????????????? ???????????????????? ?
- ?????????????????? ???????????? ??????????????????? ??????????????????????????????????????????????????????????????????? ?????????? ???????????????????????????????
??????????????????????????? ?????????????????? "[[????????:
????????????
]]" ???????????????????????????? ???????????????????????????????????????
?????????????????????????????????????????????????? (????????????????????????????????) ???????????????????????????????????????? ????????????: [[:????????:???????????????????????]]
??????????????????
?????
???????????????????????? ? ????????? ???????????????????????????? ?
???????????????????????????????????????? ????
????????:????????
????????????
???????????????????????????????????????????????????????????? ????????
?????????:????????
?????????????????????????????????/???????????????????? ???????????????????????? ? ????????
Special:Allpages/Category:
(????????????????????????????????????)
?????????????????????????
??????????????????????????????????????????????? ???????????????????????????????????????? (???
????
???????????????????????????????????????????)
[[Category:
????
]]
????????? ? ??????? Category ?????????????????????????????????????????? ???? Category ????????
?????????????
?????????????????????? ????????????????????????????????????????????????????????????????? ?
?????????????? ????????????????????????: ?????????????????????????????????????????????????
????????
$wgUseCategoryBrowser
?????????? ?????????????????????????????????????????????? ??????
???????????????????????????
????????????????????? ????????????????
(????????????????????? 1.18.2) ??????????????????????????????????????????????????? ???????????????????????????????????? ????????????????????????????????????????????????????????????????????????
????????????????????????? ??????????????????????????????????????????????????????????????????
???
??????????????????????????????????????????????????
???????????? ???????? ????????? ??????????????????????? ???? ??? ?????
?????????????????????????????? ???????????? ???????????????????????????????????????????
Anne
Anne
Mary -> Maryanne
"?????" ????????????? ?????????????????????????
Anne
Anne -> Maryanne
Mary -> Maryanne
???????????????? ????????????????????
phab:T35614
???????????????
?????????????? ??????????????????????????????????????????????????????????????? ?
?????????????????
????????? ????????????????????????????????????????????????????????????????????????????? ?????????????????????????????????????? A, A, A ???????????????????????????????????? ???????????????????????????????? A
(?????????????????????????? ?????????????????????????????????????????????
$wgCategoryCollation
)
A
sort key
specifies under which letter heading, and where in the category list, the page will appear. You can add a sort key by placing it inside the tag after a pipe character. For example, the tag below will add the page under heading "S".
[[Category:
????
|
??????????
]]
Whether or not sort keys are case-sensitive
depends on your configuration settings
.
The order of the sections within a category follows the Unicode sort order. The sort key does not change the page title displayed in the category.
Spaces and other characters are perfectly valid.
See
Help:Sorting
for further information on category sorting.
????????????????????
Categories exist even if their page has not been created, but these categories are isolated from others and serve little purpose for organisation or navigation.
A 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
???????:????????????????
); just add "
Category:
" before the page title.
To avoid extra work, try searching within your wiki before creating a new category. The list of all categories can be found in "?????????" in the "??????????" box of the
sidebar
.
Managing the category hierarchy
Categories may belong to other categories in a hierarchy. Since category pages are much like any other page, a Category tag may be added to the bottom of a category page.
It is a good idea to organise 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.
Category tree
Since MediaWiki?1.31,
CategoryTree
extension is packaged by default, allowing
Special:CategoryTree
and
?<
categorytree
>
to provide a tree-like structure display for the categories.
The categories that a page is in are normally listed at the bottom of the page. In MediaWiki 1.13+, a category can be hidden from this list by adding the
magic word
"
__HIDDENCAT__
" to the category page.
Users can choose to see hidden categories in a separate "???????????????????" list, by checking "????????????????" in the "?????????" section of
Special:Preferences
.
Hidden categories are automatically added to
Category:Hidden categories
.
This category is specified in the system message
MediaWiki:Hidden-category-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 the category):
[[:Category:Help]]
→
Category:Help
To change the link text, write the text inside the link tag after a pipe:
[[:Category:Help|
Help category
]]
→
Help category
Redirect pages
that redirect to categories must also use the colon, otherwise they will be added to the category instead of redirecting.
Categories and templates (transcluded pages)
If you add
[[Category:Cats]]
inside a template (a transcluded page),
both
the template and pages which transclude this template will be categorised as Cats.
- If you want only the template to be categorised, you should ensure to write category marker inside
<noinclude>
tags.
- If you want only the pages which uses the template to be categorised, but not the template itself, you should ensure to write category marker inside
<includeonly>
tags.
Due to caching issues, editing categories applied through templates may take a while to be visible everywhere.
You can perform a
null edit
on a page to update immediately its categories.
Like normal wiki pages, category pages can be redirected to other normal or category pages.
However
, this is not recommended, as pages categorised in redirected categories do
not
get categorised in the target category (
phab:T5311
). Some Wikimedia sites use a "category redirect" template to mark redirected categories, allowing manual or automated cleanup of pages categorised there.
Certain syntax issues, such as a broken image link, or too many expensive parser functions, can cause a page to be added to a tracking category.
See
Help:Tracking categories
for details.
If you move a category, since
redirect will not work for categorising
, all category tags will be wrong, so you have to fix them.
???????