Template:Custom edit/doc: Difference between revisions
Template page
More actions
fix |
parameters |
||
| Line 2: | Line 2: | ||
|1=1 | |1=1 | ||
|1d=wikilink of page to be edited | |1d=wikilink of page to be edited | ||
|1def= | |1def=<nowiki>{{FULLPAGENAME}}</nowiki> | ||
|1stat= | |1stat= | ||
|2= | |2=2 | ||
|2d= | |2d=text of edit link | ||
|2def= | |2def=edit | ||
|2stat= | |2stat= | ||
|3= | |3=section | ||
|3d= | |3d=section name on target page | ||
|3def= | |3def= | ||
|3stat= | |3stat= | ||
|4=editintro | |||
|4d=editintro name | |||
|4def= | |||
|4stat= | |||
|5=preload | |||
|5d=preload name | |||
|5def= | |||
|5stat= | |||
|6=preloadtitle | |||
|6d=preloadtitle name | |||
|6def= | |||
|6stat= | |||
|7=oldid | |||
|7d=oldid # | |||
|7def= | |||
|7stat= | |||
|name= | |name= | ||
|desc={{mld|en=Provides a custom link for editing a page}} | |desc={{mld|en=Provides a custom link for editing a page}} | ||
| Line 17: | Line 33: | ||
|usergroup=all | |usergroup=all | ||
|placement= | |placement= | ||
|usage-notes=Example: {{tlx| | |usage-notes=Example: {{tlx|custom edit|Commons:Sandbox|<nowiki>'''Play in the sandbox'''</nowiki>}} gives {{custom edit|Commons:Sandbox|'''Play in the sandbox'''}}. Note you ''can'' use an internationalised text template like {{tl|support}}: {{tlx|custom edit|Commons:Sandbox|<nowiki>{{support}}</nowiki>}} gives {{custom edit|Commons:Sandbox|{{support}}}}. | ||
|type= | |type= | ||
|example= | |example= | ||
|i18n-method=- | |i18n-method=- | ||
|i18n-desc= | |i18n-desc= | ||
|seealso={{tl| | |seealso={{tl|edit}} | ||
|setscats= | |setscats= | ||
|lines=one | |lines=one | ||
|shorthand= | |shorthand= | ||
|relieson= | |relieson= | ||
}} | }}<includeonly> | ||
<includeonly> | [[Category:Internal link templates|{{PAGENAME}}]]<includeonly> | ||
[[Category:Internal link templates|{{PAGENAME}}]] | |||
<includeonly> | |||
Revision as of 21:37, 29 April 2012
English: Provides a custom link for editing a page
Usage
{{Custom edit/doc |1= |2= |section= |editintro= |preload= |preloadtitle= |oldid= }}
Example: {{custom edit|Commons:Sandbox|'''Play in the sandbox'''}} gives . Note you can use an internationalised text template like {{Support}}: {{custom edit|Commons:Sandbox|{{support}}}} gives .
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | wikilink of page to be edited | {{FULLPAGENAME}} | optional | |
2 | text of edit link | edit | optional | |
section | section name on target page | empty | optional | |
editintro | editintro name | empty | optional | |
preload | preload name | empty | optional | |
preloadtitle | preloadtitle name | empty | optional | |
oldid | oldid # | empty | optional | |
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
See also
Localization
This template is not intended to be localized.