Difference between revisions of "Template:Rate"

From Wikispooks
Jump to navigation Jump to search
(hmmm)
(t)
Line 49: Line 49:
 
</poem></noinclude><includeonly>__NOCACHE__{{#if: {{{value|}}}|
 
</poem></noinclude><includeonly>__NOCACHE__{{#if: {{{value|}}}|
 
{{#if: {{{page|}}}|
 
{{#if: {{{page|}}}|
{{#ifexist: {{{page}}} |  
+
{{#ifexist: {{{page}}} | {{#switch: {{{value|}}}
{{#switch: {{{value|}}}
 
 
| 0
 
| 0
 
| 1
 
| 1
Line 64: Line 63:
 
|Description2={{EncodeLinks|{{{description|}}}}}}}
 
|Description2={{EncodeLinks|{{{description|}}}}}}}
 
| #default = {{RED|ERROR: Invalid value parameter for [[Template:Rate]]|}}
 
| #default = {{RED|ERROR: Invalid value parameter for [[Template:Rate]]|}}
}}|
+
}}|{{RED|ERROR: Non-existant [[{{{page|}}}]] page parameter for [[Template:Rate]]|}}|
|{{RED|ERROR: Non-existant [[{{{page|}}}]] page parameter for [[Template:Rate]]|}}|
 
 
|{{RED|ERROR: No {{{page|}}} parameter for [[Template:Rate]]|}}
 
|{{RED|ERROR: No {{{page|}}} parameter for [[Template:Rate]]|}}
 
|{{RED|ERROR: No {{{value|}}} parameter for [[Template:Rate]]|}}}}}}}}</includeonly>
 
|{{RED|ERROR: No {{{value|}}} parameter for [[Template:Rate]]|}}}}}}}}</includeonly>

Revision as of 18:14, 25 January 2015

Template:Template Assign values to documents and Wikispooks pages as follows:

5. 5star.png Highly recommended, outstanding pieces of work yielding key insights
4. 4star.png Recommended, highly informative stuff
3. 3star.png Creditable and well written
2. 2star.png Of some interest to some readers
1. 1star.png Uninformative stuff containing next to no useful information
0. 0star.png Disinformation which should be removed from Wikispooks

Usage:
{{Rate
|value = An integer rating from 0-5 (Property:Has value)
|page = An existing pagename, either in the Main: namespace or the Document: namespace (Property:Has target)
|date = When the review was published (Property:Has publicationDate)
|summary = A short (<128 characters) (Property:Has summary)
|description = Longer wikitext review contents (Property:Description2)
}}
Usage example:
{{Rate
|value=5
|page=Document:Fifty Years of the Deep State
|date=2015-01-25
|summary=An excellent and credible summary of the deep state in the USA since the JFK assassination.
|description= I liked it so much, I read it as an [http://www.unwelcomeguests.net/Fifty_Years_of_the_Deep_State audiobook] for a [http://www.unwelcomeguests.net radio show] I produce. Although it is very sparsely referenced, the bibliography at the end is excellent, and everything I've looked into seems to check out.}}
}}