Difference between revisions of "Template:Custom edit"
Mediawiki>Verdy p (the preloadtitle is apparently not a pagename, so don't enforce this encoding (section heading titles are more relaxed than pagenames)) |
(Created page with "<span class="noprint plainlinks">[{{FULLURL:{{#if: {{{1|}}} | {{{1|}}} | {{FULLPAGENAME}} }}|action=edit{{#if: {{{oldid|}}} | &oldid={{URLENCODE:{{{oldid|}}}|QUERY}}...") |
Revision as of 08:50, 21 January 2022
Provides a custom link for editing a page.
Usage
{{Custom edit |1= |text= }}
Example (with the two main parameters):
gives .{{Custom edit|Commons:Sandbox|'''Play in the sandbox'''}}
Note you can use an internationalised text template like {{Support}}:
gives .{{Custom edit|Commons:Sandbox|{{Support}}}}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | page | Full pagename of the page to be edited. | {{FULLPAGENAME}} | optional |
text 2 | text | Text to display in the edit link. | edit | optional |
oldid | old id | Unique identifier number of the page version in its history. Note that this also overrides its current pagename, if that page was moved or if this refers to a version of another page on the same wiki. If that parameter is used, the user will see an additional warning at top of the edit form, because publishing changes made by the user in this edit session this will revert existing changes already published in the target page after that historic version. | empty | optional |
section | section | Section name on target page to edit. | empty | optional |
editintro | edit intro | Full name of a page to render as an introduction or guide just above the edit form. | empty | optional |
preloadtitle | preload title | Section heading title to preload in the edit form when creating a new section in the target page. | empty | optional |
preload | preload page | Full name of a page (usually a dedicated template) to transclude into the content edit form when creating a new page or section. | 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 Provides a custom link for editing a page.
|
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
⧼Seealso⧽
- {{edit}}
Localization
This template is localized by utilizing MediaWiki namespace messages. These can be translated at translatewiki.net (current translations).