Difference between revisions of "Template:Itemlist/row"
GrampaSwood (talk | contribs) m |
m |
||
Line 1: | Line 1: | ||
− | {{#switch: {{{type}}} | + | {{#switch: {{lc:{{{type}}}}} |
| class = | | class = | ||
{{!}} width="90px" style="background:#FF9310;" rowspan="{{{rowspan}}}" {{!}} '''{{class link|{{{class}}}|br=yes|color=white}}''' | {{!}} width="90px" style="background:#FF9310;" rowspan="{{{rowspan}}}" {{!}} '''{{class link|{{{class}}}|br=yes|color=white}}''' | ||
− | {{!}} width="75px" {{#switch: {{{grade}}}|unique = style="background:#FFD700;"|#default = class="item-grade {{{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:#FFE8CC;" {{!}} '''{{item link|{{{item}}}}}''' | ||
{{!}}- | {{!}}- | ||
| item = | | item = | ||
− | {{!}} {{#switch: {{{grade}}}|unique = style="background:#FFD700;"|#default = class="item-grade {{{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:#FFE8CC;" {{!}} '''{{item link|{{{item}}}}}''' | ||
{{!}}- | {{!}}- |
Revision as of 20:46, 11 October 2023
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 }}