Template:Edit param
Use this tool to quickly edit template parameters without leaving the page. This makes editing templates easy, fast and intuitive, both in desktop and mobile devices.
Important! This tool only works for templates that appear exactly once in the page (see #Limitations).
Usage
[edit source]The following wikitext will insert a button that, when clicked, will open a dialog to edit the parameter "bar" of the template "foo", with default value set to "baz":
{{Edit param|template=foo|param=bar|value=baz}}
Or alternatively:
{{Edit param|foo|bar|baz}}
If the parameter supports multiple values, it's possible to display them as "chips" by specifying a separator for the values:
{{Edit param|template=foo|param=bar|value=a,b,c|separator=,}}
Or alternatively:
{{Edit param|foo|bar|a,b,c|,}}
Limitations
[edit source]This tool cannot be used to edit templates that:
- Appear more than once in the wikitext of the page
- Do not appear in the wikitext of the page
If you attempt to do so, an error will be shown.
Template data
[edit source]Use this template to insert a button that, when clicked, will open a dialog to edit a parameter of a template found in the page, without having to edit the entire page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Template | template 1 | Name of the template to edit | String | required |
| Param | param 2 | Name of the parameter to edit | String | required |
| Value | value 3 | Current value of the parameter | String | optional |
| Separator | separator 4 | Character that separates the values if the field supports multiple values
| String | optional |
See also
[edit source]- MediaWiki:Gadget-EditParam.js - JavaScript that makes this template work
- Appropedia:MiniEdit - Related tool