Difference between revisions of "Template:Rate"

From Wikispooks
Jump to navigation Jump to search
(Visual representation)
(test...)
Line 16: Line 16:
 
|Has value={{{1|}}}
 
|Has value={{{1|}}}
 
|Has target={{{2|}}}
 
|Has target={{{2|}}}
|description={{{3|}}}<div>[[image:{{{1}}}star.png]]<div>[[{{{2|}}}]]{{#if: <hr/>{{{3|}}}}}</div></div>}}
+
|description={{{3|}}}v<div>[[image:{{{1}}}star.png]]<div>[[{{{2|}}}]]{{#if: <hr/>{{{3|}}}}}</div></div>w
 
| #default = {{RED|ERROR: Incorrect parameter #1 supplied for [[Template:Rate]]|}}
 
| #default = {{RED|ERROR: Incorrect parameter #1 supplied for [[Template:Rate]]|}}
 
}}|{{RED|ERROR: No parameters supplied for [[Template:Rate]]|}}}}</includeonly>
 
}}|{{RED|ERROR: No parameters supplied for [[Template:Rate]]|}}}}</includeonly>

Revision as of 13:28, 24 January 2015

This template is for users to rate documents.
It should be placed on users' own pages. It takes three parameters:

  1. An integer rating from 0-5
  2. An existing pagename in the Document: namespace
  3. (Optional) A plaintext review

Usage example:
{{Rate|5|Document:Fifty Years of the Deep State|An excellent summary of the deep state in the USA. I liked it so much, I read it as an audiobook for a radio show I produce. Although it is only sparsely referenced, the bibliography at the end is excellent, and everything I've looked into seems to check out.}}}}