Template:Subpage/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 4: Line 4:
: The first unnamed parameter will be interpreted as the name of the subpage to link to. Without a second parameter, this assumes you are linking from the parent page.
: The first unnamed parameter will be interpreted as the name of the subpage to link to. Without a second parameter, this assumes you are linking from the parent page.


; <code>prev</code>
; <code>prev</code>, <code>lprev</code>, <code>uprev</code>
: On subpages themselves, pass in <code>prev</code> as a second unnamed parameter in order to link to a different subpage on the parent page.
: 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.
 
; <code>s</code>
: Pass <code>s=</code> followed by the name of a section if you want to link to a section within the page.


; <code>text</code>
; <code>text</code>
: Pass in <code>text=</code> to change the text displayed in the subpage link.
: 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.

Revision as of 15:57, 1 November 2024

Usage

{{{1}}}
The first unnamed parameter will be interpreted as the name of the subpage to link to. Without a second parameter, this assumes you are linking from the parent page.
prev, lprev, uprev
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. uprev capitalises the first letter of the first argument for the section name, while lprev does the opposite.
s
Pass s= followed by the name of a section if you want to link to a section within the page.
text
Pass in text= 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.