Difference between revisions of "Template:Top/doc"

From Salem Wiki
Jump to: navigation, search
(Initial setup)
 
m (bugfix in visual of last example)
Line 11: Line 11:
 
#{{t|Top}}{{Top}}
 
#{{t|Top}}{{Top}}
 
#{{t|Top|Description}}{{Top|Description}}
 
#{{t|Top|Description}}{{Top|Description}}
#{{t|Top||you}}{{Top||you}}
+
#{{t|Top|<nowiki></nowiki>|you}}{{Top||you}}
 
<includeonly>[[Category:Templates|{{PAGENAME}}]]<!-- Any categories for the template itself -->
 
<includeonly>[[Category:Templates|{{PAGENAME}}]]<!-- Any categories for the template itself -->
 
[[Category:Templates/©TriMoon™|{{SUBPAGENAME}}]]
 
[[Category:Templates/©TriMoon™|{{SUBPAGENAME}}]]
 
</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 05:06, 12 July 2012

Description

This template is used to generate links to navigate back to the top section on a page, for use in long sections or text.

Syntax

Type the below code somewhere on a page:
{{Top}}
It can accept 2 un-named parameters.
The first is used to select the section name to link-to. (Defaults to 'About')
The second is used to replace the shown text. (Defaults to 'top')

Examples

  1. {{Top}}
    Back to top
    Back to top
     
  2. {{Top|Description}}
    Back to top
    Back to top
     
  3. {{Top||you}}
    Back to you
    Back to you