Template:Television Rotten Tomatoes scores/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Television Rotten Tomatoes scores. It contains usage information, categories and other content that is not part of the original template page. |
Usage[edit source]
The purpose of the {{Television Rotten Tomatoes scores}} template is to add a formatted graph to display the Rotten Tomatoes score for each episode of a season of a television series, should they be available. This template accommodates seasons with up to twenty episodes.
Syntax[edit source]
{{Television Rotten Tomatoes scores | title = TEXT | label = TEXT | year = NUMBER | color = COLOR | ref = REFERENCE | align = TEXT | {1–20} = NUMBER }}
Example[edit source]
Code
|
---|
{{Television Rotten Tomatoes scores | title = Game of Thrones | label = Season 1 | year = 2011 | color = #295354 | ref = {{dummy ref}} | 100 | 100 | 80 | 100 | 92 | 100 | 100 | 100 | 100 | 100 }} |
<graph>{"legends":[],"scales":[{"type":"ordinal","name":"x","zero":false,"domain":{"data":"chart","field":"x"},"points":true,"range":"width","nice":true},{"clamp":true,"type":"ordinal","zero":false,"range":"height","nice":true,"name":"y","domainMax":"100","domain":{"data":"chart","field":"y"},"domainMin":"70"},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["#f8f9fa","#295354"]}],"version":2,"marks":[{"type":"group","marks":[{"properties":{"hover":{"stroke":{"value":"red"}},"update":{"stroke":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"stroke":{"scale":"color","field":"series"},"strokeWidth":{"value":2.5}}},"type":"line"},{"properties":{"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"size":{"value":49},"shape":"circle","fill":{"scale":"color","field":"series"}}},"type":"symbol"}],"from":{"data":"chart","transform":[{"groupby":["series"],"type":"facet"}]}}],"height":150,"axes":[{"type":"x","title":"Episode","scale":"x","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","title":"Positive reviews (%)","scale":"y","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":true}],"data":[{"format":{"parse":{"y":"string","x":"string"},"type":"json"},"name":"chart","values":[{"y":"","series":"y1","x":"1"},{"y":"Template:Repeat","series":"y1","x":"2"},{"y":"100","series":"y2","x":"1"},{"y":"100","series":"y2","x":"2"},{"y":"80","series":"y2","x":"3"},{"y":"100","series":"y2","x":"4"},{"y":"92","series":"y2","x":"5"},{"y":"100","series":"y2","x":"6"},{"y":"100","series":"y2","x":"7"},{"y":"100","series":"y2","x":"8"},{"y":"100","series":"y2","x":"9"},{"y":"100","series":"y2","x":"10"},{"y":"","series":"y2","x":"11"},{"y":"","series":"y2","x":"12"},{"y":"","series":"y2","x":"13"},{"y":"","series":"y2","x":"14"},{"y":"","series":"y2","x":"15"},{"y":"","series":"y2","x":"16"},{"y":"","series":"y2","x":"17"},{"y":"","series":"y2","x":"18"},{"y":"","series":"y2","x":"19"},{"y":"","series":"y2","x":"20"}]}],"width":500}</graph>
|
Parameters[edit source]
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | The title of the series that the season being graphed belongs to. | Text | Required |
Label | label | The label of the season, including season/series/cycle/etc, and the number. Format: Season 1 |
Text | Required |
Year | year | The year(s) that the season in question being graphed was aired. | Number | Required |
Color | color | The color for the text and the graph in question. This should conform to the color used for the season in other articles. Format should be in either three- or six-digit hexadecimal format, hash optional. Format: #295354 |
Hex Color | Required |
Reference | ref | The reference for the scores, in regular reference format. Required to verify scores. | Reference | Required |
Align | align | Direction to align the table (left or right). Aligning will float the table, excluding will center the table. | Text | Optional |
Scores | {1–20} | Unnamed/numbered parameters for the scores. One parameter for each episode, and parameters may be included but not set - these will include an entry on the episode axis for the episode, but the entry for the episode will remain empty (i.e. for currently-airing seasons). | Number | Required |
External links[edit source]
- Template:Television Rotten Tomatoes scores/doc at Wikipedia, the free Terran-based encyclopedia that anyone can edit.