Content deleted Content added
m Change task-status to: done |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{Task}} |
|||
<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: {{{ |
|summary={{#if: {{{summary|}}}|{{{summary}}}|Change {{{field|}}} to: {{{state|}}} }} |
||
|query string={{{template|{{{form|}}}}}} |
|query string={{{template|{{{form|}}}}}}{{#if:{{{stage|}}}|[{{{stage}}}]}}[{{{field|}}}]={{{state|}}} |
||
|minor |
|minor |
||
|reload}}</span></includeonly> |
|reload}}</span></includeonly> |
||
| Line 47: | Line 47: | ||
"icon-tooltip": {}, |
"icon-tooltip": {}, |
||
"type": {}, |
"type": {}, |
||
" |
"state": { |
||
"description": "result value", |
"description": "result value", |
||
"type": "string", |
"type": "string", |
||
| Line 78: | Line 78: | ||
"field", |
"field", |
||
"template", |
"template", |
||
" |
"state", |
||
"text", |
"text", |
||
"icon", |
"icon", |
||
Latest revision as of 01:34, 28 August 2022
Auto edit button template
Autoedit form button
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| form | form | no description | Unknown | required |
| Field name | field | no description | String | required |
| Template name | template | no description | String | suggested |
| state | state | result value | String | required |
| link text | text | no description | String | suggested |
| link icon | icon | font awesome icon namge | String | suggested |
| fox-button | fox-button | Whether to use fox button design | Boolean | optional |
| page to edit | target | defaults to current page | Unknown | optional |
| tooltip | tooltip | no description | String | optional |
| font awesome style | fa | no description | String | optional |
| icon-tooltip | icon-tooltip | no description | Unknown | optional |
| type | type | no description | Unknown | optional |
| number of instance (for multiple) | stage | no description | Number | optional |
| Edit summary | summary | no description | String | optional |