Difference between revisions of "Template:Season infobox"

From comp.tf
Jump to navigation Jump to search
(Adding if conditions)
Line 8: Line 8:
 
| {{{fullname}}}
 
| {{{fullname}}}
 
|-
 
|-
| [[Image:Gold icon.png|20px]] '''Champions'''
+
{{#if:{{{champion|}}} | {{!}} [[Image:Gold icon.png{{!}}20px]] '''Champions'''
| [[{{{champion}}}]]
+
{{!}} [[{{{champion}}}]] |}}
 
|-
 
|-
| [[Image:Silver icon.png|20px]] '''Runner-up'''
+
{{#if:{{{runnerup|}}} | {{!}} [[Image:Silver icon.png{{!}}20px]] '''Runner-up'''
| [[{{{runnerup}}}]]
+
{{!}} [[{{{runnerup}}}]] |}}
 
|-
 
|-
| [[Image:Bronze icon.png|20px]] '''Third place'''
+
{{#if:{{{third|}}} | {{!}} [[Image:Bronze icon.png{{!}}20px]] '''Third place'''
| [[{{{third}}}]]
+
{{!}} [[{{{third}}}]] |}}
 
|-
 
|-
 
{{#if:{{{bestplayer|}}}|{{!}} '''Best Player of the Season'''
 
{{#if:{{{bestplayer|}}}|{{!}} '''Best Player of the Season'''

Revision as of 20:48, 1 August 2013

{{{shortname}}}
Full name {{{fullname}}}

Usage

{{Season infobox
| shortname = ETF2L Season 14
| fullname = ETF2L 6v6 Season 14 sponsored by Twitch
| champion = Epsilon eSports
| runnerup = broder
| third = Team Infused
| bestplayer = schocky
| page = http://etf2l.org/etf2l/archives/170/
| previous = ETF2L 6v6 Season 13
| prevlabel = Season 13
| next = ETF2L 6v6 Season 15
| nextlabel = Season 15
}}

yields

ETF2L Season 14
Full name ETF2L 6v6 Season 14 sponsored by Twitch
Gold icon.png Champions Epsilon eSports
Silver icon.png Runner-up broder
Bronze icon.png Third place Team Infused
Best Player of the Season schocky
Season page