Difference between revisions of "Template:Top"

From Salem Wiki
Jump to: navigation, search
m (Protected "Template:Top": Key feature of wiki ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
Line 1: Line 1:
<onlyinclude><div style="clear:both; width:98%; color:black; background-color:silver; padding:0 1em;"
+
<onlyinclude><div style="clear:both; width:98%; color:black; background-color:#4c4c4c; padding:0 1em;"
 
><div style="float:left;">&uArr; [[#{{#if:{{{1|}}}|{{{1}}}|About}}|Back to {{#if:{{{2|}}}|{{{2}}}|top}}]] &uArr;</div
 
><div style="float:left;">&uArr; [[#{{#if:{{{1|}}}|{{{1}}}|About}}|Back to {{#if:{{{2|}}}|{{{2}}}|top}}]] &uArr;</div
 
><div style="float:right;">&uArr; [[#{{#if:{{{1|}}}|{{{1}}}|About}}|Back to {{#if:{{{2|}}}|{{{2}}}|top}}]] &uArr;</div
 
><div style="float:right;">&uArr; [[#{{#if:{{{1|}}}|{{{1}}}|About}}|Back to {{#if:{{{2|}}}|{{{2}}}|top}}]] &uArr;</div
 
>&nbsp;</div
 
>&nbsp;</div
 
></onlyinclude><noinclude>{{documentation}}</noinclude>
 
></onlyinclude><noinclude>{{documentation}}</noinclude>

Latest revision as of 13:38, 18 February 2018

Back to top
Back to top
 


Template documentation (for the template shown above, sometimes hidden or invisible)

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
     

Visit Template:Top/doc to edit this text! (How does this work?)