Difference between revisions of "Template:Rate"

From Wikispooks
Jump to navigation Jump to search
(named parameters)
Line 9: Line 9:
 
<poem>
 
<poem>
 
{{Rate
 
{{Rate
|value      = An integer rating from 0-5    ''([[Property:Has value]])''
+
|{{BROWN|value}}       = An integer rating from 0-5    ''([[Property:Has value]])''
|page        = An existing pagename, either in the {{NS|Main}} or the {{NS|Document}}  ''([[Property:Has target]])''
+
|{{BLUE|page}}       = An existing pagename, either in the {{NS|Main}} or the {{NS|Document}}  ''([[Property:Has target]])''
 
|summary    = A short (<128 characters)    ''([[Property:Has summary]])''
 
|summary    = A short (<128 characters)    ''([[Property:Has summary]])''
 
|date        = When the review was published ''([[Property:Has publicationDate]])''
 
|date        = When the review was published ''([[Property:Has publicationDate]])''
 
|description = Longer wikitext review contents
 
|description = Longer wikitext review contents
 
}}
 
}}
</poem>
+
Usage example:
Usage example:<br/>
 
 
{{t|<nowiki>{{Rate
 
{{t|<nowiki>{{Rate
 
|value=5
 
|value=5
Line 22: Line 21:
 
|date=2015-01-25
 
|date=2015-01-25
 
|summary=An excellent and credible summary of the deep state in the USA since the JFK assassination.  
 
|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.}}}}</nowiki>}}</noinclude><includeonly>{{#if: {{{1|}}}|{{#switch: {{{value|}}}
+
|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.}}
 +
}}</nowiki>}}
 +
</poem></noinclude><includeonly>{{#if: {{{1|}}}|{{#switch: {{{value|}}}
 
| 0
 
| 0
 
| 1
 
| 1

Revision as of 14:44, 24 January 2015

Template:Template Usage: All sections are optional.

{{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)
|summary = A short (<128 characters) (Property:Has summary)
|date = When the review was published (Property:Has publicationDate)
|description = Longer wikitext review contents
}}
Usage example:
{{Rate
|value=5
|target=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.}}
}}