• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Floating link

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]

Usage

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

{{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

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[Edit template data]

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
The above documentation is transcluded from Template:Floating link/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Floating_link&oldid=1307990641"
Last edited on 26 August 2025, at 21:39

Languages

    • العربية
    • تۆرکجه
    • বাংলা
    • भोजपुरी
    • فارسی
    • Bahasa Indonesia
    • മലയാളം
    • Scots
    • Slovenščina
    • کوردی
    • Српски / srpski
    • తెలుగు
    • ไทย
    • Türkçe
    • اردو
    • Yorùbá
    • 粵語
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 26 August 2025, at 21:39 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop