Difference between revisions of "Template:Weekmaps"

From comp.tf
Jump to navigation Jump to search
m (Fix)
m
Line 25: Line 25:
 
  | class="col2" style="border-right: 1px solid lightgray;" | [[Image:{{{etf2lhl}}}{{#if:{{{etf2lhl2}}}|, {{{etf2lhl2}}}}}.png{{#if:{{etf2lhl}}|{{!}}link={{#ifexist:{{{etf2lhl}}}|{{{etf2lhl|}}}}}|}}|130px]]
 
  | class="col2" style="border-right: 1px solid lightgray;" | [[Image:{{{etf2lhl}}}{{#if:{{{etf2lhl2}}}|, {{{etf2lhl2}}}}}.png{{#if:{{etf2lhl}}|{{!}}link={{#ifexist:{{{etf2lhl}}}|{{{etf2lhl|}}}}}|}}|130px]]
 
|- class="top bold"
 
|- class="top bold"
  | class="col2" style="border-left: 1px solid lightgray; border-right: 1px solid lightgray;" | {{#if:{{{ugc4s|}}}|{{#ifeq: {{{ugc4s}}}|Playoffs|Playoffs|[[{{{ugc4s}}}]]}}|Offseason}}
+
  | class="col2" style="border-left: 1px solid lightgray; border-right: 1px solid lightgray;" | {{#if:{{{ugc4s|}}}|{{#ifeq: {{{ugc4s}}}|Playoffs|Playoffs|{{nrl|{{{ugc4s}}}}}}}|Offseason}}
  | style="border-left: 1px solid lightgray;" | {{#if:{{{ugc6s|}}}|{{#ifeq: {{{ugc6s}}}|Playoffs|Playoffs|[[{{{ugc6s}}}]]}}|Offseason}}
+
  | style="border-left: 1px solid lightgray;" | {{#if:{{{ugc6s|}}}|{{#ifeq: {{{ugc6s}}}|Playoffs|Playoffs|{{nrl|{{{ugc6s}}}}}}}|Offseason}}
  | class="col2" | {{#if:{{{etf2l6s|}}}|{{#ifeq: {{{etf2l6s}}}|Playoffs|Playoffs|[[{{{etf2l6s}}}]]}}|Offseason}}{{#if:{{{etf2l6s2|}}}|, [[{{{etf2l6s2}}}]]}}
+
  | class="col2" | {{#if:{{{etf2l6s|}}}|{{#ifeq: {{{etf2l6s}}}|Playoffs|Playoffs|{{nrl|{{{etf2l6s}}}}}}}|Offseason}}{{#if:{{{etf2l6s2|}}}|, {{nrl|{{{etf2l6s2}}}}}}}
  | {{#if:{{{esea6s|}}}|{{#ifeq: {{{esea6s}}}|Playoffs|Playoffs|[[{{{esea6s}}}]]}}|Offseason}}  
+
  | {{#if:{{{esea6s|}}}|{{#ifeq: {{{esea6s}}}|Playoffs|Playoffs|{{nrl|{{{esea6s}}}}}}}|Offseason}}  
  | class="col2" | {{#if:{{{ozf6s|}}}|{{#ifeq: {{{ozf6s}}}|Playoffs|Playoffs|[[{{{ozf6s}}}]]}}|Offseason}}{{#if:{{{ozf6s2|}}}|, [[{{{ozf6s2}}}]]}}
+
  | class="col2" | {{#if:{{{ozf6s|}}}|{{#ifeq: {{{ozf6s}}}|Playoffs|Playoffs|{{nrl|{{{ozf6s}}}}}}}|Offseason}}{{#if:{{{ozf6s2|}}}|, {{nrl|{{{ozf6s2}}}}}}}
  | style="border-left: 1px solid lightgray;" | {{#if:{{{ugchl|}}}|{{#ifeq: {{{ugchl}}}|Playoffs|Playoffs|[[{{{ugchl}}}]]}}|Offseason}}
+
  | style="border-left: 1px solid lightgray;" | {{#if:{{{ugchl|}}}|{{#ifeq: {{{ugchl}}}|Playoffs|Playoffs|{{nrl|{{{ugchl}}}}}}}|Offseason}}
  | class="col2" style="border-right: 1px solid lightgray;" | {{#if:{{{etf2lhl|}}}|{{#ifeq: {{{etf2lhl}}}|Playoffs|Playoffs|[[{{{etf2lhl}}}]]}} |Offseason}}{{#if:{{{etf2lhl2|}}}|, [[{{{etf2lhl2}}}]]}}
+
  | class="col2" style="border-right: 1px solid lightgray;" | {{#if:{{{etf2lhl|}}}|{{#ifeq: {{{etf2lhl}}}|Playoffs|Playoffs|{{nrl|{{{etf2lhl}}}}}}} |Offseason}}{{#if:{{{etf2lhl2|}}}|, {{nrl|{{{etf2lhl2}}}}}}}
 
|- class="top bold"
 
|- class="top bold"
 
  | class="col2" style="border-left: 1px solid lightgray; border-right: 1px solid lightgray; border-bottom: 1px solid lightgray;" | {{#if:{{{ugc4scomment|}}}|<small>{{{ugc4scomment}}}</small>}}
 
  | class="col2" style="border-left: 1px solid lightgray; border-right: 1px solid lightgray; border-bottom: 1px solid lightgray;" | {{#if:{{{ugc4scomment|}}}|<small>{{{ugc4scomment}}}</small>}}
Line 44: Line 44:
 
== Usage ==
 
== Usage ==
 
* The template displays the current maps in each league automatically linked to the maps page
 
* 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 <code><nowiki><!--</nowiki><em>league field</em>--></code> tags
+
* Special parameters that are not map names are <code>Playoffs</code> and <code>Offseason</code>
* 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 <code><em>leaguename</em>comment</code> field (e.g. <code>ozf6scomment=week 7</code>).
 
* You can also add comments under the map names, using the <code><em>leaguename</em>comment</code> field (e.g. <code>ozf6scomment=week 7</code>).
  
Line 53: Line 52:
 
  | ugc4s = Mojave
 
  | ugc4s = Mojave
 
  | ugc4scomment = Week 9
 
  | ugc4scomment = Week 9
<!--
+
 
  | ugc6s =
+
  | ugc6s = Offseason
 
  | ugc6scomment =
 
  | ugc6scomment =
-->
+
 
 
  | etf2l6s = Snakewater
 
  | etf2l6s = Snakewater
 
  | etf2l6s2 = Sunshine
 
  | etf2l6s2 = Sunshine
Line 62: Line 61:
  
 
  | esea6s = Playoffs
 
  | esea6s = Playoffs
  | esea6scomment =  
+
  | esea6scomment =
<!--
+
 
  | ozf6s =
+
  | ozf6s = Offseason
 
  | ozf6s2 =
 
  | ozf6s2 =
 
  | ozf6scomment =
 
  | ozf6scomment =
  
  | ugchl =
+
  | ugchl = Gullywash
  | ugchlcomment =
+
  | ugchlcomment = Playoffs Week 2
-->
 
 
  | etf2lhl = Steel
 
  | etf2lhl = Steel
 
  | etf2lhl2 =
 
  | etf2lhl2 =
Line 77: Line 75:
 
</pre>
 
</pre>
 
'''Will yield:'''
 
'''Will yield:'''
 
 
{{Weekmaps
 
{{Weekmaps
 
  | ugc4s = Mojave
 
  | ugc4s = Mojave
 
  | ugc4scomment = Week 9
 
  | ugc4scomment = Week 9
<!--
+
 
  | ugc6s =
+
  | ugc6s = Offseason
 
  | ugc6scomment =
 
  | ugc6scomment =
-->
+
 
 
  | etf2l6s = Snakewater
 
  | etf2l6s = Snakewater
 
  | etf2l6s2 = Sunshine
 
  | etf2l6s2 = Sunshine
Line 90: Line 87:
  
 
  | esea6s = Playoffs
 
  | esea6s = Playoffs
  | esea6scomment =  
+
  | esea6scomment =
<!--
+
 
  | ozf6s =
+
  | ozf6s = Offseason
 
  | ozf6s2 =
 
  | ozf6s2 =
 
  | ozf6scomment =
 
  | ozf6scomment =
  
  | ugchl =
+
  | ugchl = Gullywash
  | ugchlcomment =
+
  | ugchlcomment = Playoffs Week 2
-->
 
 
  | etf2lhl = Steel
 
  | etf2lhl = Steel
 
  | etf2lhl2 =
 
  | etf2lhl2 =

Revision as of 07:01, 26 March 2016

[edit] This Week's League Maps
4v4 6v6 Highlander
UGC-Icon2.png UGC UGC-Icon2.png UGC ETF2L-Icon2.png ETF2L EseaLogo.png ESEA Ozfortress icon.png ozfortress UGC-Icon2.png UGC ETF2L-Icon2.png ETF2L
Offseason.png Offseason.png [[Image:{{{etf2l6s}}}, {{{etf2l6s2}}}.png|link=|130px]] Offseason.png [[Image:{{{ozf6s}}}, {{{ozf6s2}}}.png|link=|130px]] Offseason.png [[Image:{{{etf2lhl}}}, {{{etf2lhl2}}}.png|link=|130px]]
Offseason Offseason Offseason Offseason Offseason Offseason Offseason

Usage

  • The template displays the current maps in each league automatically linked to the maps page
  • Special parameters that are not map names are Playoffs and Offseason
  • You can also add comments under the map names, using the leaguenamecomment field (e.g. ozf6scomment=week 7).

Example:

{{Weekmaps
 | ugc4s = Mojave
 | ugc4scomment = Week 9

 | ugc6s = Offseason
 | ugc6scomment =

 | etf2l6s = Snakewater
 | etf2l6s2 = Sunshine
 | etf2l6scomment = Week 7

 | esea6s = Playoffs
 | esea6scomment =

 | ozf6s = Offseason
 | ozf6s2 =
 | ozf6scomment =

 | ugchl = Gullywash
 | ugchlcomment = Playoffs Week 2
 | etf2lhl = Steel
 | etf2lhl2 =
 | etf2lhlcomment = Week 9
}}

Will yield:

[edit] This Week's League Maps
4v4 6v6 Highlander
UGC-Icon2.png UGC UGC-Icon2.png UGC ETF2L-Icon2.png ETF2L EseaLogo.png ESEA Ozfortress icon.png ozfortress UGC-Icon2.png UGC ETF2L-Icon2.png ETF2L
Mojave.png Offseason.png Snakewater, Sunshine.png Playoffs.png Offseason.png Gullywash.png Steel.png
Mojave Offseason Snakewater, Sunshine Playoffs Offseason Gullywash Steel
Week 9 Week 7 Playoffs Week 2 Week 9