Template:AutoEdit: Difference between revisions

Content deleted Content added
Created page with "<noinclude> Auto edit button template </noinclude> <includeonly><span class="autoedit {{#if: {{{fox-button|}}}|fox-buton|}}" {{#if: {{{tooltip|}}}| title="{{{tooltip}}}" data-..."
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Auto edit button template
Auto edit button template
{{AutoEdit|form=Task|template=task|field=task-status|state=done|text=Done}}
</noinclude>
</noinclude>
<includeonly><span class="autoedit {{#if: {{{fox-button|}}}|fox-buton|}}" {{#if: {{{tooltip|}}}| title="{{{tooltip}}}" data-toggle="tooltip" data-placement="top"}}>{{#autoedit:form={{{form|}}}
<includeonly><span class="autoedit {{#if: {{{fox-button|}}}|fox-buton|}}" {{#if: {{{tooltip|}}}| title="{{{tooltip}}}" data-toggle="tooltip" data-placement="top"}}>{{#autoedit:form={{{form|}}}
|target={{{target|{{FULLPAGENAME}} }}}
|target={{{target|{{FULLPAGENAME}} }}}
|link text={{{text|}}}{{#if:{{{icon|}}}| {{i|{{{icon}}}|{{{fa|fal}}}}|{{{icon-tooltip|}}} }}
|link text={{{text|}}}{{#if:{{{icon|}}}| {{i|{{{icon}}}|{{{fa|fal}}}}|{{{icon-tooltip|}}} }} }}
|link type={{{type|link}}}
|link type={{{type|link}}}
|summary={{#if: {{{summary|}}}|{{{summary}}}|Change {{{field|}}} to: {{{result|}}} }}
|summary={{#if: {{{summary|}}}|{{{summary}}}|Change {{{field|}}} to: {{{state|}}} }}
|query string={{{template|{{{form|}}}}}}[{{{field|}}}]{{#if:{{{stage|}}}|[{{{stage}}}]}}={{{result|}}}
|query string={{{template|{{{form|}}}}}}{{#if:{{{stage|}}}|[{{{stage}}}]}}[{{{field|}}}]={{{state|}}}
|minor
|minor
|reload}}</span></includeonly>
|reload}}</span></includeonly>
Line 46: Line 47:
"icon-tooltip": {},
"icon-tooltip": {},
"type": {},
"type": {},
"result": {
"state": {
"description": "result value",
"description": "result value",
"type": "string",
"type": "string",
Line 66: Line 67:
"label": "number of instance (for multiple)",
"label": "number of instance (for multiple)",
"type": "number"
"type": "number"
},
"summary": {
"label": "Edit summary",
"type": "string"
}
}
},
},
Line 73: Line 78:
"field",
"field",
"template",
"template",
"result",
"state",
"text",
"text",
"icon",
"icon",
Line 82: Line 87:
"icon-tooltip",
"icon-tooltip",
"type",
"type",
"stage"
"stage",
"summary"
]
]
}
}

Latest revision as of 01:34, 28 August 2022

Auto edit button template



Autoedit form button

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
formform

no description

Unknownrequired
Field namefield

no description

Stringrequired
Template nametemplate

no description

Stringsuggested
statestate

result value

Stringrequired
link texttext

no description

Stringsuggested
link iconicon

font awesome icon namge

Stringsuggested
fox-buttonfox-button

Whether to use fox button design

Booleanoptional
page to edittarget

defaults to current page

Unknownoptional
tooltiptooltip

no description

Stringoptional
font awesome stylefa

no description

Stringoptional
icon-tooltipicon-tooltip

no description

Unknownoptional
typetype

no description

Unknownoptional
number of instance (for multiple)stage

no description

Numberoptional
Edit summarysummary

no description

Stringoptional