Difference between revisions of "Template:Weekmaps"

From comp.tf
Jump to navigation Jump to search
m (Last fix)
(Re-ordered, added gamemode header, made images a bit bigger, added league icons, changed keywords accordingly)
Line 1: Line 1:
 
{| class="mainpage"
 
{| class="mainpage"
! colspan="10" | <span class="controls">[<span class="plainlinks">[{{fullurl:Main_Page|action=edit}} edit]</span>]</span> This Week's Match Maps
+
|+ <span style="color: black;" class="controls">[<span class="plainlinks">[{{fullurl:Main_Page|action=edit}} <span style="color: black;">edit</span>]</span>]</span>'''This Week's League Maps'''
 +
|-
 +
! colspan="1" style="border: 1px solid black; border-right: 1px solid white" | 4v4
 +
! colspan="6" style="border: 1px solid black; border-right: 1px solid white" | 6v6
 +
! colspan="3" style="border: 1px solid black" | Highlander
 
|- class="maps bold"
 
|- class="maps bold"
| colspan="2" class="col2" |[[Ozfortress]] (6v6)
+
| class="col2" |[[File:UGC-Icon.png | 20px | link=UGC]] [[UGC]]
| colspan="2" | [[ETF2L]] (HL)
+
| [[File:UGC-Icon.png | 20px | link=UGC]] [[UGC]]
| colspan="2" class="col2" |[[ETF2L]] (6v6)
+
| colspan="2" class="col2" |[[File:ETF2L-Icon.png | 20px | link=ETF2L]] [[ETF2L]]
| [[ESEA]] (6v6)
+
| [[File:EseaLogo.png | 20px | link=ESEA]] [[ESEA]]
| class="col2" |[[UGC]] (HL)
+
| colspan="2" class="col2" |[[File:Ozfortress icon.png | 20px | link=Ozfortress]] [[Ozfortress|ozFortress]]
| [[UGC]] (6v6)
+
| [[File:UGC-Icon.png | 20px | link=UGC]] [[UGC]]
| class="col2" |[[UGC]] (4v4)
+
| colspan="2" class="col2" |[[File:ETF2L-Icon.png | 20px | link=ETF2L]] [[ETF2L]]
 
|-
 
|-
| class="col2" |[[Image:{{{ozfortress6s|offseason}}}.png{{#if:{{ozfortress6s|}}|{{!}}link={{{ozfortress6s|}}}|}}|125px]]
+
| class="col2" |[[Image:{{{ugc4s|offseason}}}.png{{#if:{{ugc4s|}}|{{!}}link={{{ugc4s|}}}|}}|150px]]
| class="col2" | {{#if:{{{ozfortress6s2|}}}|[[Image:{{{ozfortress6s2|offseason}}}.png{{#if:{{ozfortress6s2}}|{{!}}link={{{ozfortress6s2|}}}|}}|125px]]}}
+
| [[Image:{{{ugc6s|offseason}}}.png{{#if:{{ugc6s|}}|{{!}}link={{{ugc6s|}}}|}}|150px]]
| [[Image:{{{etf2lhl|offseason}}}.png{{#if:{{etf2lhl}}|{{!}}link={{{etf2lhl|}}}|}}|125px]]
+
| class="col2" |[[Image:{{{etf2l6s|offseason}}}.png{{#if:{{etf2l6s}}|{{!}}link={{{etf2l6s|}}}|}}|150px]]
| {{#if:{{{etf2lhl2|}}}|[[Image:{{{etf2lhl2|offseason}}}.png{{#if:{{etf2lhl2}}|{{!}}link={{{etf2lhl2|}}}|}}|125px]]}}
+
| class="col2" | {{#if:{{{etf2l6s2|}}}|[[Image:{{{etf2l6s2|offseason}}}.png{{#if:{{etf2l6s2}}|{{!}}link={{{etf2l6s2|}}}|}}|150px]]}}
| class="col2" |[[Image:{{{etf2l6s|offseason}}}.png{{#if:{{etf2l6s}}|{{!}}link={{{etf2l6s|}}}|}}|125px]]
+
| [[Image:{{{esea6s|offseason}}}.png{{#if:{{esea6s|}}|{{!}}link={{{esea6s|}}}|}}|150px]]
| class="col2" | {{#if:{{{etf2l6s2|}}}|[[Image:{{{etf2l6s2|offseason}}}.png{{#if:{{etf2l6s2}}|{{!}}link={{{etf2l6s2|}}}|}}|125px]]}}
+
| class="col2" |[[Image:{{{ozf6s|offseason}}}.png{{#if:{{ozf6s|}}|{{!}}link={{{ozf6s|}}}|}}|150px]]
| [[Image:{{{esea|offseason}}}.png{{#if:{{esea|}}|{{!}}link={{{esea|}}}|}}|125px]]
+
| class="col2" | {{#if:{{{ozf6s2|}}}|[[Image:{{{ozf6s2|offseason}}}.png{{#if:{{ozf6s2}}|{{!}}link={{{ozf6s2|}}}|}}|150px]]}}
| class="col2" |[[Image:{{{ugchl|offseason}}}.png{{#if:{{ugchl|}}|{{!}}link={{{ugchl|}}}|}}|125px]]
+
| [[Image:{{{ugchl|offseason}}}.png{{#if:{{ugchl|}}|{{!}}link={{{ugchl|}}}|}}|150px]]
| [[Image:{{{ugc6s|offseason}}}.png{{#if:{{ugc6s|}}|{{!}}link={{{ugc6s|}}}|}}|125px]]
+
| class="col2" | [[Image:{{{etf2lhl|offseason}}}.png{{#if:{{etf2lhl}}|{{!}}link={{{etf2lhl|}}}|}}|150px]]
| class="col2" |[[Image:{{{ugc4s|offseason}}}.png{{#if:{{ugc4s|}}|{{!}}link={{{ugc4s|}}}|}}|125px]]
+
| class="col2" | {{#if:{{{etf2lhl2|}}}|[[Image:{{{etf2lhl2|offseason}}}.png{{#if:{{etf2lhl2}}|{{!}}link={{{etf2lhl2|}}}|}}|150px]]}}
 
|- class="top bold"
 
|- class="top bold"
| class="col2" |{{#if:{{{ozfortress6s|}}}|{{#ifeq: {{{ozfortress6s}}}|Playoffs|Playoffs|[[{{{ozfortress6s}}}]]}}|Offseason}}
+
| class="col2" |{{#if:{{{ugc4s|}}}|{{#ifeq: {{{ugc4s}}}|Playoffs|Playoffs|[[{{{ugc4s}}}]]}}|Offseason}}
| class="col2" |{{#if:{{{ozfortress6s2|}}}|[[{{{ozfortress6s2}}}]]}}
+
| {{#if:{{{ugc6s|}}}|{{#ifeq: {{{ugc6s}}}|Playoffs|Playoffs|[[{{{ugc6s}}}]]}}|Offseason}}
| {{#if:{{{etf2lhl|}}}|{{#ifeq: {{{etf2lhl}}}|Playoffs|Playoffs|[[{{{etf2lhl}}}]]}} |Offseason}}
 
| {{#if:{{{etf2lhl2|}}}|[[{{{etf2lhl2}}}]]}}
 
 
| class="col2" |{{#if:{{{etf2l6s|}}}|{{#ifeq: {{{etf2l6s}}}|Playoffs|Playoffs|[[{{{etf2l6s}}}]]}}|Offseason}}
 
| class="col2" |{{#if:{{{etf2l6s|}}}|{{#ifeq: {{{etf2l6s}}}|Playoffs|Playoffs|[[{{{etf2l6s}}}]]}}|Offseason}}
 
| class="col2" |{{#if:{{{etf2l6s2|}}}|[[{{{etf2l6s2}}}]]}}
 
| class="col2" |{{#if:{{{etf2l6s2|}}}|[[{{{etf2l6s2}}}]]}}
| {{#if:{{{esea|}}}|{{#ifeq: {{{esea}}}|Playoffs|Playoffs|[[{{{esea}}}]]}}|Offseason}}  
+
| {{#if:{{{esea6s|}}}|{{#ifeq: {{{esea6s}}}|Playoffs|Playoffs|[[{{{esea6s}}}]]}}|Offseason}}  
| class="col2" |{{#if:{{{ugchl|}}}|{{#ifeq: {{{ugchl}}}|Playoffs|Playoffs|[[{{{ugchl}}}]]}}|Offseason}}
+
| class="col2" |{{#if:{{{ozf6s|}}}|{{#ifeq: {{{ozf6s}}}|Playoffs|Playoffs|[[{{{ozf6s}}}]]}}|Offseason}}
| {{#if:{{{ugc6s|}}}|{{#ifeq: {{{ugc6s}}}|Playoffs|Playoffs|[[{{{ugc6s}}}]]}}|Offseason}}
+
| class="col2" |{{#if:{{{ozf6s2|}}}|[[{{{ozf6s2}}}]]}}
| class="col2" |{{#if:{{{ugc4s|}}}|{{#ifeq: {{{ugc4s}}}|Playoffs|Playoffs|[[{{{ugc4s}}}]]}}|Offseason}}
+
| {{#if:{{{ugchl|}}}|{{#ifeq: {{{ugchl}}}|Playoffs|Playoffs|[[{{{ugchl}}}]]}}|Offseason}}
 +
| class="col2" |{{#if:{{{etf2lhl|}}}|{{#ifeq: {{{etf2lhl}}}|Playoffs|Playoffs|[[{{{etf2lhl}}}]]}} |Offseason}}
 +
| class="col2" |{{#if:{{{etf2lhl2|}}}|[[{{{etf2lhl2}}}]]}}
 
|- class="top bold"
 
|- class="top bold"
| colspan="2" class="col2" |{{#if:{{{ozfortress6scomment|}}}|<small>{{{ozfortress6scomment}}}</small>}}
+
| class="col2" |{{#if:{{{ugc4scomment|}}}|<small>{{{ugc4scomment}}}</small>}}
| colspan="2" | {{#if:{{{etf2lhlcomment|}}}|<small>{{{etf2lhlcomment}}}</small>}}
+
| {{#if:{{{ugc6scomment|}}}|<small>{{{ugc6scomment}}}</small>}}
 
| colspan="2" class="col2" |{{#if:{{{etf2l6scomment|}}}|<small>{{{etf2l6scomment}}}</small>}}
 
| colspan="2" class="col2" |{{#if:{{{etf2l6scomment|}}}|<small>{{{etf2l6scomment}}}</small>}}
| {{#if:{{{eseacomment|}}}|<small>{{{eseacomment}}}</small>}}
+
| {{#if:{{{esea6scomment|}}}|<small>{{{esea6scomment}}}</small>}}
 +
| colspan="2" class="col2" |{{#if:{{{ozf6scomment|}}}|<small>{{{ozf6scomment}}}</small>}}
 
| class="col2" |{{#if:{{{ugchlcomment|}}}|<small>{{{ugchlcomment}}}</small>}}
 
| class="col2" |{{#if:{{{ugchlcomment|}}}|<small>{{{ugchlcomment}}}</small>}}
| {{#if:{{{ugc6scomment|}}}|<small>{{{ugc6scomment}}}</small>}}
+
| colspan="2" | {{#if:{{{etf2lhlcomment|}}}|<small>{{{etf2lhlcomment}}}</small>}}
| class="col2" |{{#if:{{{ugc4scomment|}}}|<small>{{{ugc4scomment}}}</small>}}
 
 
|}
 
|}
 
<noinclude>
 
<noinclude>
Line 45: Line 49:
 
* 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
 
* 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
 
* If the league is in Playoffs time don't fill the comment fields, simply put '''Playoffs''' in the competition field
 
* 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>ozfortress6scomment=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>).
  
 
Example:
 
Example:
 
<pre>
 
<pre>
 
{{Weekmaps
 
{{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
 
 
  | ugc4s = Mojave
 
  | ugc4s = Mojave
 
  | ugc4scomment = Week 9
 
  | ugc4scomment = Week 9
 
<!--
 
<!--
 +
| ugc6s =
 +
| ugc6scomment =
 +
-->
 +
| etf2l6s = Snakewater
 +
| etf2l6s2 = Sunshine
 +
| etf2l6scomment = Week 7
 +
 +
| esea6s = Viaduct
 +
| esea6scomment = Week 1
 +
<!--
 +
| ozf6s =
 +
| ozf6s2 =
 +
| ozf6scomment =
 +
 +
| ugchl =
 +
| ugchlcomment =
 
-->
 
-->
 +
| etf2lhl = Steel
 +
| etf2lhl2 =
 +
| etf2lhlcomment = Week 9
 
}}
 
}}
 
</pre>
 
</pre>
yields
+
'''Will yield:'''
  
 
{{Weekmaps
 
{{Weekmaps
<!--
 
| ozfortress6s =
 
-->
 
| etf2lhl = Warmtic
 
| etf2lhl2 = Process
 
| etf2lhlcomment = Week 2
 
| etf2l6s = Playoffs
 
| etf2l6s2 =
 
| etf2l6scomment =
 
<!--
 
-->
 
| esea = Playoffs
 
| eseacomment =
 
<!--
 
-->
 
| ugchl = Process
 
| ugchlcomment = Week 9
 
| ugc6s = Snakewater
 
| ugc6scomment = Week 9
 
 
  | ugc4s = Mojave
 
  | ugc4s = Mojave
 
  | ugc4scomment = Week 9
 
  | ugc4scomment = Week 9
 
<!--
 
<!--
 +
| ugc6s =
 +
| ugc6scomment =
 +
-->
 +
| etf2l6s = Snakewater
 +
| etf2l6s2 = Sunshine
 +
| etf2l6scomment = Week 7
 +
 +
| esea6s = Viaduct
 +
| esea6scomment = Week 1
 +
<!--
 +
| ozf6s =
 +
| ozf6s2 =
 +
| ozf6scomment =
 +
 +
| ugchl =
 +
| ugchlcomment =
 
-->
 
-->
 +
| etf2lhl = Steel
 +
| etf2lhl2 =
 +
| etf2lhlcomment = Week 9
 
}}
 
}}
  
 
[[Category:Main page templates]]
 
[[Category:Main page templates]]

Revision as of 08:41, 5 February 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 Offseason.png Offseason.png Offseason.png Offseason.png Offseason.png
Offseason 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. ozf6scomment=week 7).

Example:

{{Weekmaps
 | ugc4s = Mojave
 | ugc4scomment = Week 9
<!--
 | ugc6s =
 | ugc6scomment =
-->
 | etf2l6s = Snakewater
 | etf2l6s2 = Sunshine
 | etf2l6scomment = Week 7

 | esea6s = Viaduct
 | esea6scomment = Week 1
<!--
 | ozf6s =
 | ozf6s2 =
 | ozf6scomment =

 | ugchl =
 | ugchlcomment =
-->
 | 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.png Sunshine.png Product.png Offseason.png Offseason.png Steel.png
Mojave Offseason Snakewater Sunshine Viaduct Offseason Offseason Steel
Week 9 Week 7 Week 1 Week 9