Difference between revisions of "Template:Rate"

From Wikispooks
Jump to navigation Jump to search
(test...)
(test...)
Line 18: Line 18:
 
|description={{{3|}}}v<div>[[image:{{{1}}}star.png]]<div>[[{{{2|}}}]]{{#if: <hr/>{{{3|}}}}}</div></div>w
 
|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:31, 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.}}}}