Editing Template talk:Proposal check

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 2: Line 2:


Good job on this template! But currently, it does not check whether the proposal has quorum or not. For example, <code><nowiki>{{proposal check|3|0|3}}</nowiki></code> returns "CONSENSUS REACHED" which is misleading because the leading option has less than 4 votes and thus has no quorum. It would be nice to add a condition like "if {{{1}}} < 4, then display NO QUORUM". {{User:Jdtendo/sig}} 02:09, August 31, 2024 (EDT)
Good job on this template! But currently, it does not check whether the proposal has quorum or not. For example, <code><nowiki>{{proposal check|3|0|3}}</nowiki></code> returns "CONSENSUS REACHED" which is misleading because the leading option has less than 4 votes and thus has no quorum. It would be nice to add a condition like "if {{{1}}} < 4, then display NO QUORUM". {{User:Jdtendo/sig}} 02:09, August 31, 2024 (EDT)
I coded it. I also added a check for proposals ending in a tie.
<pre>
<blockquote>{{#ifexpr:{{{1}}} < 4|The first place option must have at least 4 votes, but it has only '''{{{1}}}''' vote{{#ifexpr:{{{1}}}-{{{2}}}>1|s}}. '''{{color|red|NO QUORUM}}'''|
{{#ifexpr:{{{1}}} = {{{2}}}|The proposal ends in a tie. '''{{color|red|CONSENSUS NOT REACHED}}'''|
With a margin of '''{{#expr:{{{1}}}-{{{2}}}}}''' vote{{#ifexpr:{{{1}}}-{{{2}}}>1|s}},
{{#ifexpr:{{{1}}} - {{{2}}} >= 3|
over 50% support is required. '''{{#expr:{{{1}}}/{{{3}}}*100 round 1}}%''' support achieved. '''{{#ifexpr:{{{1}}}/{{{3}}}>0.5|{{color|green|CONSENSUS REACHED}}|{{color|red|CONSENSUS NOT REACHED}}}}'''
|
at least 60% support is required. '''{{#expr:{{{1}}}/{{{3}}}*100 round 1}}%''' support achieved. '''{{#ifexpr:{{{1}}}/{{{3}}}>=0.6|{{color|green|CONSENSUS REACHED}}|{{color|red|CONSENSUS NOT REACHED}}}}'''
}}}}}}</blockquote>
</pre>
{{User:Jdtendo/sig}} 04:41, August 31, 2024 (EDT)

Please note that all contributions to the Super Mario Wiki are considered to be released under the Attribution-ShareAlike 3.0 Unported license (see MarioWiki:Copyrights for details). If you don't want your writing to be edited mercilessly and redistributed at will, then don't submit it here. You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page: