Jump to content

Template:Floating link/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

This template creates a piped link to a subpage that hovers or 'floats' in the top right corner of the page it is used on, in the same place as {{coord}}. Due to this positioning, it should not be used on pages using {{coord}} as the two templates will overlap.

{{Floatinglink|1=SubPage|2=TextToDisplay}}

If you want to link to a page other than a subpage, use fullpath=y and the first parameter will be treated as the full path.

If you would like to specify a CSS class for the span, use class= (i.e. |class=sysop-show).

Example

[edit]
{{Floatinglink|1=doc|2=Documentation}}

Will create '[[/doc|Documentation]]' floating in the top right hand corner.

{{Floatinglink|1=Wikipedia:Template documentation|2=Documentation|fullpath=y}}

Will create '[[Wikipedia:Template documentation|Documentation]]' floating in the top right hand corner.

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Floating link in articles based on its TemplateData.

TemplateData for Floating link

This template creates a floating link on a page. Note: this should not be used with {{coord}}, as the links will overlap.

Template parameters

ParameterDescriptionTypeStatus
Page or subpage to link to1

Either the subpage's suffix (after the page's own name and a slash), or a page's full name.

Example
SubPage
Stringrequired
Text of the link2

The text to be displayed in the floating link. Defaults to the value of the first parameter if not provided.

Example
TextToShow
Stringrequired
CSS classclass

To specify a CSS class for the span tag containing the floating link

Example
sysop-show
Stringoptional
Specify link using full path?fullpath

If this parameter is not empty, the first parameter will be treated as the entire name of the page you want to link to. Otherwise, it will be treated as a suffix, to be appended to the name of the page you're adding this template to plus a slash.

Suggested values
y yes
Stringoptional