Difference between revisions of "Djonni/Votes"

From GodWiki
Jump to: navigation, search
(Now supports accepted, rejected and reviewing status, and all nowrapped.)
(Tags: Mobile edit, Mobile web edit)
m (categorized)
(Tags: Mobile edit, Mobile web edit)
 
Line 36: Line 36:
  
 
Note the <code>:</code> colon at the beginning. This is required, as this isn't in the <code>Template</code> namespace.
 
Note the <code>:</code> colon at the beginning. This is required, as this isn't in the <code>Template</code> namespace.
}}</noinclude>
+
}}[[Category : Templates ]]</noinclude>

Latest revision as of 01:08, 18 February 2020

📚 Documentation

Quick and dirty template for displaying a formatted ideabox vote summary on my (or your) user page.

Parameters can be unnamed in this order:

  1. yes
  2. no
  3. dupe
  4. er

Or named with the above names in any order. Omitted or blank parameters will be ignored. Use 0 or - or any non-whitespace character to force a vote type to be rendered.

In addition, the |status= parameter can be set to 'accepted, rejected, or reviewing. If not specified, |status=accepted is the default.

Examples:

{{:Djonni/Votes|1|2|3|4}}  1   2   3   4 
{{:Djonni/Votes|1|2|3|4| status=rejected}}  1   2   3   4 
{{:Djonni/Votes|1|2|3|4| status=reviewing}}  1   2   3   4 
{{:Djonni/Votes|1|2|-|4}}  1   2   -   4 
{{:Djonni/Votes|1|2}}  1   2 
{{:Djonni/Votes||||4}}  4 
{{:Djonni/Votes|er=4}}  4 
Note the : colon at the beginning. This is required, as this isn't in the Template namespace.