Difference between revisions of "Template:Class hat table core"

From Team Fortress Wiki
Jump to: navigation, search
m
(Added support for colxfooter to be an optional parameter: this makes it much faster to create new entries for class hat tables. Accommodated some changes for the multi-class table's core. This has no effect on existing tables, as I tested out.)
 
(One intermediate revision by one other user not shown)
Line 29: Line 29:
 
| col5 = {{#if:{{{col5|}}}|{{Item icon|{{{col5}}}|75px}}| }} | col5style = {{#if:{{{col5|}}}|{{{col5style|}}}|background:none;}}
 
| col5 = {{#if:{{{col5|}}}|{{Item icon|{{{col5}}}|75px}}| }} | col5style = {{#if:{{{col5|}}}|{{{col5style|}}}|background:none;}}
  
| col1footer = {{{col1footer| }}} | col1footerstyle = {{#if:{{{col1footer|}}}|{{{col1footerstyle|}}}|background:none;}}
+
| col1footer = {{#if:{{{col1|}}}|{{{col1footer|{{item link|{{{col1}}}}}}}}|{{{col1footer| }}}}} | col1footerstyle = {{#if:{{{col1footer|}}}|{{{col1footerstyle|}}}|{{#if:{{{col1|}}}|{{{col1footerstyle|}}}|background:none;}}}}
| col2footer = {{{col2footer| }}} | col2footerstyle = {{#if:{{{col2footer|}}}|{{{col2footerstyle|}}}|background:none;}}
+
| col2footer = {{#if:{{{col2|}}}|{{{col2footer|{{item link|{{{col2}}}}}}}}|{{{col2footer| }}}}} | col2footerstyle = {{#if:{{{col2footer|}}}|{{{col2footerstyle|}}}|{{#if:{{{col2|}}}|{{{col2footerstyle|}}}|background:none;}}}}
| col3footer = {{{col3footer| }}} | col3footerstyle = {{#if:{{{col3footer|}}}|{{{col3footerstyle|}}}|background:none;}}
+
| col3footer = {{#if:{{{col3|}}}|{{{col3footer|{{item link|{{{col3}}}}}}}}|{{{col3footer| }}}}} | col3footerstyle = {{#if:{{{col3footer|}}}|{{{col3footerstyle|}}}|{{#if:{{{col3|}}}|{{{col3footerstyle|}}}|background:none;}}}}
| col4footer = {{{col4footer| }}} | col4footerstyle = {{#if:{{{col4footer|}}}|{{{col4footerstyle|}}}|background:none;}}
+
| col4footer = {{#if:{{{col4|}}}|{{{col4footer|{{item link|{{{col4}}}}}}}}|{{{col4footer| }}}}} | col4footerstyle = {{#if:{{{col4footer|}}}|{{{col4footerstyle|}}}|{{#if:{{{col4|}}}|{{{col4footerstyle|}}}|background:none;}}}}
| col5footer = {{{col5footer| }}} | col5footerstyle = {{#if:{{{col5footer|}}}|{{{col5footerstyle|}}}|background:none;}}
+
| col5footer = {{#if:{{{col5|}}}|{{{col5footer|{{item link|{{{col5}}}}}}}}|{{{col5footer| }}}}} | col5footerstyle = {{#if:{{{col5footer|}}}|{{{col5footerstyle|}}}|{{#if:{{{col5|}}}|{{{col5footerstyle|}}}|background:none;}}}}
 
 
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
Essentially {{tl|Navbox with columns}} but with some additional presets. Used in the class hat table templates.
+
{{Documentation}}
{{Template doc}}
+
[[Category:Formatting templates]]
 
 
[[Category:Formatting templates|Class hat table core]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 10:58, 20 July 2024