Difference between revisions of "Template:Rating"

From Dungeons and Dragons Wiki
Jump to: navigation, search
(updated template is a go. does not support numeric ratings currently (easier to backport this way and those can be added easily enough))
m
 
(31 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{{rating}}}
+
<includeonly>{| style="border-style:solid; border-width:2px; {{#switch:{{{block|}}}
|love={{{!}} style= "border-style:solid; border-width:2px; border-color:#003F87; background-color:#E6D88D; width:100%;"
+
|InsufficientExplanation
{{!}}rowspan="2" width="148px" align="center" {{!}} [[Image:RatedHate.png|{{#if:{{{reason|}}} |148 |74}}px]]
+
|NewVersion
! align="center" style= "font-size: x-large; padding: 0; height: 1.1em; border-color:#E6D88D; background-color: #2=E6D88D; color:#003F87;" {{!}} {{{rater}}} loves this article and rated it a 4 of 4.
+
|RC=border-color:Gray; background-color:Lightgray; color:Gray;
{{!}}-
+
|border-color:#003F87; background-color:#E6D88D;
{{!}}style= "vertical-align: top; border-top: 1px solid; border-color:#003F87;" {{!}} Here's why - {{{reason|They didn't actually write anything here. They could add it by following the [[Template:Rating|directions]], but if they don't hurry the rating will be removed.}}}
+
}}{{#ifeq: {{{reason|}}} | |border-color:Gray; background-color:Lightgray; color:Gray; | }} width:100%;"  
{{!}}}[[Loved::{{{rater|}}}| ]]
+
|rowspan="2" width="148px" align="center"| {{#switch:{{{block|}}}
|like={{{!}} style= "border-style:solid; border-width:2px; border-color:#003F87; background-color:#E6D88D; width:100%;"  
+
|InsufficientExplanation
{{!}} rowspan="2" width="148px" align="center"| [[Image:RatedLike.png|{{#if:{{{reason|}}} |148 |74}}px]]
+
|NewVersion
! align="center" style= "font-size: x-large; padding: 0; height: 1.1em; border-color:#E6D88D; background-color: #2=E6D88D; color:#003F87;" {{!}} {{{rater}}} likes this article and rated it a 3 of 4.
+
|RC=<big>'''Blocked</big><br />[[Image:{{#switch:{{lc:{{{rating}}}}} |dislike=RatedDislike |hate |oppose=RatedOppose |like=RatedLike |love |favor=RatedFavor |neither=RatedNeutral |neutral=RatedNeutral}}.png|74px|link=Project:Rating Articles]]<br /><big>Rating</big>
{{!}}-
+
|{{#ifeq: {{{reason|}}} | |<big>'''Blocked</big><br /> | }}[[Image:{{#switch:{{lc:{{{rating}}}}} |dislike=RatedDislike |hate |oppose=RatedOppose |like=RatedLike |love |favor=RatedFavor |neither=RatedNeutral |neutral=RatedNeutral}}.png|148px|link=Project:Rating Articles]]{{#ifeq: {{{reason|}}} | |<br /><big>Rating</big> | }}
{{!}}style= "vertical-align: top; border-top: 1px solid; border-color:#003F87;" {{!}} Here's why - {{{reason|They didn't actually write anything here. They could add it by following the [[Template:Rating|directions]], but if they don't hurry the rating will be removed.}}}
+
}}
{{!}}}[[Liked::{{{rater|}}}| ]]
+
!align="center" style= "font-size: x-large; padding: 0; height: 1.1em; {{#switch:{{{block|}}}
|neutral={{{!}} style= "border-style:solid; border-width:2px; border-color:#003F87; background-color:#E6D88D; width:100%;"
+
|InsufficientExplanation
{{!}}rowspan="2" width="148px" align="center"| [[Image:RatedNeutral.png|{{#if:{{{reason|}}} |148 |74}}px]]
+
|NewVersion
! align="center" style= "font-size: x-large; padding: 0; height: 1.1em; border-color:#E6D88D; background-color: #2=E6D88D; color:#003F87;" {{!}} {{{rater}}} is neutral on this work, and rated it a 2 of 4.
+
|RC=border-color:Gray; background-color:Lightgray; color:Gray;
{{!}}-
+
|border-color:#003F87; background-color:#E6D88D; color:#003F87;
{{!}}style= "vertical-align: top; border-top: 1px solid; border-color:#003F87;" {{!}} Here's why - {{{reason|They didn't actually write anything here. They could add it by following the [[Template:Rating|directions]], but if they don't hurry the rating will be removed.}}}
+
}}{{#ifeq: {{{reason|}}} | |border-color:Gray; background-color:Lightgray; color:Gray; | }}" |[[User:{{{rater|Unknown}}}|{{{rater|Unknown}}}]] {{#switch: {{lc:{{{rating}}}}} |dislike=dislikes this article and rated it 1 of 4. |hate |oppose=opposes this article and rated it 0 of 4. |like=likes this article and rated it 3 of 4. |love |favor=favors this article and rated it 4 of 4! |neither=is neutral on this article and rated it 2 of 4. |neutral=is neutral on this article and rated it 2 of 4. |needs to review the rating '''[[Template:Rating|directions]]'''.[[Category:Malformed Ratings]]}}
{{!}}}[[Okay::{{{rater|}}}| ]]
+
|-
|neither={{{!}} style= "border-style:solid; border-width:2px; border-color:#003F87; background-color:#E6D88D; width:100%;"
+
| style= "vertical-align: top; border-top: 1px solid; {{#switch:{{{block|}}}
{{!}}rowspan="2" width="148px" align="center"| [[Image:RatedNeutral.png|{{#if:{{{reason|}}} |148 |74}}px]]
+
|InsufficientExplanation
! align="center" style= "font-size: x-large; padding: 0; height: 1.1em; border-color:#E6D88D; background-color: #2=E6D88D; color:#003F87;" {{!}} {{{rater}}} is neutral on this work, and rated it a 2 of 4.
+
|NewVersion
{{!}}-
+
|RC=border-color:Gray; background-color:Lightgray; color:Gray;
{{!}}style= "vertical-align: top; border-top: 1px solid; border-color:#003F87;" {{!}} Here's why - {{{reason|They didn't actually write anything here. They could add it by following the [[Template:Rating|directions]], but if they don't hurry the rating will be removed.}}}
+
|border-color:#003F87;
{{!}}}[[Okay::{{{rater|}}}| ]]
+
}}" | {{#switch: {{{block|}}}
|dislike={{{!}} style= "border-style:solid; border-width:2px; border-color:#003F87; background-color:#E6D88D; width:100%;"
+
|InsufficientExplanation='''''<center>The reason listed does not sufficiently justify the rating, and the rater has not responded to a request for additional information.'''''</center>
{{!}}rowspan="2" width="148px" align="center" {{!}} [[Image:RatedDislike.png|{{#if:{{{reason|}}} |148 |74}}px]]
+
|NewVersion='''''<center>This rating refers to a substantially different version of the article, or concerns mentioned in it have already been addressed.'''''</center>
! align="center" style= "font-size: x-large; padding: 0; height: 1.1em; border-color:#E6D88D; background-color: #2=E6D88D; color:#003F87;" {{!}} {{{rater}}} dislikes this article and rated it a 1 of 4.
+
|RC=<center>'''''Block Reason: This is a legacy rating from before our current ratings scale. While the reasons should be valid, it is not counted in the ratings on the article page because of the inaccurate scale.'''''</center>
{{!}}-
+
|
{{!}}style= "vertical-align: top; border-top: 1px solid; border-color:#003F87;" {{!}} Here's why - {{{reason|They didn't actually write anything here. They could add it by following the [[Template:Rating|directions]], but if they don't hurry the rating will be removed.}}}
+
}}{{#ifeq: {{{reason|}}}| |''They didn't actually write a reason for their rating here. They could add it by adding {{!}}reason=<stuff> to their rating (per the [[Template:Rating{{!}}directions]]), and should do so soon or the rating will be removed.''[[Category:Malformed Ratings]]|{{{reason}}} }}
{{!}}}[[Disliked::{{{rater|}}}| ]]
+
|}{{#switch:{{{block|}}}
|hate={{{!}} style= "border-style:solid; border-width:2px; border-color:#003F87; background-color:#E6D88D; width:100%;"
+
|InsufficientExplanation
{{!}}rowspan="2" width="148px" align="center" {{!}} [[Image:RatedHate.png|{{#if:{{{reason|}}} |148 |74}}px]]  
+
|NewVersion
! align="center" style= "font-size: x-large; padding: 0; height: 1.1em; border-color:#E6D88D; background-color: #2=E6D88D; color:#003F87;" {{!}} {{{rater}}} hates this article and rated it a 0 of 4.
+
|RC=[[UncountedRating::{{{rater}}}| ]]
{{!}}-
+
|{{#ifeq: {{{reason|}}} | |[[UncountedRating::{{{rater}}}| ]] | {{#switch:{{lc:{{{rating}}}}}|dislike=[[Disliked::{{{rater}}}| ]]|hate |oppose=[[Opposed::{{{rater}}}| ]]|like=[[Liked::{{{rater}}}| ]]|love |favor=[[Favored::{{{rater}}}| ]]|neither=[[Neutral::{{{rater}}}| ]]|neutral=[[Neutral::{{{rater}}}| ]]|}} }}
{{!}}style= "vertical-align: top; border-top: 1px solid; border-color:#003F87;" {{!}} Here's why - {{{reason|They didn't actually write anything here. They could add it by following the [[Template:Rating|directions]], but if they don't hurry the rating will be removed.}}}
+
}}{{#if: {{{rater|}}} | |[[Category:Malformed Ratings]]}}
{{!}}}[[Hated::{{{rater|}}}| ]]
+
</includeonly><noinclude>{{documentation}}</noinclude>
|{{{rater}}} tried to enter a rating, but failed to select an appropriate rating= value. They should correct this if possible, or someone should assist them.[[Category:Malformed Ratings]]
 
}}{{#ifeq: {{{OldRating|}}}|True|[[Category:Legacy Rating {{{Rater}}}]]}}</includeonly><noinclude>{{documentation}}</noinclude>
 

Latest revision as of 08:03, 30 January 2015

Template documentation (for the above template, sometimes hidden or invisible)

Parameters[edit]

Parameters
Name Required Description Example
rater Yes Name of user rating article "Tarkisflux", "Havvy", "Ghostwheel"
rating Yes Must be a value of "favor", "like", "neutral", "dislike", or "oppose" only.
reason Yes Justification for rating. This has great flavor and is mechanically sound!
block No A specific value in this field will block the rating from being included. See Dungeons and Dragons Wiki:Rating Articles#Blocking a Rating for more information on the associated policy. "NewVersion", "InsufficientExplanation"

Failure to fill in any of the three required parameters properly will result in the template mocking you.

Examples[edit]

{{Rating |rater=Tarkisflux |rating=like |reason=This is a more open and inclusive process that should result in more rated articles (and can't really result in less).}}
RatedLike.png Tarkisflux likes this article and rated it 3 of 4.
This is a more open and inclusive process that should result in more rated articles (and can't really result in less).


{{Rating |rater=Ghostwheel |rating=dislike |reason=This isn't sufficiently granular.}}
RatedDislike.png Ghostwheel dislikes this article and rated it 1 of 4.
This isn't sufficiently granular.


{{Rating |rater=Aarnott |rating=neutral |reason=I use this for feedback as much as for rating.}}
RatedNeutral.png Aarnott is neutral on this article and rated it 2 of 4.
I use this for feedback as much as for rating.


{{Rating |rater=RandomUser |rating=oppose |reason=This feature is stupid. |block=InsufficientExplanation}}
Blocked
RatedOppose.png
Rating
RandomUser opposes this article and rated it 0 of 4.
The reason listed does not sufficiently justify the rating, and the rater has not responded to a request for additional information.
This feature is stupid.

Visit Template:Rating/doc to edit this text! (How does this work?)