Difference between revisions of "Template:Proposal"

From Nookipedia, the Animal Crossing wiki
(Template will now only color percentage if a value has been entered, otherwise it will be gray.)
(Correcting an issue where template would not properly show default text.)
Line 21: Line 21:
 
{{!}}colspan=2 style="border-bottom: 1px solid #ffdd66; padding-bottom:4px;"{{!}}
 
{{!}}colspan=2 style="border-bottom: 1px solid #ffdd66; padding-bottom:4px;"{{!}}
 
{{!-}}
 
{{!-}}
{{!}} '''Result:''' ('''<font color="{{#if:{{{percent|}}}|{{#ifexpr:{{{percent|0}}}>65|green|red}}|gray}}">{{{percent|??}}}%</font>''')
+
{{!}} '''Result:''' ('''<font color="{{#if:{{{percent|}}}|{{#ifexpr:{{{percent|0}}}>65|green|red}}|gray}}">{{#if:{{{percent|}}}|{{{percent|}}}|??}}%</font>''')
{{!}} {{{result|Unknown}}}. {{#ifeq:{{lc:{{{result|<noinclude>Passed</noinclude>}}}}}|passed|The proposal was enacted by {{{staffsig|{{c|<Staff signature here>}}}}}.}}
+
{{!}} {{#if:{{{result|}}}|{{{result|}}}|To be determined}}. {{#ifeq:{{lc:{{{result|<noinclude>Passed</noinclude>}}}}}|passed|The proposal was enacted by {{{staffsig|{{c|<Staff signature here>}}}}}.}}
 
{{!)}}
 
{{!)}}
 
<div style="float:right; padding-right:16px; margin-top:-10px;">
 
<div style="float:right; padding-right:16px; margin-top:-10px;">

Revision as of 23:28, December 16, 2021

Proposal: Proposal title/summary.
Proposal description goes here.
Comments:
  • Comment1
  • Comment2
  • Comment3
Votes:
  • Vote1
  • Vote2
  • Vote3
Result: (??%) To be determined. The proposal was enacted by <Staff signature here>.

Voting on this proposal has ended. (refresh)


Template documentation (view)


Notes

  • If a value is given for the title parameter, the template will properly display, otherwise it will produce the text: "There are no current proposals at this time."
  • This template auto-categorizes pages it is placed on into the administrative category Active proposals. This allows for proper functionality of the {{ProposalAlert}} template.

Parameters

  • title = Short, 1 sentence description of proposal.
  • description = Additional proposal details/explanation.
  • comments = User commentary on proposal.
  • votes = User votes on proposal (Support Support or Oppose Oppose + signature ~~~~).

For administrative use only

  • percent = Proposal support percentage.
  • result = Proposal result (Passed or Failed).
  • staffsig = The signature ~~~~ of the staff member who enacted the proposal.
  • year = The year voting closes.
  • month = The month voting closes.
  • day = The day voting closes.
  • hour = The hour voting closes.
  • minute = The minute voting closes.

See also