Bharatpedia:Subpage: Difference between revisions
(trim) |
No edit summary |
||
Line 1: | Line 1: | ||
Except in the main [[Wikipedia:Namespace|namespace]] ([[Wikipedia:Main namespace|article namespace]]), '''subpages''' are pages separated with a "/" (a [[slash (punctuation)|slash]]) from their 'parent' page. | Except in the main [[Wikipedia:Namespace|namespace]] ([[Wikipedia:Main namespace|article namespace]]), '''subpages''' are pages separated with a "/" (a [[slash (punctuation)|slash]]) from their 'parent' page. | ||
Line 9: | Line 8: | ||
* Or navigate to {{space}} <kbd>Special:PrefixIndex/''[[wp:pgn|fullpagename]]''/</kbd> {{space}} by way of the search box. For example, {{space}} <kbd>[[Special:PrefixIndex/wp: manual of style/]]</kbd> {{space}} or {{space}} <kbd>[[Special:PrefixIndex/wp: Manual of Style/]]</kbd>. | * Or navigate to {{space}} <kbd>Special:PrefixIndex/''[[wp:pgn|fullpagename]]''/</kbd> {{space}} by way of the search box. For example, {{space}} <kbd>[[Special:PrefixIndex/wp: manual of style/]]</kbd> {{space}} or {{space}} <kbd>[[Special:PrefixIndex/wp: Manual of Style/]]</kbd>. | ||
* Or visit the Special:PrefixIndex page, and run the report from there. One way to get there is through [[Special:SpecialPages]] in Tools (in the sidebar). | * Or visit the Special:PrefixIndex page, and run the report from there. One way to get there is through [[Special:SpecialPages]] in Tools (in the sidebar). | ||
* Or to save a click you can add a {{code|Subpages}} link to your version of Tools. | * Or to save a click you can add a {{code|Subpages}} link to your version of Tools. | ||
The "'''Search'''" report from [[Special:Search]] similarly uses a ''[[H:S#Parameters|prefix]]'' search parameter to show subpages. | The "'''Search'''" report from [[Special:Search]] similarly uses a ''[[H:S#Parameters|prefix]]'' search parameter to show subpages. |
Revision as of 19:55, 20 April 2021
Except in the main namespace (article namespace), subpages are pages separated with a "/" (a slash) from their 'parent' page.
Making a new [[link]] that begins with a / (slash) is the common way to start a subpage. The page to which this link points is considered "subordinate" to its host page, and is titled and linked as [[Parentpage/Subpage]]. It is possible to create a subpage of a subpage (or a sub-subpage). At the top of each subpage or sub-subpage, you can find a backlink (a.k.a. breadcrumb) to the higher levels of the page.
Finding subpages
The "All pages with prefix" report from Special:PrefixIndex shows subpages.
- Select "Page information" from Tools (in the sidebar). Then select the link about "subpages".
- Or navigate to Special:PrefixIndex/fullpagename/ by way of the search box. For example, Special:PrefixIndex/wp: manual of style/ or Special:PrefixIndex/wp: Manual of Style/.
- Or visit the Special:PrefixIndex page, and run the report from there. One way to get there is through Special:SpecialPages in Tools (in the sidebar).
- Or to save a click you can add a
Subpages
link to your version of Tools.
The "Search" report from Special:Search similarly uses a prefix search parameter to show subpages. For example: prefix:wp: manual of style.
Comparing the two:
- Both reports can run with any number of initial characters as the "prefix" of the pagename, so excluding the final slash / character only adds the one pagename.
- Only the "All pages with prefix" report shows subpages that are redirects. (The prefix search parameter does not find redirects.)
- Only the "Search" report is not case sensitive. (Prefix is not case sensitive, PrefixIndex is.)
- Both reports accept namespace aliases in the fullpagename.
- From a content point of view, rather than from a page name point of view, both reports require separate runs for each redirect.
To keep an active display of subpages, see {{list subpages}}. To keep a link to an "All pages..." report, use {{subpages}} or [[Special:PrefixIndex]]. To keep a link to a "Search" report, use a {{search link}}.
Outside of a single page name, there is no direct method for finding subpages. Standard subpagenames are searchable using the intitle parameter.
There are a few categories that track some types of subpages.
Slashes in article titles
Some topics have a slash in the name, and should be named accordingly—e.g. OS/2 or Providence/Stoughton Line. Care should be taken with the corresponding talk pages, though, as subpages are enabled in talk space—for example, Talk:OS/2 is treated by the software as a subpage of Talk:OS.