Template:Subpage/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 5: Line 5:


; <code>prev</code>, <code>lprev</code>, <code>uprev</code>
; <code>prev</code>, <code>lprev</code>, <code>uprev</code>
: On subpages themselves, pass in any one of these as a second unnamed parameter in order to link to a different subpage on the parent page. <code>uprev</code> capitalises the first letter of the first argument for the section name, while <code>lprev</code> does the opposite. If the first unnamed parameter is <code>prev</code>, the parent page (if it exists) will be linked.
: On subpages themselves, you can pass in any of these keywords as a second unnamed parameter:
:* <code>uprev</code> capitalises the first letter of the first argument for the section name and links to a different subpage on the ''parent'' page.
:* <code>lprev</code> makes the first letter of the first argument lowercase.
:* <code>u</code> links to a subpage on the ''current'' page and capitalises the first letter of the argument.
:* <code>l</code> does the same thing as <code>u</code>, but makes the first letter lowercase instead of uppercase.
:* <code>prev</code> will link to the parent page (if it exists) will be linked.


; <code>s</code>
; <code>s</code>
Line 12: Line 17:
; <code>text</code>
; <code>text</code>
: Pass in <code>text=</code> to change the text displayed in the subpage link. If this parameter is not specified, the text displayed will default to the section name and then to the first unnamed parameter.
: Pass in <code>text=</code> to change the text displayed in the subpage link. If this parameter is not specified, the text displayed will default to the section name and then to the first unnamed parameter.
=== See also ===
* {{tlx|breadcrumb}} &ndash; used for controlling subpages in the main (article) namespace.