Difference between revisions of "Template:Weekmaps"

From comp.tf
Jump to navigation Jump to search
m (updated entire template and usage instructions)
m (→‎Usage: updated usage)
Line 36: Line 36:
 
<noinclude>
 
<noinclude>
 
== Usage ==
 
== Usage ==
* The template displays the current maps in each league automatically linked to the maps page, or displays '''Offseason''' if the league field is absent.
+
* 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
 
* 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>ozfortress6scomment=week 7</code>).

Revision as of 18:06, 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 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 = 
 -->
 | 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