Difference between revisions of "Template:Vote"

From GURaaS Developer Community
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:


{{#if:{{{Stars|}}}|<tr>
{{#ifeq:{{{Single|}}}|{{{Single}}}|<vote />|<vote type=1 />}}
<vote />
    </tr>}}


<noinclude>
<noinclude>
Line 8: Line 6:
{
{
"params": {
"params": {
"Stars": {
"Single": {
"description": "When enabled, the voting will be star based (1-5)",
"description": "When removed, the voting will be star based (1-5)",
"type": "boolean"
"autovalue": "",
"suggested": true
}
}
},
},
"description": "Option for adding a page voting element to the page",
"description": "Option for adding a page voting element to the page",
"paramOrder": [
"paramOrder": [
"Stars"
"Single"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 12:11, 15 April 2019

<vote type=1 />


Option for adding a page voting element to the page

Template parameters

ParameterDescriptionTypeStatus
SingleSingle

When removed, the voting will be star based (1-5)

Auto value
Unknownsuggested