Difference between revisions of "Template:Itemlist/row"
m |
GrampaSwood (talk | contribs) m (test) |
||
Line 1: | Line 1: | ||
{{#switch: {{lc:{{{type}}}}} | {{#switch: {{lc:{{{type}}}}} | ||
| class = | | class = | ||
− | {{!}} width="90px" style="background:#FF9310;" rowspan="{{{rowspan}}}" {{!}} '''{{class link|{{{class}}}|br=yes|color=white}}''' | + | {{!}} width="90px" style="background:{{{class-background|#FF9310}}};" rowspan="{{{rowspan}}}" {{!}} '''{{class link|{{{class}}}|br=yes|color=white}}''' |
{{!}} width="75px" {{#switch: {{lc:{{{grade}}}}}|unique = style="background:#FFD700;"|#default = class="item-grade {{lc:{{{grade}}}}}"}} {{!}} {{item icon|{{{item}}}|75px}} | {{!}} width="75px" {{#switch: {{lc:{{{grade}}}}}|unique = style="background:#FFD700;"|#default = class="item-grade {{lc:{{{grade}}}}}"}} {{!}} {{item icon|{{{item}}}|75px}} | ||
− | {{!}} width="160px" style="background:#FFE8CC;" {{!}} '''{{item link|{{{item}}}}}''' | + | {{!}} width="160px" style="background:{{{name-background|#FFE8CC}}};" {{!}} '''{{item link|{{{item}}}}}''' |
{{!}}- | {{!}}- | ||
| item = | | item = | ||
{{!}} {{#switch: {{lc:{{{grade}}}}}|unique = style="background:#FFD700;"|#default = class="item-grade {{lc:{{{grade}}}}}"}} {{!}} {{item icon|{{{item}}}|75px}} | {{!}} {{#switch: {{lc:{{{grade}}}}}|unique = style="background:#FFD700;"|#default = class="item-grade {{lc:{{{grade}}}}}"}} {{!}} {{item icon|{{{item}}}|75px}} | ||
− | {{!}} style="background:#FFE8CC;" {{!}} '''{{item link|{{{item}}}}}''' | + | {{!}} style="background:{{{name-background|#FFE8CC}}};" {{!}} '''{{item link|{{{item}}}}}''' |
{{!}}- | {{!}}- | ||
}}<noinclude> | }}<noinclude> | ||
{{Doc begin}} | {{Doc begin}} | ||
− | |||
== Parameters == | == Parameters == | ||
For use on {{tl|Itemlist}} | For use on {{tl|Itemlist}} |
Revision as of 18:04, 6 March 2024
Documentation for Itemlist/row
Parameters
For use on {{Itemlist}}
- type
- Accepts "class" or "item", class is the top row, subsequent rows for class items should use "item".
- rowspan
- Rowspawn number, only necessary if type = class.
- class
- Class name, also accepts "All classes", only if type = class.
- grade
- Grade of the item, should be lowercase. Also accepts "unique".
- item
- Item name, for icon + link, in English.
Example
Type = class example:
{{Itemlist/row | type = class | rowspan = 2 | class = Scout | item = Jumping Jester | grade = commando }}
Type = item example:
{{Itemlist/row | type = item | item = Last Laugh | grade = assassin }}