Help:Subpage: Difference between revisions

From Pikmin Fanon
No edit summary
mNo edit summary
Line 1: Line 1:
{{Help}}
{{help}}
'''Subpages''' introduce some hierarchical organization into wiki pages, with levels of the hierarchy separated by slashes (<code>/</code>).
'''Subpages''' introduce some hierarchical organization into wiki pages, with levels of the hierarchy separated by slashes (<code>/</code>).


=== Where it works ===
===Where it works===
It's not possible to use slashes in the title of a page. However, as a crude hack, a character similar to the slash can be used instead, such as the "[[wikt:⧸|big solidus]]" (U+29F8), which results in Pik⧸min (cf. a real slash: Pik/min), or the [[wikt:⁄|solidus]] (U+2044), which results in Pik⁄min. Three possible technical disadvantages (apart from the visual difference from a real slash) arise from this hack:
It's not possible to use slashes in the title of a page. However, as a crude hack, a character similar to the slash can be used instead, such as the "[[wikt:⧸|big solidus]]" (U+29F8), which results in Pik⧸min (cf. a real slash: Pik/min), or the [[wikt:⁄|solidus]] (U+2044), which results in Pik⁄min. Three possible technical disadvantages (apart from the visual difference from a real slash) arise from this hack:
# People without the necessary fonts won't be able to view the character properly;
# People without the necessary fonts won't be able to view the character properly;
# Redirects from the title with a slash must be created, so that linking and search will work correctly.
# Redirects from the title with a slash must be created, so that linking and search will work correctly.
# Both the [[Help:Namespace|subject and talk versions]] of a page (and their corresponding subpages, e.g. discussion archives) need to use the hack, so that moving a page would take all connected pages to the new title (if that setting is selected during the move).
# Both the [[Help:Namespace|subject and talk versions]] of a page (and their corresponding subpages, e.g. discussion archives) need to use the hack, so that moving a page would take all connected pages to the new title (if that setting is selected during the move).
=== How it works ===
Slashes (/) within a page name break the page into parent and subpages, recursively, e.g.:


* [[Help:Subpages]] - this page
===How it works===
* [[Help:Subpages/subpage]] - child page
Slashes (/) within a page name break the page into parent and subpages, recursively, like so:
* [[Help:Subpages/subpage/sub-subpage]] - grandchild page
*'''this page''' &ndash; Help:Subpages
* [[Help:Subpages/subpage/sub-subpage/sub-sub-subpage]] - great grandchild page
*'''child page''' &ndash; Help:Subpages/1
* [[Help:Subpages/subpage/sub-subpage/sub-sub-subpage/sub-sub-sub-subpage]] - great great grandchild page
*'''grandchild page''' &ndash; Help:Subpages/1/2
*'''great grandchild page''' &ndash; Help:Subpages/1/2/3
*'''great great grandchild page''' &ndash; Help:Subpages/1/2/3/4


Note that the part of page names after a slash is case sensitive '''including the first letter'''.
Note that the part of a page's name after a slash is case sensitive, including the first letter.


In subpages, a link back to antecedent pages will automatically appear at the top. These links do not appear, however, if the antecedent pages have not yet been created.
In subpages, a link back to antecedent pages will automatically appear at the top. These links do not appear, however, if the antecedent pages have not yet been created.


=== Use of subpages ===
===Use of subpages===
There are various uses for the subpage feature. Some of the typical usages of subpages are:
There are various uses for the subpage feature. Some of the typical usages of subpages are:
* to create archives of old discussions under a [[Help:Talk pages|talk page]]
*to create archives of old discussions under a [[Help:Talk pages|talk page]]
* to create scratchpad editing spaces under a [[Help:User page|user page]]
*to create scratchpad editing spaces under a [[Help:User page|user page]]
* to create other language versions of a document in a situation that would involve multilingual wikis
*to create other language versions of a document in a situation that would involve multilingual wikis


Subpages are useful for organising information hierarchically. On the other hand, subpages tend to have a long name that is hard to remember, so it may be more user-friendly to use them as little as possible. You can also organize pages with the [[Help:Category|category]] feature, which is more suitable for creating a hierarchical network of information.  
Subpages are useful for organising information hierarchically. On the other hand, subpages tend to have a long name that is hard to remember, so it may be more user-friendly to use them as little as possible. You can also organize pages with the [[Help:Category|category]] feature, which is more suitable for creating a hierarchical network of information.  


== Displaying subpages ==
==Displaying subpages==
 
Subpages can be listed very plainly by transcluding [[Special:PrefixIndex]], like this:
Subpages can be listed very plainly by transcluding [[Special:PrefixIndex]], like this:


Line 35: Line 34:
{{Special:PrefixIndex/Help:Subpages/}}
{{Special:PrefixIndex/Help:Subpages/}}
</pre>
</pre>
Which produces this:
{{Special:PrefixIndex/Help:Subpages/}}


[[Category:Help|{{PAGENAME}}]]
[[Category:Help|{{PAGENAME}}]]

Revision as of 23:28, 8 April 2021

Pikilogo.png
This is one of Pikmin Fanon's help pages and is meant to aid users by improving their ability to positively contribute to the wiki. Expanding pages such as this with additional information is always welcome.
Pikilogo.png

Subpages introduce some hierarchical organization into wiki pages, with levels of the hierarchy separated by slashes (/).

Where it works

It's not possible to use slashes in the title of a page. However, as a crude hack, a character similar to the slash can be used instead, such as the "big solidus" (U+29F8), which results in Pik⧸min (cf. a real slash: Pik/min), or the solidus (U+2044), which results in Pik⁄min. Three possible technical disadvantages (apart from the visual difference from a real slash) arise from this hack:

  1. People without the necessary fonts won't be able to view the character properly;
  2. Redirects from the title with a slash must be created, so that linking and search will work correctly.
  3. Both the subject and talk versions of a page (and their corresponding subpages, e.g. discussion archives) need to use the hack, so that moving a page would take all connected pages to the new title (if that setting is selected during the move).

How it works

Slashes (/) within a page name break the page into parent and subpages, recursively, like so:

  • this page – Help:Subpages
  • child page – Help:Subpages/1
  • grandchild page – Help:Subpages/1/2
  • great grandchild page – Help:Subpages/1/2/3
  • great great grandchild page – Help:Subpages/1/2/3/4

Note that the part of a page's name after a slash is case sensitive, including the first letter.

In subpages, a link back to antecedent pages will automatically appear at the top. These links do not appear, however, if the antecedent pages have not yet been created.

Use of subpages

There are various uses for the subpage feature. Some of the typical usages of subpages are:

  • to create archives of old discussions under a talk page
  • to create scratchpad editing spaces under a user page
  • to create other language versions of a document in a situation that would involve multilingual wikis

Subpages are useful for organising information hierarchically. On the other hand, subpages tend to have a long name that is hard to remember, so it may be more user-friendly to use them as little as possible. You can also organize pages with the category feature, which is more suitable for creating a hierarchical network of information.

Displaying subpages

Subpages can be listed very plainly by transcluding Special:PrefixIndex, like this:

{{Special:PrefixIndex/Help:Subpages/}}