Difference between revisions of "Template:Weekmaps"

From comp.tf
Jump to navigation Jump to search
m (Gave each sub-header it's own color, removed sub-headers from their own table therefore reverting back to checkered backgrounds, added in-table borders to distinguish between game formats slightly better)
 
(34 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="mainpage"
+
<includeonly>{| class="mainpage"
 
|-
 
|-
  ! colspan="10" style="font-size: 14px; border: 1px solid #1c1c1c;" | <span class="controls">[<span class="plainlinks">[{{fullurl:Main_Page|action=edit}} edit]</span>]</span>'''This Week's League Maps'''
+
  ! colspan="7" style="border:1px solid #1c1c1c" | <span class="controls">[<span class="plainlinks">[{{fullurl:Main_Page|action=edit}} edit]</span>]</span> '''This Week's League Maps'''
|-
+
|- style="border-top: none; font-weight:bold;"
| colspan="1" style="border: 1px solid lightgray; border-bottom: hidden; background-color: #CEF2E0; font-size: 13px;" | '''4v4'''
+
  | class="col2" style="padding-top:4px; width:14.28%;" | [[File:ETF2L-Icon.png|20px|link=ETF2L]]&nbsp;[[ETF2L]]&nbsp;<span style="font-size:12px;font-weight:normal">(6v6)</span>
  | colspan="6" style="border: 1px solid lightgray; border-bottom: hidden; background-color: #CEE0F2; font-size: 13px;" | '''6v6'''
+
| style="padding-top:4px; width:14.28%;" | [[File:RGL Icon.png|20px|link=RGL]]&nbsp;[[RGL]]&nbsp;<span style="font-size:12px;font-weight:normal">(6v6)</span>
| colspan="3" style="border: 1px solid lightgray; border-bottom: hidden; border-top: 1px solid lightgray; background-color: #F2CEE0; font-size: 13px;" | '''Highlander'''
+
  | class="col2" style="padding-top:4px; width:14.28%;" | [[File:Ozfortress Icon.png|20px|link=Ozfortress]]&nbsp;[[ozfortress]]&nbsp;<span style="font-size:12px;font-weight:normal">(6v6)</span>
|- class="maps bold" style="border-top: none;"
+
  | style="padding-top:4px; width:14.28%;" | [[File:UGC-Icon.png|20px|link=UGC]]&nbsp;[[UGC]]&nbsp;<span style="font-size:12px;font-weight:normal">(6v6)</span>
| class="col2" style="border-left: 1px solid lightgray; border-right: 1px solid lightgray;" |[[File:UGC-Icon.png | 20px | link=UGC]] [[UGC]]
+
  | class="col2" style="padding-top:4px; width:14.28%; border-left:1px solid lightgray" | [[File:ETF2L-Icon.png|20px|link=ETF2L]]&nbsp;[[ETF2L]]&nbsp;<span style="font-size:12px;font-weight:normal">(HL)</span>
  | style="border-left: 1px solid lightgray;" | [[File:UGC-Icon.png | 20px | link=UGC]] [[UGC]]
+
  | style="padding-top:4px; width:14.28%;" | [[File:RGL Icon.png|20px|link=RGL]]&nbsp;[[RGL]]&nbsp;<span style="font-size:12px;font-weight:normal">(HL)</span>
  | class="col2" colspan="2" |[[File:ETF2L-Icon.png | 20px | link=ETF2L]] [[ETF2L]]
+
  | class="col2" style="padding-top:4px; width:14.28%;" | [[File:UGC-Icon.png|20px|link=UGC]]&nbsp;[[UGC]]&nbsp;<span style="font-size:12px;font-weight:normal">(HL)</span>
| [[File:EseaLogo.png | 20px | link=ESEA]] [[ESEA]]
+
|- class="weekmaps"
  | class="col2" colspan="2" style="border-right: 1px solid lightgray;" | [[File:Ozfortress icon.png | 20px | link=Ozfortress]] [[Ozfortress|ozFortress]]
+
| class="col2" style="padding-top:6px" | <span style="display:none">{{#ifeq:{{lc:{{{etf2l6s|}}}}}|playoffs|[[File:Playoffs2.png|link=ETF2L 6v6 Season {{Current Seasons|etf2l6s}}/Premiership#Playoffs]]|{{#ifeq:{{lc:{{{etf2l6s|}}}}}|offseason|[[File:Offseason2.png|link=]]|[[File:{{#ifexist:File:{{{etf2l6s|}}}.jpg|{{{etf2l6s|}}}.jpg|{{#ifexist:File:{{{etf2l6s|}}}.png|{{{etf2l6s|}}}.png|{{#if:{{{etf2l6simg|}}}|{{{etf2l6simg|}}}|}}}}}}|link={{{etf2l6s|}}}]]}}}}</span>{{#if:{{{etf2l6s2|}}}|<span style="display:none">[[File:{{#ifexist:File:{{{etf2l6s2|}}}.jpg|{{{etf2l6s2|}}}.jpg|{{#ifexist:File:{{{etf2l6s2|}}}.png|{{{etf2l6s2|}}}.png|{{#if:{{{etf2l6s2img|}}}|{{{etf2l6s2img|}}}|}}}}}}|link={{{etf2l6s2|}}}]]</span>|}}
  | style="border-left: 1px solid lightgray;" | [[File:UGC-Icon.png | 20px | link=UGC]] [[UGC]]
+
  | style="padding-top:6px" | <span style="display:none">{{#ifeq:{{lc:{{{rgl6s|}}}}}|playoffs|[[File:Playoffs2.png|link=RGL 6v6 Season {{Current Seasons|rgl6s}}/Invite#Playoffs]]|{{#ifeq:{{lc:{{{rgl6s|}}}}}|offseason|[[File:Offseason2.png|link=]]|[[File:{{#ifexist:File:{{{rgl6s|}}}.jpg|{{{rgl6s|}}}.jpg|{{#ifexist:File:{{{rgl6s|}}}.png|{{{rgl6s|}}}.png|{{#if:{{{rgl6simg|}}}|{{{rgl6simg|}}}|}}}}}}|link={{{rgl6s|}}}]]}}}}</span>{{#if:{{{rgl6s2|}}}|<span style="display:none">[[File:{{#ifexist:File:{{{rgl6s2|}}}.jpg|{{{rgl6s2|}}}.jpg|{{#ifexist:File:{{{rgl6s2|}}}.png|{{{rgl6s2|}}}.png|{{#if:{{{rgl6s2img|}}}|{{{rgl6s2img|}}}|}}}}}}|link={{{rgl6s2|}}}]]</span>|}}
  | class="col2" colspan="2" style="border-right: 1px solid lightgray;" |[[File:ETF2L-Icon.png | 20px | link=ETF2L]] [[ETF2L]]
+
  | class="col2" style="padding-top:6px" | <span style="display:none">{{#ifeq:{{lc:{{{ozf6s|}}}}}|playoffs|[[File:Playoffs2.png|link=ozfortress Season {{Current Seasons|ozf6s}}/Premier#Playoffs]]|{{#ifeq:{{lc:{{{ozf6s|}}}}}|offseason|[[File:Offseason2.png|link=]]|[[File:{{#ifexist:File:{{{ozf6s|}}}.jpg|{{{ozf6s|}}}.jpg|{{#ifexist:File:{{{ozf6s|}}}.png|{{{ozf6s|}}}.png|{{#if:{{{ozf6simg|}}}|{{{ozf6simg|}}}|}}}}}}|link={{{ozf6s|}}}]]}}}}</span>{{#if:{{{ozf6s2|}}}|<span style="display:none">[[File:{{#ifexist:File:{{{ozf6s2|}}}.jpg|{{{ozf6s2|}}}.jpg|{{#ifexist:File:{{{ozf6s2|}}}.png|{{{ozf6s2|}}}.png|{{#if:{{{ozf6s2img|}}}|{{{ozf6s2img|}}}|}}}}}}|link={{{ozf6s2|}}}]]</span>|}}
|-
+
  | style="padding-top:6px" | <span style="display:none">{{#ifeq:{{lc:{{{ugc6s|}}}}}|playoffs|[[File:Playoffs2.png|link=UGC-6v6 Season {{Current Seasons|ugc6s}}]]|{{#ifeq:{{lc:{{{ugc6s|}}}}}|offseason|[[File:Offseason2.png|link=]]|[[File:{{#ifexist:File:{{{ugc6s|}}}.jpg|{{{ugc6s|}}}.jpg|{{#ifexist:File:{{{ugc6s|}}}.png|{{{ugc6s|}}}.png|{{#if:{{{ugc6simg|}}}|{{{ugc6simg|}}}|}}}}}}|link={{{ugc6s|}}}]]}}}}</span>
| class="col2" style="border-left: 1px solid lightgray; border-right: 1px solid lightgray;" | [[Image:{{{ugc4s|offseasonTemp}}}.png{{#if:{{ugc4s|}}|{{!}}link={{{ugc4s|}}}|}}|130px]]
+
  | class="col2" style="padding-top:6px; border-left:1px solid lightgray" | <span style="display:none">{{#ifeq:{{lc:{{{etf2lhl|}}}}}|playoffs|[[File:Playoffs2.png|link=ETF2L Highlander Season {{Current Seasons|etf2l6s}}/Premiership#Playoffs]]|{{#ifeq:{{lc:{{{etf2lhl|}}}}}|offseason|[[File:Offseason2.png|link=]]|[[File:{{#ifexist:File:{{{etf2lhl|}}}.jpg|{{{etf2lhl|}}}.jpg|{{#ifexist:File:{{{etf2lhl|}}}.png|{{{etf2lhl|}}}.png|{{#if:{{{etf2lhlimg|}}}|{{{etf2lhlimg|}}}|}}}}}}|link={{{etf2lhl|}}}]]}}}}</span>{{#if:{{{etf2lhl2|}}}|<span style="display:none">[[File:{{#ifexist:File:{{{etf2lhl2|}}}.jpg|{{{etf2lhl2|}}}.jpg|{{#ifexist:File:{{{etf2lhl2|}}}.png|{{{etf2lhl2|}}}.png|{{#if:{{{etf2lhl2img|}}}|{{{etf2lhl2img|}}}|}}}}}}|link={{{etf2lhl2|}}}]]</span>|}}
| style="border-left: 1px solid lightgray;" | [[Image:{{{ugc6s|offseasonTemp}}}.png{{#if:{{ugc6s|}}|{{!}}link={{{ugc6s|}}}|}}|130px]]
+
| style="padding-top:6px" | <span style="display:none">{{#ifeq:{{lc:{{{rglhl|}}}}}|playoffs|[[File:Playoffs2.png|link=RGL Highlander Season {{Current Seasons|rglhl}}]]|{{#ifeq:{{lc:{{{rglhl|}}}}}|offseason|[[File:Offseason2.png|link=]]|[[File:{{#ifexist:File:{{{rglhl|}}}.jpg|{{{rglhl|}}}.jpg|{{#ifexist:File:{{{rglhl|}}}.png|{{{rglhl|}}}.png|{{#if:{{{rglhlimg|}}}|{{{rglhlimg|}}}|}}}}}}|link={{{rglhl|}}}]]}}}}</span>
| class="col2" | [[Image:{{{etf2l6s|offseasonTemp}}}.png{{#if:{{etf2l6s}}|{{!}}link={{{etf2l6s|}}}|}}|130px]]
+
| class="col2" style="padding-top:6px;" | <span style="display:none">{{#ifeq:{{lc:{{{ugchl|}}}}}|playoffs|[[File:Playoffs2.png|link=UGC Highlander Season {{Current Seasons|ugchl}}]]|{{#ifeq:{{lc:{{{ugchl|}}}}}|offseason|[[File:Offseason2.png|link=]]|[[File:{{#ifexist:File:{{{ugchl|}}}.jpg|{{{ugchl|}}}.jpg|{{#ifexist:File:{{{ugchl|}}}.png|{{{ugchl|}}}.png|{{#if:{{{ugchlimg|}}}|{{{ugchlimg|}}}|}}}}}}|link={{{ugchl|}}}]]}}}}</span>
| class="col2" | {{#if:{{{etf2l6s2|}}}|[[Image:{{{etf2l6s2|offseasonTemp}}}.png{{#if:{{etf2l6s2}}|{{!}}link={{{etf2l6s2|}}}|}}|130px]]}}
+
|- style="font-weight:bold"
| [[Image:{{{esea6s|offseasonTemp}}}.png{{#if:{{esea6s|}}|{{!}}link={{{esea6s|}}}|}}|130px]]
+
| class="col2" | {{#ifeq:{{lc:{{{etf2l6s|}}}}}|playoffs|[[ETF2L 6v6 Season {{Current Seasons|etf2l6s}}/Premiership#Playoffs|Playoffs]]|{{#ifeq:{{lc:{{{etf2l6s|}}}}}|offseason|Offseason|[[{{{etf2l6s|}}}]]{{#if:{{{etf2l6s2|}}}|, [[{{{etf2l6s2|}}}]]}}}}}}
| class="col2" | [[Image:{{{ozf6s|offseasonTemp}}}.png{{#if:{{ozf6s|}}|{{!}}link={{{ozf6s|}}}|}}|130px]]
+
| {{#ifeq:{{lc:{{{rgl6s|}}}}}|playoffs|[[RGL 6v6 Season {{Current Seasons|rgl6s}}/Invite#Playoffs|Playoffs]]|{{#ifeq:{{lc:{{{rgl6s|}}}}}|offseason|Offseason|[[{{{rgl6s|}}}]]{{#if:{{{rgl6s2|}}}|, [[{{{rgl6s2|}}}]]}}}}}}
  | class="col2" style="border-right: 1px solid lightgray;" | {{#if:{{{ozf6s2|}}}|[[Image:{{{ozf6s2|offseasonTemp}}}.png{{#if:{{ozf6s2}}|{{!}}link={{{ozf6s2|}}}|}}|130px]]}}
+
| class="col2" | {{#ifeq:{{lc:{{{ozf6s|}}}}}|playoffs|[[ozfortress Season {{Current Seasons|ozf6s}}/Premier#Playoffs|Playoffs]]|{{#ifeq:{{lc:{{{ozf6s|}}}}}|offseason|Offseason|[[{{{ozf6s|}}}]]{{#if:{{{ozf6s2|}}}|, [[{{{ozf6s2|}}}]]}}}}}}
| style="border-left: 1px solid lightgray;" | [[Image:{{{ugchl|offseasonTemp}}}.png{{#if:{{ugchl|}}|{{!}}link={{{ugchl|}}}|}}|130px]]
+
| {{#ifeq:{{lc:{{{ugc6s|}}}}}|playoffs|[[UGC-6v6 Season {{Current Seasons|ugc6s}}|Playoffs]]|{{#ifeq:{{lc:{{{ugc6s|}}}}}|offseason|Offseason|[[{{{ugc6s|}}}]]}}}}
| class="col2" | [[Image:{{{etf2lhl|offseasonTemp}}}.png{{#if:{{etf2lhl}}|{{!}}link={{{etf2lhl|}}}|}}|130px]]
+
| class="col2" style="border-left:1px solid lightgray" | {{#ifeq:{{lc:{{{etf2lhl|}}}}}|playoffs|[[ETF2L Highlander Season {{Current Seasons|etf2lhl}}/Premiership#Playoffs|Playoffs]]|{{#ifeq:{{lc:{{{etf2lhl|}}}}}|offseason|Offseason|[[{{{etf2lhl|}}}]]{{#if:{{{etf2lhl2|}}}|, [[{{{etf2lhl2|}}}]]}}}}}}
| class="col2" style="border-right: 1px solid lightgray;" | {{#if:{{{etf2lhl2|}}}|[[Image:{{{etf2lhl2|offseasonTemp}}}.png{{#if:{{etf2lhl2}}|{{!}}link={{{etf2lhl2|}}}|}}|130px]]}}
+
| {{#ifeq:{{lc:{{{rglhl|}}}}}|playoffs|[[RGL Highlander Season {{Current Seasons|rglhl}}|Playoffs]]|{{#ifeq:{{lc:{{{rglhl|}}}}}|offseason|Offseason|[[{{{rglhl|}}}]]}}}}
|- class="top bold"
+
| class="col2" | {{#ifeq:{{lc:{{{ugchl|}}}}}|playoffs|[[UGC Highlander Season {{Current Seasons|ugchl}}|Playoffs]]|{{#ifeq:{{lc:{{{ugchl|}}}}}|offseason|Offseason|[[{{{ugchl|}}}]]}}}}
  | class="col2" style="border-left: 1px solid lightgray; border-right: 1px solid lightgray;" | {{#if:{{{ugc4s|}}}|{{#ifeq: {{{ugc4s}}}|PlayoffsTemp|Playoffs|[[{{{ugc4s}}}]]}}|Offseason}}
+
|- style="font-weight:bold"
| style="border-left: 1px solid lightgray;" | {{#if:{{{ugc6s|}}}|{{#ifeq: {{{ugc6s}}}|PlayoffsTemp|Playoffs|[[{{{ugc6s}}}]]}}|Offseason}}
+
| class="col2" | <small>{{{etf2l6scomment|}}}</small>
| class="col2" | {{#if:{{{etf2l6s|}}}|{{#ifeq: {{{etf2l6s}}}|PlayoffsTemp|Playoffs|[[{{{etf2l6s}}}]]}}|Offseason}}
+
| <small>{{{rgl6scomment|}}}</small>
| class="col2" | {{#if:{{{etf2l6s2|}}}|[[{{{etf2l6s2}}}]]}}
+
| class="col2" | <small>{{{ozf6scomment|}}}</small>
| {{#if:{{{esea6s|}}}|{{#ifeq: {{{esea6s}}}|PlayoffsTemp|Playoffs|[[{{{esea6s}}}]]}}|Offseason}}
+
| <small>{{{ugc6scomment|}}}</small>
| class="col2" | {{#if:{{{ozf6s|}}}|{{#ifeq: {{{ozf6s}}}|PlayoffsTemp|Playoffs|[[{{{ozf6s}}}]]}}|Offseason}}
+
| class="col2" style="border-left:1px solid lightgray" | <small>{{{etf2lhlcomment|}}}</small>
  | class="col2" style="border-right: 1px solid lightgray;" | {{#if:{{{ozf6s2|}}}|[[{{{ozf6s2}}}]]}}
+
| <small>{{{rglhlcomment|}}}</small>
| style="border-left: 1px solid lightgray;" | {{#if:{{{ugchl|}}}|{{#ifeq: {{{ugchl}}}|PlayoffsTemp|Playoffs|[[{{{ugchl}}}]]}}|Offseason}}
+
| class="col2" | <small>{{{ugchlcomment|}}}</small>
| class="col2" | {{#if:{{{etf2lhl|}}}|{{#ifeq: {{{etf2lhl}}}|PlayoffsTemp|Playoffs|[[{{{etf2lhl}}}]]}} |Offseason}}
 
| class="col2" style="border-right: 1px solid lightgray;" | {{#if:{{{etf2lhl2|}}}|[[{{{etf2lhl2}}}]]}}
 
|- 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>}}
 
| style="border-left: 1px solid lightgray; border-bottom: 1px solid lightgray;" | {{#if:{{{ugc6scomment|}}}|<small>{{{ugc6scomment}}}</small>}}
 
| class="col2" colspan="2" style="border-bottom: 1px solid lightgray;" | {{#if:{{{etf2l6scomment|}}}|<small>{{{etf2l6scomment}}}</small>}}
 
| style="border-bottom: 1px solid lightgray;" | {{#if:{{{esea6scomment|}}}|<small>{{{esea6scomment}}}</small>}}
 
| class="col2" colspan="2" style="border-right: 1px solid lightgray; border-bottom: 1px solid lightgray;" | {{#if:{{{ozf6scomment|}}}|<small>{{{ozf6scomment}}}</small>}}
 
| style="border-left: 1px solid lightgray; border-bottom: 1px solid lightgray;" | {{#if:{{{ugchlcomment|}}}|<small>{{{ugchlcomment}}}</small>}}
 
| colspan="2" class="col2" style="border-right: 1px solid lightgray; border-bottom: 1px solid lightgray;" | {{#if:{{{etf2lhlcomment|}}}|<small>{{{etf2lhlcomment}}}</small>}}
 
 
|}
 
|}
<noinclude>
+
</includeonly><noinclude>{{documentation}}</noinclude>
== 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 <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
 
* 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:
 
<pre>
 
{{Weekmaps
 
| ugc4s = Mojave
 
| ugc4scomment = Week 9
 
<!--
 
| ugc6s =
 
| ugc6scomment =
 
-->
 
| etf2l6s = Snakewater
 
| etf2l6s2 = Sunshine
 
| etf2l6scomment = Week 7
 
 
 
| esea6s = Playoffs
 
| esea6scomment =
 
<!--
 
| ozf6s =
 
| ozf6s2 =
 
| ozf6scomment =
 
 
 
| ugchl =
 
| ugchlcomment =
 
-->
 
| etf2lhl = Steel
 
| etf2lhl2 =
 
| etf2lhlcomment = Week 9
 
}}
 
</pre>
 
'''Will yield:'''
 
 
 
{{Weekmaps
 
| ugc4s = Mojave
 
| ugc4scomment = Week 9
 
<!--
 
| ugc6s =
 
| ugc6scomment =
 
-->
 
| etf2l6s = Snakewater
 
| etf2l6s2 = Sunshine
 
| etf2l6scomment = Week 7
 
 
 
| esea6s = PlayoffsTemp
 
| esea6scomment =
 
<!--
 
| ozf6s =
 
| ozf6s2 =
 
| ozf6scomment =
 
 
 
| ugchl =
 
| ugchlcomment =
 
-->
 
| etf2lhl = Steel
 
| etf2lhl2 =
 
| etf2lhlcomment = Week 9
 
}}
 
 
 
[[Category:Main page templates]]
 

Latest revision as of 18:23, 17 April 2020

(view - edit) Documentation

[edit] This Week's League Maps
ETF2L-Icon2.png ETF2L (6v6) RGL Icon.png RGL (6v6) Ozfortress Icon.png ozfortress (6v6) UGC-Icon2.png UGC (6v6) ETF2L-Icon2.png ETF2L (HL) RGL Icon.png RGL (HL) UGC-Icon2.png UGC (HL)
Gullywash.jpgProduct.jpg Offseason2.png Offseason2.png Offseason2.png Offseason2.png Playoffs2.png Offseason2.png
Gullywash, Product Offseason Offseason Offseason Offseason Playoffs Offseason
Week 2