Difference between revisions of "Template:Edit"

From Second Life Wiki
Jump to navigation Jump to search
(Shamelessly copied from wiki.openstreetmap.org (needs some tweaking))
 
(Replace SVG icon by a PNG icon)
 
Line 1: Line 1:
<span class="{{#ifeq:{{{mini|1}}}|1||mw-editsection}} plainlinks" style="{{#ifeq:{{{mini|1}}}|1|font-size:87%;line-height:1.2;}}padding:0 .25em"><!--
<span class="{{#ifeq:{{{mini|1}}}|1||mw-editsection}} plainlinks" style="{{#ifeq:{{{mini|1}}}|1|font-size:87%;line-height:1.2;}}padding:0 .25em"><!--
-->{{#ifeq:{{{mini|1}}}|1|[[File:OOjs UI icon edit-{{#switch:{{{lang|}}}|ar|fa|he|ps=rtl|ltr}}-progressive.svg|frameless|text-top|10px|alt={{int:editsection}}|link={{FULLURL:{{{1|{{FULLPAGENAME}}}}}|action=edit{{#if:{{{lang|}}}|&uselang={{{lang|}}}|}}}}]]<!--
-->{{#ifeq:{{{mini|1}}}|1|[[File:OOjs UI icon edit-{{#switch:{{{lang|}}}|ar|fa|he|ps=rtl|ltr}}-progressive.png|frameless|text-top|10px|alt={{int:editsection}}|link={{FULLURL:{{{1|{{FULLPAGENAME}}}}}|action=edit{{#if:{{{lang|}}}|&uselang={{{lang|}}}|}}}}]]<!--
-->|[{{FULLURL:{{{1|{{FULLPAGENAME}}}}}|action=edit{{#if:{{{lang|}}}|&uselang={{{lang|}}}|}}}} <!--
-->|[{{FULLURL:{{{1|{{FULLPAGENAME}}}}}|action=edit{{#if:{{{lang|}}}|&uselang={{{lang|}}}|}}}} <!--
--><span class="mw-editsection-bracket">&#91;</span><!--
--><span class="mw-editsection-bracket">&#91;</span><!--

Latest revision as of 17:44, 13 September 2022

edit

[Edit] [🔄Purge] Template-info.png Template documentation

Insert a small edit link within templates when they are transcluded and when their content is not easy to locate in complex pages that use many templates (sometimes nested).

Usage

  • The first parameter is mandatory and must be the target (unredirected) full page name.
  • The optional mini parameter is set by default (set it explicitly to an empty string to generate an unabbreviated link showing an edit link like those shown beside article section headings).
  • The optional lang parameter can be set to specify the language code to use if this is not the User language (used only by the word shown in unabbreviated version) or the language determined by the current page (shown in the tooltip hint).

Example

  • {{Edit|Template:Edit}} gives: edit
  • {{Edit|Template:Edit|mini=1}} gives: edit
  • {{Edit|Template:Edit|mini=}} gives: [edit]

See also