Difference between revisions of "Template:Edit"
Mediawiki>Kwj2772 m (urlencode) |
Mediawiki>Wugapodes (Add support for tooltips per edit request on talk) |
||
Line 1: | Line 1: | ||
− | < | + | <span class="noprint plainlinks" title="{{#if:{{{tooltip|}}}|{{{tooltip}}}|Edit {{{1}}}}}">[{{fullurl:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}|action=edit{{#if:{{{section|}}}|§ion={{{section}}}}}{{#if:{{{editintro|}}}|&editintro={{urlencode:{{{editintro}}}|wiki}}}}{{#if:{{{preload|}}}|&preload={{urlencode:{{{preload}}}|wiki}}}}{{#if:{{{preloadtitle|}}}|&preloadtitle={{urlencode:{{{preloadtitle}}}}}}}}} {{{2|edit}}}]</span><noinclude> |
− | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 18:13, 17 October 2019
This template gives a link in a uniform style to change a specific page, mostly used for changing language links.
Usage
{{Edit |1= }}
{{edit|the page to edit}}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | Pagename | complete pagename with namespace | {{FULLPAGENAME}} | optional |
preload | Preload | source code, which is preloaded by default | empty | optional |
editintro | Editintro | text that appears before the edit box | empty | optional |
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information This template gives a link in a uniform style to change a specific page, mostly used for changing language links.
|
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Example
{{Edit|Template:Edit/doc}}
renders as:
⧼Seealso⧽
- {{Custom edit}}
- {{Edit-int}}
Localization
This template is not intended to be localized.