mNo edit summary |
Kentsmith9 (talk | contribs) m (Clarified the instructions) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{doc subpage}} | {{doc subpage}} | ||
This template is placed on a page primarily at the end of a section with many sections on the page. This | This template is placed on a page primarily at the end of a section with many sections on the page. This displays an icon providing a quick link to the top of the page. | ||
By default, if no argument is provided, the position of the page title is the top of the page. | |||
The template enables the "top of the page" position to be altered by adding, as a parameter, an anchor name. Then the selection of this icon will scroll the page up to the position of the named Anchor. | |||
For instance, if you add the following syntax in the middle of the page : '''<nowiki>{{Anchor|HereIsMyOwnTop}}}}</nowiki>''', then using the template '''<nowiki>{{ReturnTop|HereIsMyOwnTop}}</nowiki>''' will display an icon to scroll to the middle of the page. | |||
See also [[Template:Anchor | Anchor template documentation]] | |||
<includeonly> | <includeonly> | ||
<!-- ADD CATEGORIES BELOW THIS LINE --> | <!-- ADD CATEGORIES BELOW THIS LINE --> | ||
[[Category: | [[Category:Linking templates]] | ||
<!-- ADD INTERWIKIS BELOW THIS LINE --> | <!-- ADD INTERWIKIS BELOW THIS LINE --> | ||
</includeonly> | </includeonly> |
Latest revision as of 22:06, 24 July 2022
This is a documentation subpage for . It contains usage information, categories and other content that is not part of the original template page. |
This template is placed on a page primarily at the end of a section with many sections on the page. This displays an icon providing a quick link to the top of the page.
By default, if no argument is provided, the position of the page title is the top of the page.
The template enables the "top of the page" position to be altered by adding, as a parameter, an anchor name. Then the selection of this icon will scroll the page up to the position of the named Anchor.
For instance, if you add the following syntax in the middle of the page : {{Anchor|HereIsMyOwnTop}}}}, then using the template {{ReturnTop|HereIsMyOwnTop}} will display an icon to scroll to the middle of the page.
See also Anchor template documentation