Difference between revisions of "User:Wookipan/Itemlist/row"

From Team Fortress Wiki
Jump to: navigation, search
m (🤷‍♀️)
m (Fine, let's keep it as-is lest we have to do some complex wrapping - naaaah)
(Tag: Undo)
 
Line 2: Line 2:
 
| class =
 
| class =
 
{{!}} width="90px" style="background:{{{class-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" style="position:relative;" {{#switch: {{lc:{{{grade}}}}}|unique = style="background:#FFD700;"|#default = class="item-grade {{lc:{{{grade}}}}}"}} {{!}} {{item icon|{{{item}}}|75px}}
+
{{!}} width="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;">{{Halloween icon state|20px}}</div>}}
 
{{#if:{{{halloween-icon|}}}|<div style="position:absolute;top:2px;right:2px;">{{Halloween icon state|20px}}</div>}}
 
{{!}} width="160px" style="background:{{{name-background|#FFE8CC}}};" {{!}} '''{{item link|{{{item}}}}}'''
 
{{!}} width="160px" style="background:{{{name-background|#FFE8CC}}};" {{!}} '''{{item link|{{{item}}}}}'''
 
{{!}}-
 
{{!}}-
 
| item =
 
| item =
{{!}} style="position:relative;" {{#switch: {{lc:{{{grade}}}}}|unique = style="background:#FFD700;"|#default = 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}}
 
{{!}} style="background:{{{name-background|#FFE8CC}}};" {{!}} '''{{item link|{{{item}}}}}'''
 
{{!}} style="background:{{{name-background|#FFE8CC}}};" {{!}} '''{{item link|{{{item}}}}}'''
 
{{!}}-
 
{{!}}-

Latest revision as of 21:56, 23 March 2024

Documentation for Wookipan/Itemlist/row

Parameters

For use on {{Itemlist}}

type
Acceptsclass or item, with class being the top row, subsequent rows for class items should use item.
rowspan
Rowspawn number. Required if type is set to class.
class
Class name, also accepts the value "All classes", but only if type is set to class.
grade
Grade of the item. Must be lowercase. Also accepts "unique" as a value.
item
Item name, for icon + link, in English.
class-background
Background colour of the column where the class is. Required if type is set to class.
name-background
Background colour of the column where the item name is.
halloween-icon
Optional. Displays the state of the 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
| class-background = #FF9310
}}

type = item example:

{{Itemlist/row
| type = item
| item = Last Laugh
| grade = assassin
| name-background = #FFE8CC
}}