Difference between revisions of "Template:Rate"

From Wikispooks
Jump to navigation Jump to search
(test...)
(table layout for visual representation)
Line 16: Line 16:
 
|Has value={{{1|}}}
 
|Has value={{{1|}}}
 
|Has target={{{2|}}}
 
|Has target={{{2|}}}
|description={{{3|}}}}}<div>[[image:{{{1}}}star.png|80px|link={{{2|}}}]]<div>[[{{{2|}}}]]{{#if: <hr/>{{{3|}}}}}</div></div>w
+
|description={{{3|}}}}}<table style="border:2; background:grey; border-color:black;"><tr><td>[[image:{{{1}}}star.png|80px|link={{{2|}}}]]</td><td>[[{{{2|}}}]]</td><td>{{{3|}}}</td></table>
 
| #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:40, 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.}}}}