Template:Edit: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
sims>DarthCookie
m (Reverted edits by Shane Ingrum (talk | block) to last version by A morris)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
&#x5b;[{{fullurl:{{{1|{{FULLPAGENAME}}}}}|action=edit{{#if:{{{3|}}}|&section={{{3}}}}} }} {{{2|edit}}}]&#x5d;<noinclude>
<span class="noprint plainlinks">{{#ifeq:{{{nobrackets|}}}|yes|<!--NO BRACKETS -->|&#x5b;}}[{{fullurl:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}|action=edit{{#if:{{{section|}}}|&section={{{section}}}}}{{#if:{{{editintro|}}}|&editintro={{urlencode:{{{editintro}}}|wiki}}}}{{#if:{{{preload|}}}|&preload={{urlencode:{{{preload}}}|wiki}}}}{{#if:{{{preloadtitle|}}}|&preloadtitle={{urlencode:{{{preloadtitle}}}}}}}}} {{{2|edit}}}]{{#ifeq:{{{nobrackets|}}}|yes|<!--NO BRACKETS -->|&#x5d;}}</span><noinclude>
{{documentation}}</noinclude>
{{documentation}}
</noinclude>

Latest revision as of 16:14, 23 February 2019

[edit]

Template documentation (View · Edit · History · Purge)

Description[edit source]

This template provides a link to edit a page.

Usage[edit source]

{{Edit|Page|Label|section=Section|editintro=Editintro|preload=preload|preloadtitle=Preloadtitle|nobrackets=yes/no}}

By default, simply using this template will provide a link to edit the currently displayed page.

The following parameters are available. All of them are optional.

  • Page: the page to edit, if not the current page
  • Label: the text to label the link, defaults to "edit"
  • Section: the section to edit, 0 for top section, "new" to add a new section
  • Editintro: Title of a page that will be transcluded above the edit box. Not a wikilink, templates require Template:
  • Preload: Title of a page to preload into the edit form if the page to be edited does not exist
  • Preloadtitle: if section=new, a title to be preloaded into the title box of the edit form
  • nobrackets: If set to yes, the square brackets around the link will not be displayed.
Template Result
{{edit}} [edit]
{{edit|The Sims Wiki:Sandbox}} [edit]
{{edit|The Sims Wiki:Sandbox|Edit the page of awesome}} [Edit the page of awesome]
{{edit|Template:Edit/doc|section=1}} [edit]
{{edit|2=Some label}} [Some label]
{{edit|nobrackets=yes}} edit

Credits[edit source]

This template's code was taken from Template:Edit on the English Wikipedia.


Visit Template:Edit/doc to edit this text! (How does this work?) (Refresh this text - why?)