Template:Edit
How to use this wikitemplate in your wiki
- Create a template called Template:Edit (or any name you like) in your wiki and copy-paste the following wikitext:{{raw:Wikitemplate:Edit
| param1 = {{{param1|}}}
| param2 = {{{param2|}}}
| param3 = {{{param3|}}}
}} - Replace
param1
,param2
, etc. with the real parameter names of this template (see documentation below). You don't need to do all, only the required ones (if any) and the ones you're interested in. - Replace
{{{param1|}}}
,{{{param2|}}}
, etc. with the parameter names that you want for your local wiki. You can change these parameter names to your liking, translate them to your language, and set default values using the pattern:{{{param1|default value}}}
- Save the changes and you're ready to go!
Template documentationedit
Use this template to create inline links to edit any page using the source editor.
Usage
{{Edit}}
→ edit{{Edit|text=Edit this page}}
→ Edit this page{{Edit|text=Edit the main page|page=Main Page}}
→ Edit the main page{{Edit|text=Edit the main page intro|page=Main Page|section=0}}
→ Edit the main page intro{{Edit|text=Edit the main page intro|Main Page|section=0|button=yes}}
→ Edit the main page intro{{Edit|text=Edit the main page intro|Main Page|section=0|progressive=yes}}
→ Edit the main page intro
Template data
Use this template to create inline links to edit any page using the source editor.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text | text | Text of the edit link
| String | optional |
Page | page | Name of the page to edit
| Page name | optional |
Section | section | Number of section to edit
| Number | optional |
Preload | preload | Name of the page to preload in the edit area
| Page name | optional |
Edit intro | editintro | Name of the page to show before the edit area (for instructions)
| Page name | optional |
Button | button | Show this link as a button (any value means yes)
| Boolean | optional |
Progressive | progressive | Show this link as a progressive button (any value means yes)
| Boolean | optional |
No summary | nosummary | Hide the summary field (any value means yes)
| Boolean | optional |
Retrieved from "https://wikitemplates.org/w/index.php?title=Template:Edit&oldid=161"