Jump to content

Wikipedia:Subpages: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Use less regional wording
Undid revision 1234622507 by Ferdinand Icatlo (talk)
(31 intermediate revisions by 21 users not shown)
Line 2: Line 2:
{{Pp-move-indef}}
{{Pp-move-indef}}
{{redirect|WP:SP}}
{{redirect|WP:SP}}
{{redirect|WP:SUB|page substitution|Wikipedia:Substitution}}
{{redirect|WP:SUB|template substitution|Wikipedia:Substitution}}
{{for|sections of long articles spun off into their own articles leaving summaries in their place|Wikipedia:Summary style}}
{{for|sections of long articles spun off into their own articles leaving summaries in their place|Wikipedia:Summary style}}
{{subcat guideline|editing guideline|Subpages|WP:SP|WP:SUB}}
{{subcat guideline|editing guideline|Subpages|WP:SP|WP:SUB}}
Line 8: Line 8:
Except in the main [[Wikipedia:Namespace|namespace]] ([[Wikipedia:Main namespace|article namespace]]), where the [[mw:Help:Subpages|subpage feature]] has been disabled in the English Wikipedia, '''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]]), where the [[mw:Help:Subpages|subpage feature]] has been disabled in the English Wikipedia, '''subpages''' are pages separated with a "/" (a [[slash (punctuation)|slash]]) from their 'parent' page.


Making a new ''<nowiki>[[link]]</nowiki>'' 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 ''<nowiki>[[Parentpage/Subpage]]</nowiki>''. 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 (navigation)|breadcrumb]]) to the higher levels of the page.
Making a new ''<nowiki>[[link]]</nowiki>'' 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 ''<nowiki>[[Parentpage/Subpage]]</nowiki>''. 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 navigation|breadcrumb]]) to the higher levels of the page.


==Allowed uses==
==Allowed uses==
Line 15: Line 15:
# [[Wikipedia:WikiProject|WikiProject]] subpages—for project-specific [[Wikipedia:Templates|templates]], discussion, or guidelines pages.
# [[Wikipedia:WikiProject|WikiProject]] subpages—for project-specific [[Wikipedia:Templates|templates]], discussion, or guidelines pages.
# [[Wikipedia:Portal|Portal]] subpages—for Portal-specific templates and content.
# [[Wikipedia:Portal|Portal]] subpages—for Portal-specific templates and content.
# Dividing up Wikipedia process pages (e.g., [[Wikipedia:Articles for deletion]], [[Wikipedia:Pages needing attention]], etc.) which would otherwise get too big to be easily used.
# Dividing up Wikipedia process pages (e.g., [[Wikipedia:Articles for deletion]]) which would otherwise get too big to be easily used.
# [[Wikipedia:Template documentation|Documentation subpages for templates]].
# [[Wikipedia:Template documentation|Documentation subpages for templates]].
# Talk page archiving—both article Talk and User_talk pages are typically archived by moving discussion to numbered subpages. This allows the discussion to still be searchable, rather than requiring a hunt through the [[Wikipedia:Page history|page history]].
# Talk page archiving—both article Talk and User_talk pages are typically archived by moving discussion to numbered subpages. This allows the discussion to still be searchable, rather than requiring a hunt through the [[Wikipedia:Page history|page history]].
Line 24: Line 24:
# Writing a [[WP:POVFORK|content fork to avoid NPOV]].
# Writing a [[WP:POVFORK|content fork to avoid NPOV]].
# Writing drafts of major article revisions, e.g., ''<nowiki>[[Example Article/Temp]]</nowiki>'' in the main namespace, as you can get there accidentally using [[Special:Random]]—write these in the talk namespace, e.g. ''<nowiki>[[Talk:Example Article/Temp]]</nowiki>''. See [[Wikipedia:Workpages]] for detail. Also, avoid incoming and outward links regarding such "Talk:.../Temp" page that might create the impression this is an encyclopedia page before it is, e.g.:
# Writing drafts of major article revisions, e.g., ''<nowiki>[[Example Article/Temp]]</nowiki>'' in the main namespace, as you can get there accidentally using [[Special:Random]]—write these in the talk namespace, e.g. ''<nowiki>[[Talk:Example Article/Temp]]</nowiki>''. See [[Wikipedia:Workpages]] for detail. Also, avoid incoming and outward links regarding such "Talk:.../Temp" page that might create the impression this is an encyclopedia page before it is, e.g.:
#* surround "category" links by "nowiki" tags, so that the temp page doesn't show up in a non-project category ''as if'' it were an article, example: <nowiki><nowiki>[[Category:Incredibly smart people]]</nowiki></nowiki>. The "nowiki" tags should be removed only when the "temp" content is moved to its place in article namespace. (This is an ''outward link'' example.) Another solution: put a colon before word "Category", for example, write <nowiki>[[:Category:Shamanism]]</nowiki> instead of <nowiki>[[Category:Shamanism]]</nowiki>. In this case, [[:Category:Shamanism|it will be still linkable]], but it will not make the subpage appear on category pages.
#* surround "category" links by "nowiki" tags, so that the temp page doesn't show up in a non-project category ''as if'' it were an article, example: <nowiki><nowiki>[[Category:Incredibly smart people]]</nowiki></nowiki>. The "nowiki" tags should be removed only when the "temp" content is moved to its place in article namespace. (This is an ''outward link'' example.) Another solution: put a colon before word "Category", for example, write <nowiki>[[:Category:Shamanism]]</nowiki> instead of <nowiki>[[Category:Shamanism]]</nowiki>. In this case, [[:Category:Shamanism|it will be still linkable]], but it will prevent the subpage from appearing on category pages.
#* don't create navigational templates that make it appear as if this temp page is part of a series of encyclopedia articles, for example, don't do this: <nowiki>"... | [[John I of Doeland]] | [[Talk:John II of Doeland/Temp|John II of Doeland]] | [[John III of Doeland]] | ..."</nowiki>. (this is an ''incoming link'' example).
#* don't create navigational templates that make it appear as if this temp page is part of a series of encyclopedia articles, for example, don't do this: <nowiki>"... | [[John I of Doeland]] | [[Talk:John II of Doeland/Temp|John II of Doeland]] | [[John III of Doeland]] | ..."</nowiki>. (this is an ''incoming link'' example).
#* Draft pages mistakenly created in the main namespace should be moved as appropriate, or deleted if they are inactive and redundant to the main article.
#* Draft pages mistakenly created in the main namespace should be moved as appropriate, or deleted if they are inactive and redundant to the main article.
Line 31: Line 31:


==Using subpages==
==Using subpages==
*To create a user subpage, see [[Wikipedia:User pages#User pages and user space]].
*To create a user subpage, see {{Section link|Wikipedia:User pages#Creating a subpage}}.
*To delete a user subpage, see [[Wikipedia:User pages#Deleting user pages and subpages]].
*To delete a user subpage, see {{Section link|Wikipedia:User pages#Deleting user pages and subpages}}.
*To link subpages, see [[Help:Link#Subpage links]].
*To link subpages, see {{Section link|Help:Link#Subpage links}}.
*To use variables associated with subpages, see [[WP:Page name#Subpagename and basepagename]].
*To use variables associated with subpages, see {{Section link|WP:Page name#Subpagename and basepagename}}.


==Finding subpages==
==Finding subpages==
Line 47: Line 47:
add this line:
add this line:
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mw.util.addPortletLink ('p-tb', wgServer+wgArticlePath.replace("$1", "Special:PrefixIndex/"+mw.config.values.wgPageName+"/"), 'Subpages');
mw.util.addPortletLink ('p-tb', mw.config.get( 'wgServer' ) + mw.config.get( 'wgArticlePath' ).replace("$1", "Special:PrefixIndex/" + mw.config.get( 'wgPageName' )+"/"), 'Subpages');
</syntaxhighlight>
</syntaxhighlight>
to [[Special:MyPage/common.js|your Common.js page]] and purge per the instructions at the top of the page.</ref>
to [[Special:MyPage/common.js|your Common.js page]] and purge per the instructions at the top of the page.</ref>
Line 95: Line 95:
*File: Unnecessary, and hierarchy among files is bad.
*File: Unnecessary, and hierarchy among files is bad.
*MediaWiki{{why}}
*MediaWiki{{why}}
*Education Program{{why}}


'''However, the corresponding talk namespaces for the above spaces do allow subpages.'''
'''However, the corresponding talk namespaces for the above spaces do allow subpages.'''
Line 107: Line 106:
==History of subpages==
==History of subpages==
Subpages were originally used on Wikipedia to differentiate between subjects to create topical hierarchies of articles, but this proved unworkable because articles tend to belong in more than one hierarchy. The present system of [[Wikipedia:disambiguation|disambiguation]] was adopted instead, and the [{{fullurl:Wikipedia:Do not use subpages|oldid=2836167}} Wikipedia:Do not use subpages] policy had to be rigorously enforced and retroactively applied. Since 2004, the [[Wikipedia:category|category system]] has supported hierarchical organization while still allowing an article to belong to multiple categories.
Subpages were originally used on Wikipedia to differentiate between subjects to create topical hierarchies of articles, but this proved unworkable because articles tend to belong in more than one hierarchy. The present system of [[Wikipedia:disambiguation|disambiguation]] was adopted instead, and the [{{fullurl:Wikipedia:Do not use subpages|oldid=2836167}} Wikipedia:Do not use subpages] policy had to be rigorously enforced and retroactively applied. Since 2004, the [[Wikipedia:category|category system]] has supported hierarchical organization while still allowing an article to belong to multiple categories.

The subpage titles that became redirects when mainspace subpages were moved, are to be left alone ({{Section link|WP:RFD#K4}}), in case there are any existing links on external pages pointing to them.

== Notes ==
== Notes ==
{{reflist}}
{{reflist}}
Line 113: Line 115:
{{Wikipedia glossary}}
{{Wikipedia glossary}}
''Note that older discussions of subpages are generally concerned with articles named as subpages of other articles; this is no longer done.''
''Note that older discussions of subpages are generally concerned with articles named as subpages of other articles; this is no longer done.''

* [[m:Help:Link#Subpage feature]]
===In Meta===
* {{tl|Workpage}}
* {{Section link|m:Help:Link#Subpage feature}}
* [[m:Accidental linking and hard-wired category schemes|Accidental linking and hard-wired category schemes]]
* [[m:Accidental linking and hard-wired category schemes|Accidental linking and hard-wired category schemes]]
* [[m:Case against subpages|Case against subpages]]
* [[m:Case against subpages|Case against subpages]]
Line 120: Line 123:
* [[m:Mysterious wikipedia user subpages|Mysterious wikipedia user subpages]]
* [[m:Mysterious wikipedia user subpages|Mysterious wikipedia user subpages]]
* [[m:Why I am suspicious of subpages|Why I am suspicious of subpages]]
* [[m:Why I am suspicious of subpages|Why I am suspicious of subpages]]

===In Wikipedia===
* {{tl|Workpage}}
* [[Help:Userspace draft]]
* [[Help:Userspace draft]]
* [[Wikipedia:Subpages to be moved]]
* [[Wikipedia:Subpages to be moved]]
* [[Wikipedia talk:Do not use subpages]]
* [[Wikipedia talk:Subpages/Archive|Older discussion regarding the pros and cons of subpages]]
* [[Wikipedia:Userfication]]
* [[Wikipedia:Userfication]]
* [[Wikipedia:Naming conventions (long lists)]]
* [[Wikipedia:Naming conventions (long lists)]]
* [[Wikipedia:Editors are not mindreaders]]—Essay encouraging editors to create articles first in user space.
* [[Wikipedia:Editors are not mindreaders]]—Essay encouraging editors to create articles first in user space.
* [[Wikipedia:Articles with slashes in title]]
* [[Wikipedia:Articles with slashes in title]]
* [[Wikipedia:Do not use subpages]], a guideline from 2004 when subpages in article space were possible


{{Wikipedia policies and guidelines}}
{{Wikipedia policies and guidelines}}

Revision as of 09:07, 15 July 2024

Except in the main namespace (article namespace), where the subpage feature has been disabled in the English Wikipedia, 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.

Allowed uses

  1. Test pages, following the rules of the sandbox.
  2. User subpages—making extra pages within your own user namespace, e.g. [[User:Example/Draft of article]] or [[User:Example/About me]].
  3. WikiProject subpages—for project-specific templates, discussion, or guidelines pages.
  4. Portal subpages—for Portal-specific templates and content.
  5. Dividing up Wikipedia process pages (e.g., Wikipedia:Articles for deletion) which would otherwise get too big to be easily used.
  6. Documentation subpages for templates.
  7. Talk page archiving—both article Talk and User_talk pages are typically archived by moving discussion to numbered subpages. This allows the discussion to still be searchable, rather than requiring a hunt through the page history.
  8. Talk page adjuncts, such as an article's /to do list or the /Comments pages used for Good Article review. A particularly long and complicated {{ArticleHistory}} may also be put on an /ArticleHistory transclude page.
  9. Temporary subpages in Talk namespace, usually formatted [[Talk:Example Article/Temp]] or [[Talk:Example Article/Dumping ground]], for example the kind of "/Temp" pages that can be created from Template:Copyvio, which allow editors to begin creating an entirely new article from scratch while the copyright violation is being resolved.
    Avoid additional incoming and outward links that would make it appear as if this "/Temp" page is part of the encyclopedia: that is, in the case the Copyvio template is used, only this template, applied in article namespace, can link to the "/Temp" article from article or "main" namespace. See Disallowed uses below for further recommendations on how to avoid creating the impression a "/Temp" page is an encyclopedia page. Other common variants are [[Talk:Example Article/Draft]] and [[Talk:Example Article/Sandbox]]. Such temp pages are also sometimes used for template and Wikipedia-namespace development.

Disallowed uses

  1. Writing a content fork to avoid NPOV.
  2. Writing drafts of major article revisions, e.g., [[Example Article/Temp]] in the main namespace, as you can get there accidentally using Special:Random—write these in the talk namespace, e.g. [[Talk:Example Article/Temp]]. See Wikipedia:Workpages for detail. Also, avoid incoming and outward links regarding such "Talk:.../Temp" page that might create the impression this is an encyclopedia page before it is, e.g.:
    • surround "category" links by "nowiki" tags, so that the temp page doesn't show up in a non-project category as if it were an article, example: <nowiki>[[Category:Incredibly smart people]]</nowiki>. The "nowiki" tags should be removed only when the "temp" content is moved to its place in article namespace. (This is an outward link example.) Another solution: put a colon before word "Category", for example, write [[:Category:Shamanism]] instead of [[Category:Shamanism]]. In this case, it will be still linkable, but it will prevent the subpage from appearing on category pages.
    • don't create navigational templates that make it appear as if this temp page is part of a series of encyclopedia articles, for example, don't do this: "... | [[John I of Doeland]] | [[Talk:John II of Doeland/Temp|John II of Doeland]] | [[John III of Doeland]] | ...". (this is an incoming link example).
    • Draft pages mistakenly created in the main namespace should be moved as appropriate, or deleted if they are inactive and redundant to the main article.
  3. Using subpages for permanent content that is meant to be part of the encyclopedia.
  4. Pasting copies of copyrighted reliable sources to "share" with other editors. Copyright violations are not permitted on any page in Wikipedia.

Using subpages

Finding subpages

The "All pages with prefix" report from Special:PrefixIndex shows subpages.

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.

Wikipedia namespaces that do not have sub-pages

The MediaWiki software (which runs Wikipedia) supports selectively allowing or disallowing the creation of subpages in various namespaces.

The following namespaces in English Wikipedia do not have the subpage feature:

  • Main
    • This namespace (which is where articles reside) does not have this feature turned on because strictly hierarchical organisation of articles is discouraged, and other distinctions are better made by placing pages in other namespaces (e.g. discussions go in "Talk:", and templates in "Template:").
  • File: Unnecessary, and hierarchy among files is bad.
  • MediaWiki[why?]

However, the corresponding talk namespaces for the above spaces do allow subpages.

All other namespaces allow subpages. You can create a subpage simply by linking to the name of the subpage, prefixed with a slash (e.g. [[/Archive]]).

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.

History of subpages

Subpages were originally used on Wikipedia to differentiate between subjects to create topical hierarchies of articles, but this proved unworkable because articles tend to belong in more than one hierarchy. The present system of disambiguation was adopted instead, and the Wikipedia:Do not use subpages policy had to be rigorously enforced and retroactively applied. Since 2004, the category system has supported hierarchical organization while still allowing an article to belong to multiple categories.

The subpage titles that became redirects when mainspace subpages were moved, are to be left alone (WP:RFD § K4), in case there are any existing links on external pages pointing to them.

Notes

  1. ^ To add a Subpages link to your Tools in the sidebar, add this line:
    mw.util.addPortletLink ('p-tb', mw.config.get( 'wgServer' ) + mw.config.get( 'wgArticlePath' ).replace("$1", "Special:PrefixIndex/" + mw.config.get( 'wgPageName' )+"/"), 'Subpages');
    

    to your Common.js page and purge per the instructions at the top of the page.

See also

Note that older discussions of subpages are generally concerned with articles named as subpages of other articles; this is no longer done.

In Meta

In Wikipedia