Difference between revisions of "Template:Weekmaps"

From comp.tf
Jump to navigation Jump to search
m (Undo revision 13102 by Kaneco (talk))
m (testing playoffs implementation)
Line 23: Line 23:
 
| class="col2" |{{#if:{{{etf2l6s|}}}|[[{{{etf2l6s}}}]]|Offseason}}
 
| class="col2" |{{#if:{{{etf2l6s|}}}|[[{{{etf2l6s}}}]]|Offseason}}
 
| class="col2" |{{#if:{{{etf2l6s2|}}}|[[{{{etf2l6s2}}}]]}}
 
| class="col2" |{{#if:{{{etf2l6s2|}}}|[[{{{etf2l6s2}}}]]}}
| {{#if:{{{esea|}}}|[[{{{esea}}}]]|Offseason}}
+
| {{#if:{{{esea|}}}|{{#ifeq: {{{esea}}}|Playoffs|Playoffs|[[{{{esea}}}]]}}|Offseason}}  
 
| class="col2" |{{#if:{{{ugchl|}}}|[[{{{ugchl}}}]]|Offseason}}
 
| class="col2" |{{#if:{{{ugchl|}}}|[[{{{ugchl}}}]]|Offseason}}
 
| {{#if:{{{ugc6s|}}}|[[{{{ugc6s}}}]]|Offseason}}
 
| {{#if:{{{ugc6s|}}}|[[{{{ugc6s}}}]]|Offseason}}

Revision as of 17:52, 30 March 2015

This Week's Match Maps
Ozfortress (6v6) ETF2L (HL) ETF2L (6v6) ESEA (6v6) UGC (HL) UGC (6v6)
Offseason.png Offseason.png Offseason.png Offseason.png Offseason.png Offseason.png
Offseason Offseason Offseason Offseason Offseason Offseason

Usage

The template displays the current maps in each division, or "offseason" marks if the league field is absent.

Example:

{{Match maps
 | ozfortress6s = cp_gravelpit
 <!-- | etf2lhl
 | etf2lhl2
 | etf2l6s
 | etf2l6s2 -->
 | esea = cp_granary
 | ugchl = pl_upward
 | ugc6s = cp_snakewater
}}

yields

This Week's Match Maps
Ozfortress (6v6) ETF2L (HL) ETF2L (6v6) ESEA (6v6) UGC (HL) UGC (6v6)
Gravel Pit.jpg Offseason.png Offseason.png Granary.jpg Upward.png Cp snakewater.png
cp_gravelpit Offseason Offseason cp_granary pl_upward cp_snakewater


You can also add comments under the map names, using the leaguefieldnamecomment field (e.g. ozfortress6scomment).