2/27/2023 0 Comments Mediawiki subcategoriesIndividual wikis may have their own top-level categories, such as wikipedia:Category:Contents in Wikipedia.Ī page in any namespace can be put in a category by adding a category tag to the page (by convention, at the very end of the page), e.g.: For example: ]įor a complete list of categories, see Special:Categories. In order to reference a category within a page as a normal wiki link (without adding the page to the category) prefix the link name with a colon. You can assign a category to a page simply by adding "]" to the page's wikitext source. For a list of categories in the first sense, see Special:Categories. For a list of categories in this sense, see Special:Allpages/Category: (note the colon at the end). New categories can be created in the last sense, and edited, in the same way as any other regular page. "Existence" of a category has two independent aspects: the category can obtain one or more pages and/or the category page can exist as an editable page. The page of the category contains text that can be edited, like any other page, but when displaying the page, the last part of what is displayed is an automatically generated, alphabetical list of all pages in that category, in the form of links (in fact they are dispalyed in ASCII order). When a page belongs to one or more categories, this information appears at the bottom of the page (or in the upper-right corner, depending on the skin being used). For example, this page belongs to " Category:Wiki Help". 13.1 Category intersection, union, etc.Įach of the pages in the Category namespace represents a so-called category, a kind of grouping of related pages.11.1 Detection of additions to a category.11 Applying "Related Changes" to a category.6.3 Excluding templates and selected pages from categories.6 Using templates to populate categories.5.2 Grouping of pages by using sort keys.Setįurther arguments to pass to httr's GET().īecause of the way MediaWiki stores this data, both "the category you asked for doesn't exist"Īnd "the category you asked for exists, but has no members" return in the same way.Ĭategories_in_page for finding categories that a specified page is a member of. The maximum number of members to retrieve for each category. Whether to do some basic sanitising of the resulting data structure. Options are any permutation of "page" (pages), "subcat" (subcategories) and "file" (files). The type of member you're interested in returning "timestamp" (when the member was added to the category) (whether the member is a page, a subcategory or a file) and "sortkeyprefix" (the human-readable sort key), "type" (the hexadecimal key used to sort that member within the category), "id" (the unique numeric identifier of the member), "sortkey" Options are "title" (the name of the member, including namespace), The properties you want to gather for each member of the category. ![]() The names of the categories you want to gather information for. You can also provide a domain ("") to the URL constructor, allowingįor the querying of non-Wikimedia MediaWiki instances. Should be provided in conjunction with language.Īs an alternative to a language and project combination, The project you wish to query ("wikiquote"), if appropriate. The language code of the project you wish to query, Pages_in_category ( language = NULL, project = NULL, domain = NULL, categories, properties = c ( "title", "ids", "sortkey", "sortkeyprefix", "type", "timestamp" ), type = c ( "page", "subcat", "file" ), clean_response = FALSE, limit = 50.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |