49
edits
No edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
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. See also {{t|sectioneditlink}} and {{t|tabledisplaylink}}. | |||
; | ;Usage | ||
: | :{{t|editlink|page to edit}} | ||
* 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= [both,right,left,none] (Optional) Default is 'right'. | ||
* | * tight= [1] (Optional) render the "e" that fits better in tight space, doesn't disturb flow. | ||
* style= (Optional) additional style, like margins or as necessary. | |||
;Example | ;Example | ||
<pre> | <pre> | ||
{| class="darktable" | {| class="darktable" width="30%" | ||
|- | |- | ||
! Table with edit link {{ | ! Table with edit link {{editlink|Template:editlink}} | ||
|- | |- | ||
| Cell 1 | | Cell 1 | ||
|} | |} | ||
</pre> | </pre> | ||
{| class="darktable" width="30%" | |||
{| class="darktable" | |||
|- | |- | ||
! Table with edit link {{ | ! style="position:relative" | Table with edit link {{editlink|Template:editlink}} | ||
|- | |- | ||
| Cell 1 | | Cell 1 | ||
|} | |} | ||
<pre> | |||
:Some kind of heading {{editlink|Template:editlink}} | |||
:I like unicorn. | |||
:I like princess. | |||
</pre> | |||
:Some kind of heading {{editlink|Template:editlink}} | |||
:I like unicorn. | |||
:I like princess. | |||
[[Category:Inline templates]] | |||
---- | ---- | ||
;Template | ;Template | ||
<onlyinclude><span style=" | <onlyinclude><includeonly><!-- | ||
--><span style="font-weight:normal; {{#if:{{{tight|}}}|font-size:.76em; position:absolute; right:.2em; top:.2em;|font-size:.83em; float:{{{float|right}}}; margin:.2em 0 -2em 0;}} {{{style|}}}">[{{fullurl:{{{1|{{FULLPAGENAME}}}}}|action=edit}} {{#if:{{{color|}}}|<span style="color:{{{color|}}};">}}{{{2|e}}}{{#if:{{{color|}}}|</span>}}]</span><!-- | |||
--></includeonly></onlyinclude> | |||