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

From Team Fortress Wiki
Jump to: navigation, search
m (Let's try this one)
(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.)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{Navbox with columns | child  
+
<includeonly>{{Navbox with columns|child
  
 
| colwidth = {{{colwidth|20%}}}
 
| colwidth = {{{colwidth|20%}}}
Line 29: Line 29:
 
| col5 = {{#if:{{{col5|}}}|{{Item icon|{{{col5}}}|75px}}|&nbsp;}} | col5style = {{#if:{{{col5|}}}|{{{col5style|}}}|background:none;}}
 
| col5 = {{#if:{{{col5|}}}|{{Item icon|{{{col5}}}|75px}}|&nbsp;}} | col5style = {{#if:{{{col5|}}}|{{{col5style|}}}|background:none;}}
  
| col1footer = {{{col1footer|&nbsp;}}} | col1footerstyle = {{#if:{{{col1footer|}}}|{{{col1footerstyle|}}}|background:none;}}
+
| col1footer = {{#if:{{{col1|}}}|{{{col1footer|{{item link|{{{col1}}}}}}}}|{{{col1footer|&nbsp;}}}}} | col1footerstyle = {{#if:{{{col1footer|}}}|{{{col1footerstyle|}}}|{{#if:{{{col1|}}}|{{{col1footerstyle|}}}|background:none;}}}}
| col2footer = {{{col2footer|&nbsp;}}} | col2footerstyle = {{#if:{{{col2footer|}}}|{{{col2footerstyle|}}}|background:none;}}
+
| col2footer = {{#if:{{{col2|}}}|{{{col2footer|{{item link|{{{col2}}}}}}}}|{{{col2footer|&nbsp;}}}}} | col2footerstyle = {{#if:{{{col2footer|}}}|{{{col2footerstyle|}}}|{{#if:{{{col2|}}}|{{{col2footerstyle|}}}|background:none;}}}}
| col3footer = {{{col3footer|&nbsp;}}} | col3footerstyle = {{#if:{{{col3footer|}}}|{{{col3footerstyle|}}}|background:none;}}
+
| col3footer = {{#if:{{{col3|}}}|{{{col3footer|{{item link|{{{col3}}}}}}}}|{{{col3footer|&nbsp;}}}}} | col3footerstyle = {{#if:{{{col3footer|}}}|{{{col3footerstyle|}}}|{{#if:{{{col3|}}}|{{{col3footerstyle|}}}|background:none;}}}}
| col4footer = {{{col4footer|&nbsp;}}} | col4footerstyle = {{#if:{{{col4footer|}}}|{{{col4footerstyle|}}}|background:none;}}
+
| col4footer = {{#if:{{{col4|}}}|{{{col4footer|{{item link|{{{col4}}}}}}}}|{{{col4footer|&nbsp;}}}}} | col4footerstyle = {{#if:{{{col4footer|}}}|{{{col4footerstyle|}}}|{{#if:{{{col4|}}}|{{{col4footerstyle|}}}|background:none;}}}}
| col5footer = {{{col5footer|&nbsp;}}} | col5footerstyle = {{#if:{{{col5footer|}}}|{{{col5footerstyle|}}}|background:none;}}
+
| col5footer = {{#if:{{{col5|}}}|{{{col5footer|{{item link|{{{col5}}}}}}}}|{{{col5footer|&nbsp;}}}}} | 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}}
 
+
[[Category:Formatting templates]]
{{Class hat table list}}
 
 
 
[[Category:Formatting templates|Class hat table core]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 10:58, 20 July 2024