Template:Album ratings/doc: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
 
No edit summary
Line 66: Line 66:
:; ''rev#Score''
:; ''rev#Score''
:: the rating given by the reviewer, goes from rev1Score to rev12Score
:: the rating given by the reviewer, goes from rev1Score to rev12Score
All of the following fields are optional:
:; ''title''
:: can be used to provide a custom title for the table, otherwise, it will default to "Professional ratings".
:; ''subtitle''
:: used to add additional text before the collapsible section.  This is necessary to add if want a longer title, as long titles via the "title" parameter will not center correctly.
:; ''state''
:# '''<code>collapsed</code>'''&nbsp;&nbsp;–&nbsp;&nbsp;the table will be collapsed (hidden) by default. This is useful for very long tables.
:# '''<code>autocollapse</code>'''&nbsp;&nbsp;–&nbsp;&nbsp;the table will start out collapsed if there are two or more tables on the same page that use other collapsible tables. Otherwise, the table will be expanded. For the technically minded, see [[MediaWiki:Common.js]].
:# '''<code>plain</code>'''&nbsp;&nbsp;–&nbsp;&nbsp;the table will always be expanded and the [hide]/[show] link on the right will not be displayed.
:# If set to blank, the table will always start out in an expanded state.
:; ''width''
:: sets the width of the table; default is 23em.


==Code==
==Code==
Line 85: Line 71:
<pre>
<pre>
{{Album ratings
{{Album ratings
| title =
| type = See [[Template:Infobox album#Type]]
| subtitle =
| state =
<!-- Reviewers -->
<!-- Reviewers -->
| rev1 =
| rev1 =
Anonymous user

Navigation menu