Difference between revisions of "Template:Rate"

From Wikispooks
Jump to navigation Jump to search
(table layout for visual representation)
(move visual representation elsewhere)
Line 2: Line 2:
 
It should be placed on users' own pages. It takes three parameters:
 
It should be placed on users' own pages. It takes three parameters:
 
# An integer rating from 0-5
 
# An integer rating from 0-5
# An existing pagename in the {{NS|Document}}
+
# An existing pagename, either in the {{NS|Main}} or the {{NS|Document}}
 
# (Optional) A plaintext review
 
# (Optional) A plaintext review
  
 
Usage example:<br/>
 
Usage example:<br/>
{{t|<nowiki>{{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.}}}}</nowiki>}}</noinclude><includeonly>{{#if: {{{1|}}}|{{#switch: {{{1|}}}
+
{{t|<nowiki>{{Rate|5|Document:Fifty Years of the Deep State|2015-01-25|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.}}}}</nowiki>}}</noinclude><includeonly>{{#if: {{{1|}}}|{{#switch: {{{1|}}}
 
| 0
 
| 0
 
| 1
 
| 1
Line 16: Line 16:
 
|Has value={{{1|}}}
 
|Has value={{{1|}}}
 
|Has target={{{2|}}}
 
|Has target={{{2|}}}
|description={{{3|}}}}}<table style="border:2; background:grey; border-color:black; border-collapse: collapse;"><tr><td align="center">[[image:{{{1}}}star.png|80px|link={{{2|}}}]]<br/>[[{{{2|}}}]]</td><td>{{{3|}}}</td></table>
+
|Has publicationDate={{{3|}}}}}
 +
|description={{{4|}}}}}
 
| #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:59, 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, either in the Main: namespace or the Document: namespace
  3. (Optional) A plaintext review

Usage example:
{{Rate|5|Document:Fifty Years of the Deep State|2015-01-25|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.}}}}