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.)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{Navbox with columns | child  
+
<includeonly>{{Navbox with columns|child
  
 
| colwidth = {{{colwidth|20%}}}
 
| colwidth = {{{colwidth|20%}}}
Line 7: Line 7:
 
| bodystyle = width: 100%; text-align: center; {{{bodystyle|}}}
 
| bodystyle = width: 100%; text-align: center; {{{bodystyle|}}}
  
| colheaderstyle = background: #FFDDAD; text-align: center; line-height: 1em; padding: 0.5em; {{{colheaderstyle|}}}
+
| colheaderstyle = background: #FFBD7E; text-align: center; line-height: 1em; padding: 0.5em; {{{colheaderstyle|}}}
 
| colstyle      = background: #FFDDAD; text-align: center; {{{colstyle|}}}
 
| colstyle      = background: #FFDDAD; text-align: center; {{{colstyle|}}}
 
| colfooterstyle = background: none; font-weight: none; line-height: 1.25em; padding: 0.5em; {{{colfooterstyle|}}}
 
| colfooterstyle = background: none; font-weight: none; line-height: 1.25em; padding: 0.5em; {{{colfooterstyle|}}}
Line 23: Line 23:
 
| col5header = {{{col5header|}}} | col5headerstyle = {{{col5headerstyle|}}}
 
| col5header = {{{col5header|}}} | col5headerstyle = {{{col5headerstyle|}}}
  
| col1 = {{{col1|&nbsp;}}} | col1style = {{#if:{{{col1|}}}|{{{col1style|}}}|background:none;}}
+
| col1 = {{#if:{{{col1|}}}|{{Item icon|{{{col1}}}|75px}}|&nbsp;}} | col1style = {{#if:{{{col1|}}}|{{{col1style|}}}|background:none;}}
| col2 = {{{col2|&nbsp;}}} | col2style = {{#if:{{{col2|}}}|{{{col2style|}}}|background:none;}}
+
| col2 = {{#if:{{{col2|}}}|{{Item icon|{{{col2}}}|75px}}|&nbsp;}} | col2style = {{#if:{{{col2|}}}|{{{col2style|}}}|background:none;}}
| col3 = {{{col3|&nbsp;}}} | col3style = {{#if:{{{col3|}}}|{{{col3style|}}}|background:none;}}
+
| col3 = {{#if:{{{col3|}}}|{{Item icon|{{{col3}}}|75px}}|&nbsp;}} | col3style = {{#if:{{{col3|}}}|{{{col3style|}}}|background:none;}}
| col4 = {{{col4|&nbsp;}}} | col4style = {{#if:{{{col4|}}}|{{{col4style|}}}|background:none;}}
+
| col4 = {{#if:{{{col4|}}}|{{Item icon|{{{col4}}}|75px}}|&nbsp;}} | col4style = {{#if:{{{col4|}}}|{{{col4style|}}}|background:none;}}
| col5 = {{{col5|&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;}}
 
| col2footer = {{{col2footer|&nbsp;}}} | col2footerstyle = {{#if:{{{col2footer|}}}|{{{col2footerstyle|}}}|background:none;}}
 
| col3footer = {{{col3footer|&nbsp;}}} | col3footerstyle = {{#if:{{{col3footer|}}}|{{{col3footerstyle|}}}|background:none;}}
 
| col4footer = {{{col4footer|&nbsp;}}} | col4footerstyle = {{#if:{{{col4footer|}}}|{{{col4footerstyle|}}}|background:none;}}
 
| col5footer = {{{col5footer|&nbsp;}}} | col5footerstyle = {{#if:{{{col5footer|}}}|{{{col5footerstyle|}}}|background:none;}}
 
  
 +
| col1footer = {{#if:{{{col1|}}}|{{{col1footer|{{item link|{{{col1}}}}}}}}|{{{col1footer|&nbsp;}}}}} | col1footerstyle = {{#if:{{{col1footer|}}}|{{{col1footerstyle|}}}|{{#if:{{{col1|}}}|{{{col1footerstyle|}}}|background:none;}}}}
 +
| col2footer = {{#if:{{{col2|}}}|{{{col2footer|{{item link|{{{col2}}}}}}}}|{{{col2footer|&nbsp;}}}}} | col2footerstyle = {{#if:{{{col2footer|}}}|{{{col2footerstyle|}}}|{{#if:{{{col2|}}}|{{{col2footerstyle|}}}|background:none;}}}}
 +
| col3footer = {{#if:{{{col3|}}}|{{{col3footer|{{item link|{{{col3}}}}}}}}|{{{col3footer|&nbsp;}}}}} | col3footerstyle = {{#if:{{{col3footer|}}}|{{{col3footerstyle|}}}|{{#if:{{{col3|}}}|{{{col3footerstyle|}}}|background:none;}}}}
 +
| col4footer = {{#if:{{{col4|}}}|{{{col4footer|{{item link|{{{col4}}}}}}}}|{{{col4footer|&nbsp;}}}}} | col4footerstyle = {{#if:{{{col4footer|}}}|{{{col4footerstyle|}}}|{{#if:{{{col4|}}}|{{{col4footerstyle|}}}|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