Difference between revisions of "Template:Season infobox"

From comp.tf
Jump to navigation Jump to search
(New template)
 
m
 
(16 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
! colspan=2 | {{{shortname}}}
 
! colspan=2 | {{{shortname}}}
 
|-
 
|-
| colspan=2 class="centered" | [[File:{{{image}}}|{{{imagesize|150px}}}]]
+
{{#if:{{{image|}}}| {{!}} colspan=2 class="centered" {{!}} [[File:{{{image}}}{{!}}{{{imagesize|150px}}}]]|}}
 
|-
 
|-
| style="width: 30%" | '''Full name'''
+
| style="width: 40%" | '''Full name'''
 
| {{{fullname}}}
 
| {{{fullname}}}
 
|-
 
|-
| '''Champions'''
+
{{#if:{{{champion|}}} | {{!}} [[Image:Gold icon.png{{!}}20px]] '''Champions'''
| [[{{{champion}}}]]
+
{{!}} [[{{{champion}}}]] |}}
 
|-
 
|-
| '''Runner-up'''
+
{{#if:{{{runnerup|}}} | {{!}} [[Image:Silver icon.png{{!}}20px]] '''Runner-up'''
| [[{{{runnerup}}}]]
+
{{!}} [[{{{runnerup}}}]] |}}
 
|-
 
|-
| '''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'''
{{!}} {{{bestplayer}}}|}}
+
{{!}} [[{{{bestplayer}}}]]|}}
 
|-
 
|-
{{#if:{{{website|}}}|{{!}} colspan=2 class="centered" {{!}} [{{{page}}} Season page] |}}
+
{{#if:{{{page|}}}|{{!}} colspan=2 class="centered" {{!}} [{{{page}}} Webpage] |}}
 
|-
 
|-
| <span class="left">{{#if:{{{previous|}}}|← [[{{{previous}}}|{{{prevlabel}}}]]|}}</span> <span class="right">{{#if:{{{next|}}}|[[{{{next}}}|{{{nextlabel}}}]]|}}</span>
+
| colspan=2 | <div class="left">{{#if:{{{previous|}}}|← [[{{{previous}}}|{{{prevlabel}}}]]|}}</div><div class="right">{{#if:{{{next|}}}|[[{{{next}}}|{{{nextlabel}}}]] |}}</div>
|}
+
|}<!--
 +
 
 +
-->{{#set:
 +
|has id={{{id|{{PAGENAME}}}}}
 +
|Has name={{#if:{{{shortname}}}|{{{shortname}}}|{{{fullname}}}}}
 +
}}<!--
 +
 
 +
----- VARIABLES (used within the prize pool templates) -----
 +
-->{{#vardefine:tournament_name|{{{shortname}}}}}
 
<noinclude>
 
<noinclude>
 
==Usage==
 
==Usage==
Line 30: Line 38:
 
| shortname = ETF2L Season 14
 
| shortname = ETF2L Season 14
 
| fullname = ETF2L 6v6 Season 14 sponsored by Twitch
 
| fullname = ETF2L 6v6 Season 14 sponsored by Twitch
| champions = Epsilon eSports
+
| champion = Epsilon eSports
 
| runnerup = broder
 
| runnerup = broder
 
| third = Team Infused
 
| third = Team Infused
Line 45: Line 53:
 
| shortname = ETF2L Season 14
 
| shortname = ETF2L Season 14
 
| fullname = ETF2L 6v6 Season 14 sponsored by Twitch
 
| fullname = ETF2L 6v6 Season 14 sponsored by Twitch
| champions = Epsilon eSports
+
| champion = Epsilon eSports
 
| runnerup = broder
 
| runnerup = broder
 
| third = Team Infused
 
| third = Team Infused
Line 55: Line 63:
 
| nextlabel = Season 15
 
| nextlabel = Season 15
 
}}
 
}}
 +
 +
[[Category:Infoboxes]]
 
</noinclude>
 
</noinclude>

Latest revision as of 06:30, 4 March 2017

{{{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
Webpage