Template:AutoEdit dropdown: Difference between revisions

Content deleted Content added
Created page with "<noinclude> {{AutoEdit_dropdown|states=Done;Not done;Stuck}} </noinclude> <onlyinclude>{{#vardefine:form|Task}}{{#vardefine:template|task}}{{#vardefine:field|task-status}} <di..."
 
No edit summary
Tag: Manual revert
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{AutoEdit_dropdown|states=Done;Not done;Stuck}}
{{AutoEdit_dropdown|states=Done;Not done;Stuck}}
</noinclude><includeonly>{{#vardefine:form|{{{form|}}}}}{{#vardefine:template|{{{template|{{{form|}}}}}}}}{{#vardefine:field|{{{field|}}}}}{{#vardefine:stage|{{{stage|}}}}}{{#vardefine:target|{{{target|{{FULLPAGENAME}} }}} }}<span class="dropdown cursor-pointer"><span class="btn fox-btn btn-{{{color|purple}}}-b {{#if: {{{no-border|}}}|no-border|}} {{#if: {{{thin|}}}|thin-border|}} {{#if: {{{inline|}}}|inline-button|}} {{#if: {{{condensed|}}}|inline-button-condensed|}} dropdown-toggle" data-toggle="dropdown" aria-expanded="false">{{{currentState|Edit}}}</span>
<ul class="dropdown-menu" role="menu">
{{#arraymap: {{{states|}}}|;|xxx|<li>{{AutoEdit|form={{#var:form}}|template={{#var:template}}|field={{#var:field}}|target={{#var:target}}|state=xxx|text=xxx|stage={{#var:stage}}}}</li>||}}
</ul></span></includeonly>
<noinclude>
<templatedata>
{
"params": {
"currentState": {
"label": "Text for button (defaults for current value)",
"type": "string"
},
"states": {
"label": "The optional values seperated with semicolons",
"example": "Done; Working on this; Stuck",
"type": "string",
"required": true,
"suggested": true
},
"form": {
"label": "The form to use",
"type": "string",
"required": true,
"suggested": true
},
"template": {
"label": "The template",
"type": "wiki-template-name",
"suggested": true
},
"field": {
"label": "The field to change",
"type": "string",
"required": true,
"suggested": true
},
"stage": {},
"target": {},
"color": {},
"no-border": {},
"thin": {},
"inline": {},
"condensed": {}
},
"paramOrder": [
"states",
"form",
"template",
"field",
"currentState",
"stage",
"target",
"color",
"no-border",
"thin",
"inline",
"condensed"
]
}
</templatedata>
</noinclude>
</noinclude>
<onlyinclude>{{#vardefine:form|Task}}{{#vardefine:template|task}}{{#vardefine:field|task-status}}
<div class="dropdown"><span class="fox-btn dropdown-toggle" data-toggle="dropdown" aria-expanded="false">{{{currentState|Edit}}} {{i|angle-down}}</span>
<ul class="dropdown-menu" role="menu" x-placement="bottom-start">
{{#arraymap: {{{states|}}}|;|xxx|<li>{{AutoEdit|form={{#var:form}}|template={{#var:form}}|field={{#var:field}}|target=Target|state=xxx</li>}}||}}
</div></onlyinclude>

Latest revision as of 11:52, 20 September 2022

Edit


No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
The optional values seperated with semicolonsstates

no description

Example
Done; Working on this; Stuck
Stringrequired
The form to useform

no description

Stringrequired
The templatetemplate

no description

Templatesuggested
The field to changefield

no description

Stringrequired
Text for button (defaults for current value)currentState

no description

Stringoptional
stagestage

no description

Unknownoptional
targettarget

no description

Unknownoptional
colorcolor

no description

Unknownoptional
no-borderno-border

no description

Unknownoptional
thinthin

no description

Unknownoptional
inlineinline

no description

Unknownoptional
condensedcondensed

no description

Unknownoptional