Difference between revisions of "User:Wookipan/Itemlist/row"
(Created page with "{{#switch: {{lc:{{{type}}}}} | class = {{!}} width="90px" style="background:#FF9310;" rowspan="{{{rowspan}}}" {{!}} '''{{class link|{{{class}}}|br=yes|color=white}}''' {{!}} w...") |
m |
||
Line 3: | Line 3: | ||
{{!}} 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: {{lc:{{{grade}}}}}|unique = style="position:relative;background:#FFD700;"|#default = class="item-grade {{lc:{{{grade}}}}}"}} {{!}} {{item icon|{{{item}}}|75px}} | {{!}} width="75px" {{#switch: {{lc:{{{grade}}}}}|unique = style="position:relative;background:#FFD700;"|#default = class="item-grade {{lc:{{{grade}}}}}"}} {{!}} {{item icon|{{{item}}}|75px}} | ||
− | {{#if:{{{halloween-icon|}}}|<div style="position:absolute;top:2px;right:2px;">{{ | + | {{#if:{{{halloween-icon|}}}|<div style="position:absolute;top:2px;right:2px;">{{Template:Halloween icon state|20px}}</div>}} |
{{!}} width="160px" style="background:#FFE8CC;" {{!}} '''{{item link|{{{item}}}}}''' | {{!}} width="160px" style="background:#FFE8CC;" {{!}} '''{{item link|{{{item}}}}}''' | ||
{{!}}- | {{!}}- | ||
| item = | | item = | ||
{{!}} {{#switch: {{lc:{{{grade}}}}}|unique = style="position:relative;background:#FFD700;"|#default = style="position:relative;" class="item-grade {{lc:{{{grade}}}}}"}} {{!}} {{item icon|{{{item}}}|75px}} | {{!}} {{#switch: {{lc:{{{grade}}}}}|unique = style="position:relative;background:#FFD700;"|#default = style="position:relative;" class="item-grade {{lc:{{{grade}}}}}"}} {{!}} {{item icon|{{{item}}}|75px}} | ||
− | {{#if:{{{halloween-icon|}}}|<div style="position:absolute;top:2px;right:2px;">{{ | + | {{#if:{{{halloween-icon|}}}|<div style="position:absolute;top:2px;right:2px;">{{Template:Halloween icon state|20px}}</div>}} |
{{!}} style="background:#FFE8CC;" {{!}} '''{{item link|{{{item}}}}}''' | {{!}} style="background:#FFE8CC;" {{!}} '''{{item link|{{{item}}}}}''' | ||
{{!}}- | {{!}}- |
Revision as of 22:26, 21 March 2024
Documentation for Wookipan/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.
- halloween-icon
- Halloween icon for use on holiday-restricted items. Set to
halloween-icon = yes
.
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 }}