Template:Subpage/doc: Difference between revisions
Jump to navigation
Jump to search
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. | : 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. | ||
; <code>s</code> | ; <code>s</code> | ||
Revision as of 17:17, 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.
uprevcapitalises the first letter of the first argument for the section name, whilelprevdoes the opposite. If the first unnamed parameter isprev, the parent page (if it exists) will be linked.
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.