Template:Editlink

From AddOn Studio
Revision as of 17:32, 5 August 2023 by Bear (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Puts a small "e" edit link in a subscript-like position in a table cell. Intended for transcluded tables, but theoretically could be used for other things.

Usage
  • 1 - internal link page, like 'Template:Somenav'
  • 2 - (optional) char or text to use as link. Default is 'e'
  • color - (optional) text color link. Default is regular link color
  • float - (optional) Default is 'right'. both|right|left|none
  • tight - (optional) render the "e" that fits better in tight space, doesn't disturb flow
  • style - (optional) additional style, like margins or as necessary
Examples
{| class="darktable" width="30%"
|-
! Table with edit link {{{{PAGENAME}}|{{PAGENAME}}}}
|-
| Cell 1
|}
Table with edit link
Cell 1
:<div style="position:relative">Some kind of heading {{{{PAGENAME}}|{{PAGENAME}}}}</div>
:I like unicorn.
:I like princess.
Some kind of heading
I like unicorn.
I like princess.

Template