Difference between revisions of "Template:Top"
From Salem Wiki
m (fix and visual) |
m (a bit shorter) |
||
Line 1: | Line 1: | ||
− | <onlyinclude><div style="clear:both; width: | + | <onlyinclude><div style="clear:both; width:98%; color:black; background-color:silver; padding:0 1em;" |
><div style="float:left;">⇑ [[#{{#if:{{{1|}}}|{{{1}}}|About}}|Back to {{#if:{{{2|}}}|{{{2}}}|top}}]] ⇑</div | ><div style="float:left;">⇑ [[#{{#if:{{{1|}}}|{{{1}}}|About}}|Back to {{#if:{{{2|}}}|{{{2}}}|top}}]] ⇑</div | ||
><div style="float:right;">⇑ [[#{{#if:{{{1|}}}|{{{1}}}|About}}|Back to {{#if:{{{2|}}}|{{{2}}}|top}}]] ⇑</div | ><div style="float:right;">⇑ [[#{{#if:{{{1|}}}|{{{1}}}|About}}|Back to {{#if:{{{2|}}}|{{{2}}}|top}}]] ⇑</div | ||
> </div | > </div | ||
></onlyinclude><noinclude>{{documentation}}</noinclude> | ></onlyinclude><noinclude>{{documentation}}</noinclude> |
Revision as of 04:20, 13 July 2012
⇑ 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
- {{Top}}⇑ Back to top ⇑⇑ Back to top ⇑
- {{Top|Description}}⇑ Back to top ⇑⇑ Back to top ⇑
- {{Top||you}}⇑ Back to you ⇑⇑ Back to you ⇑
Visit Template:Top/doc to edit this text! (How does this work?)