Template:Go to top/doc

From W9CR
< Template:Go to top
Revision as of 11:30, 25 April 2020 by Mediawiki>Vanisaac (→‎Description: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

         | {{#invoke:Message box|mbox}}
        }}{{#if: |
         |   {{#ifexist:Template:Go to top
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

Description

The template {{go to top}} inserts an intra-page link to the top of the page.

   [top]

The link floats on the right side of the page and appears as shown here.

The template inserts the following HTML code:

<div style="float: right;">   [[#top|[top]]]</div>