Difference between revisions of "Template:Weekmaps"

From comp.tf
Jump to navigation Jump to search
m (→‎Usage: updated usage)
m (Added second map for ozfortress)
Line 1: Line 1:
 
{| class="mainpage"
 
{| class="mainpage"
! colspan="8" | This Week's Match Maps
+
! colspan="9" | This Week's Match Maps
 
|- class="maps bold"
 
|- class="maps bold"
| class="col2" |[[Ozfortress]] (6v6)
+
| colspan="2" class="col2" |[[Ozfortress]] (6v6)
 
| colspan="2" | [[ETF2L]] (HL)
 
| colspan="2" | [[ETF2L]] (HL)
 
| colspan="2" class="col2" |[[ETF2L]] (6v6)
 
| colspan="2" class="col2" |[[ETF2L]] (6v6)
Line 10: Line 10:
 
|-
 
|-
 
| class="col2" |[[Image:{{{ozfortress6s|offseason}}}.png{{#if:{{ozfortress6s|}}|{{!}}link={{{ozfortress6s|}}}|}}|125px]]
 
| class="col2" |[[Image:{{{ozfortress6s|offseason}}}.png{{#if:{{ozfortress6s|}}|{{!}}link={{{ozfortress6s|}}}|}}|125px]]
 +
| class="col2" | {{#if:{{{ozfortress6s2|}}}|[[Image:{{{ozfortress6s2|offseason}}}.png{{#if:{{ozfortress6s2}}|{{!}}link={{{ozfortress6s2|}}}|}}|125px]]}}
 
| [[Image:{{{etf2lhl|offseason}}}.png{{#if:{{etf2lhl}}|{{!}}link={{{etf2lhl|}}}|}}|125px]]
 
| [[Image:{{{etf2lhl|offseason}}}.png{{#if:{{etf2lhl}}|{{!}}link={{{etf2lhl|}}}|}}|125px]]
 
| {{#if:{{{etf2lhl2|}}}|[[Image:{{{etf2lhl2|offseason}}}.png{{#if:{{etf2lhl2}}|{{!}}link={{{etf2lhl2|}}}|}}|125px]]}}
 
| {{#if:{{{etf2lhl2|}}}|[[Image:{{{etf2lhl2|offseason}}}.png{{#if:{{etf2lhl2}}|{{!}}link={{{etf2lhl2|}}}|}}|125px]]}}
Line 19: Line 20:
 
|- class="top bold"
 
|- class="top bold"
 
| class="col2" |{{#if:{{{ozfortress6s|}}}|{{#ifeq: {{{ozfortress6s}}}|Playoffs|Playoffs|[[{{{ozfortress6s}}}]]}}|Offseason}}
 
| class="col2" |{{#if:{{{ozfortress6s|}}}|{{#ifeq: {{{ozfortress6s}}}|Playoffs|Playoffs|[[{{{ozfortress6s}}}]]}}|Offseason}}
 +
| class="col2" |{{#if:{{{ozfortress6s2|}}}|[[{{{ozfortress6s2}}}]]}}
 
| {{#if:{{{etf2lhl|}}}|{{#ifeq: {{{etf2lhl}}}|Playoffs|Playoffs|[[{{{etf2lhl}}}]]}} |Offseason}}
 
| {{#if:{{{etf2lhl|}}}|{{#ifeq: {{{etf2lhl}}}|Playoffs|Playoffs|[[{{{etf2lhl}}}]]}} |Offseason}}
 
| {{#if:{{{etf2lhl2|}}}|[[{{{etf2lhl2}}}]]}}
 
| {{#if:{{{etf2lhl2|}}}|[[{{{etf2lhl2}}}]]}}
Line 27: Line 29:
 
| {{#if:{{{ugc6s|}}}|{{#ifeq: {{{ugc6s}}}|Playoffs|Playoffs|[[{{{ugc6s}}}]]}}|Offseason}}
 
| {{#if:{{{ugc6s|}}}|{{#ifeq: {{{ugc6s}}}|Playoffs|Playoffs|[[{{{ugc6s}}}]]}}|Offseason}}
 
|- class="top bold"
 
|- class="top bold"
| class="col2" |{{#if:{{{ozfortress6scomment|}}}|<small>{{{ozfortress6scomment}}}</small>}}
+
| colspan="2" class="col2" |{{#if:{{{ozfortress6scomment|}}}|<small>{{{ozfortress6scomment}}}</small>}}
 
| colspan="2" | {{#if:{{{etf2lhlcomment|}}}|<small>{{{etf2lhlcomment}}}</small>}}
 
| colspan="2" | {{#if:{{{etf2lhlcomment|}}}|<small>{{{etf2lhlcomment}}}</small>}}
 
| colspan="2" class="col2" |{{#if:{{{etf2l6scomment|}}}|<small>{{{etf2l6scomment}}}</small>}}
 
| colspan="2" class="col2" |{{#if:{{{etf2l6scomment|}}}|<small>{{{etf2l6scomment}}}</small>}}
Line 45: Line 47:
 
{{Weekmaps
 
{{Weekmaps
 
<!--
 
<!--
  | ozfortress6s =  
+
  | ozfortress6s =
 +
| ozfortress6s2 =
 +
| ozfortress6scomment =  
 
  -->
 
  -->
 
  | etf2lhl = Warmtic
 
  | etf2lhl = Warmtic

Revision as of 14:36, 9 May 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 league automatically linked to the maps page
  • If the league field is absent, Offseason will be displayed by default, but to display leagues in offseason it's better to simply comment out the leagues you want with the <!--league field--> tags
  • If the league is in Playoffs time don't fill the comment fields, simply put Playoffs in the competition field
  • You can also add comments under the map names, using the leaguenamecomment field (e.g. ozfortress6scomment=week 7).

Example:

{{Weekmaps
<!--
 | ozfortress6s =
 | ozfortress6s2 = 
 | ozfortress6scomment = 
 -->
 | etf2lhl = Warmtic
 | etf2lhl2 = Process
 | etf2lhlcomment = Week 2
 | etf2l6s = Playoffs
 | etf2l6s2 = 
 | etf2l6scomment =
<!--
 -->
 | esea = Playoffs
 | eseacomment =
<!--
 -->
 | ugchl = Process
 | ugchlcomment = Week 9
 | ugc6s = Snakewater
 | ugc6scomment = Week 9
<!--
-->
}}

yields

This Week's Match Maps
Ozfortress (6v6) ETF2L (HL) ETF2L (6v6) ESEA (6v6) UGC (HL) UGC (6v6)
Offseason.png Warmtic.png Process.png Playoffs.png Playoffs.png Process.png Snakewater.png
Offseason Warmtic Process Playoffs Playoffs Process Snakewater
Week 2 Week 9 Week 9