Template:Ratings: Difference between revisions

From Dolphin Emulator Wiki
Jump to navigation Jump to search
(change edit link to actually edit by default, and preload "0" for non-existent ratings)
mNo edit summary
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><span style="white-space:nowrap;">{{rating|{{Ratings/{{{name|{{PAGENAME}}}}}}}}}[[File:Note.svg.png|16px|link={{fullurl:Template:Ratings/{{{name|{{PAGENAME}}}}}|action=edit&preload=Template:Ratings/preload}}|Edit rating: {{{name|{{PAGENAME}}}}}]]</span></includeonly><noinclude>
<includeonly><span style="font-size:0;">{{Ratings/{{{1|{{#var:tl_lowercase_title|{{PAGENAME}}}}}}}}}</span><span style="white-space:nowrap;">{{#switch:{{Ratings/{{{1|{{#var:tl_lowercase_title|{{PAGENAME}}}}}}}}}
| 0|1|2|3|4|5 = [[Image:Stars{{Ratings/{{{1|{{#var:tl_lowercase_title|{{PAGENAME}}}}}}}}}.png|link=Category:{{Ratings/{{{1|{{#var:tl_lowercase_title|{{PAGENAME}}}}}}}}} stars (Rating)]]
| #default = [[Image:Stars0.png|link=Category:0 stars (Rating)]]{{{category|[[Category:Pages with rating template issues]]}}}}}[[File:Note.svg.png|16px|link={{fullurl:Template:Ratings/{{{1|{{#var:tl_lowercase_title|{{PAGENAME}}}}}}}|action=edit}}|Edit rating: {{{1|{{#var:tl_lowercase_title|{{PAGENAME}}}}}}}]]</span></includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 04:40, 12 February 2022

[edit] [purge] Template documentation

This template is used to display the compatibility rating of any game. It is commonly used on Dolphin compatibility lists such as compatibility list of Wii titles. This template will be retrieved automatically into each game page by their Template:Infobox VG. To edit the rating of any game, simply click the small notepad icon (Note.svg.png) next to the stars.

Example

{{ratings|Super Mario Galaxy}}

Produces:

4Stars4.pngEdit rating: Super Mario Galaxy