Template:Ratings: Difference between revisions

From Dolphin Emulator Wiki
Jump to navigation Jump to search
(Undo revision 172158 by Lucario (Arbitrarily removing features from "production" templates without discussing the implications first is NOT OK))
(Fix rating links on pages where {{lowercase title}} is included by checking for {{#var:tl_lowercase_title}} before accessing {{PAGENAME}})
Line 1: Line 1:
<includeonly><span style="font-size:0;">{{Ratings/{{{1|{{PAGENAME}}}}}}}</span><span style="white-space:nowrap;">{{#switch:{{Ratings/{{{1|{{PAGENAME}}}}}}}
<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|{{PAGENAME}}}}}}}.png|link=Category:{{Ratings/{{{1|{{PAGENAME}}}}}}} stars (Rating)]]
  | 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:Pages with rating template issues]]}}[[File:Note.svg.png|16px|link={{fullurl:Template:Ratings/{{{1|{{PAGENAME}}}}}|action=edit}}|Edit rating: {{{1|{{PAGENAME}}}}}]]</span></includeonly><noinclude>
  | #default = [[Image:Stars0.png|link=Category:0 stars (Rating)]][[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>

Revision as of 05:18, 17 January 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