Difference between revisions of "Template:Events"

From comp.tf
Jump to navigation Jump to search
m
 
(599 intermediate revisions by 59 users not shown)
Line 1: Line 1:
{| class="right" style="width: auto;"
+
<includeonly><!--
! class="mainhead" | <span class="controls">[<span class="plainlinks">[{{fullurl:Template:Events|action=edit}} edit]</span>]</span> TF2 events
+
Blank templates for input
|-
+
{{TNL |league= |link= |sdate= |edate= |date= }}
|
 
{| class="infobox right events"
 
|-
 
<!-- UPCOMING EVENTS START HERE -->
 
! colspan=3 | <div style="background-color:#eaf5fe;">Upcoming</div>
 
|-
 
| [[File:ETF2L-Logo.png|20px]]
 
| [[The Highlander Open]]
 
| <div class="date"><div class="start">13 Jul</div>
 
|-
 
<!-- ONGOING EVENTS START HERE -->
 
! colspan=3 | <div style="background-color:#ebfeea;">Ongoing</div>
 
|-
 
| [[File:ETF2L-Logo.png|20px]]
 
| [[Turbine Cup]]
 
| <div class="date"><div class="start">4 May</div><br/><div class="end">6 May</div></div>
 
|-
 
| [[File:ETF2L-Logo.png|20px]]
 
| [[ETF2L 6v6 Season 18]]
 
| <div class="date"><div class="start">1 May</div><br/><div class="end">26 Jul</div></div>
 
|-
 
| [[File:ETF2L-Logo.png|20px]]
 
| [[ETF2L Highlander Season 6]]
 
| <div class="date"><div class="start">9 Mar</div><br/><div class="end">24 May</div></div>
 
|-
 
| [[File:Cevo.png|20px]]
 
| [[CEVO]] Season 4 6v6
 
| <div class="date"><div class="start">18 Feb</div><br/><div class="end">19 May</div></div>
 
|-
 
<!-- COMPLETED EVENTS START HERE -->
 
! colspan=3 | <div style="background-color:#feeeea;">Completed</div>
 
|-
 
| [[File:Comptf logo small white.png|20px]]
 
| [[Comp.tf 1st Ultiduo Cup EU]]
 
| <div class="date"><div class="start">4 May</div>
 
|-
 
| [[File:UGC-Logo.png|20px]]
 
| [[UGC]] 4v4 Season 1
 
| <div class="date"><div class="start">24 Jan</div><br/><div class="end">11 Apr</div></div>
 
|-
 
| [[File:UGC-Logo.png|20px]]
 
| [[UGC]] 6v6 Season 14
 
| <div class="date"><div class="start">22 Jan</div><br/><div class="end">19 Apr</div></div>
 
|-
 
| [[File:UGC-Logo.png|20px]]
 
| [[UGC]] Highlander Season 12
 
| <div class="date"><div class="start">20 Jan</div><br/><div class="end">17 Apr</div></div>
 
|-
 
|}
 
|}
 
<noinclude>
 
== Usage ==
 
This template displays the events table, with a division between upcoming, ongoing and completed events.
 
  
Please read the code carefully and try to understand how it works before updating the template. It is very easy to update, just see the code of the events already added and it's pretty much the same thing save for the image, name and date.
+
{{TNLMulti |league= |text= |link1= |link2= |link3= |link4= |sdate= |edate=}}
  
'''After 1 month of being completed events should be completely removed from the Completed tab to make space for new upcoming and ongoing events.'''
+
-->{{StaticEventsStart}}
 +
{{StaticEventsUpcoming}}<!--
 +
Upcoming events start here, place starting soonest towards the bottom.-->
 +
{{TNL |league=rgl  |link=[[RGL Traditional Sixes Season 17|RGL Sixes Season 17]] |sdate=21 Jan |edate=19 Apr|date=}}
 +
{{TNL |league=rgl  |link=[[RGL Highlander Season 20]] |sdate=27 Jan |edate=12 Apr|date= }}
 +
{{TNL |league=etf2l |link=[[ETF2L 6v6 Season 49|ETF2L 6v6 Winter 2025/Season 49]] |sdate=20 Jan|edate=06 Apr|date= }}
 +
{{TNL |league=etf2l |link=[[ETF2L HL Season 33|ETF2L Highlander Spring 2025/Season 33]] |sdate=17 Mar |edate=11 May |date= }}
 +
{{TNL |league=oz    |link=[[CapptingTV Summer Brawl 2025|CapptingTV Summer Brawl 2025]] |sdate=11 Jan |edate=12 Jan|date= }}
 +
{{StaticEventsOngoing}}<!--
 +
Ongoing events start here, place ending soonest towards the bottom.-->
 +
{{StaticEventsCompleted}}<!--
 +
Events that ended a maximum of 30 days ago start here, place most recently ended towards the top.-->
 +
{{TNL |league=rgl  |link=[[RGL Traditional Sixes Season 16|RGL Sixes Season 16]] |sdate=16 Sep |edate=15 Dec|date=}}
 +
{{TNL |league=rgl  |link=[[RGL Highlander Season 19]] |sdate=30 Sep |edate=11 Dec|date= }}
 +
{{TNL |league=oz    |link=[[ozfortress Season 41|ozfortress Sixes Spring '24/Season 41]] |sdate=06 Oct |edate=19 Dec|date= }}
 +
{{TNL |league=oz    |link=[[ozfortress Highlander Season 8|ozfortress Highlander Spring '24/Season 6]] |sdate=09 Oct |edate=15 Dec|date= }}
  
=== Template: ===
 
Copy this code to the page you wish to add this table to.
 
<pre>
 
{{Events}}
 
</pre>
 
  
 
+
{{StaticEventsEnd}}
 
+
</includeonly><noinclude>
[[Category:Main page templates]]
+
{{Documentation}}
[[Category:Template]]
+
[[Category:Main page templates]] [[Category:Template]]
 +
</noinclude>

Latest revision as of 01:53, 17 December 2024

(view - edit) Documentation

[edit] TF2 Events
Upcoming
RGL RGL Sixes Season 17
21 Jan

19 Apr
RGL RGL Highlander Season 20
27 Jan

12 Apr
ETF2L ETF2L 6v6 Winter 2025/Season 49
20 Jan

06 Apr
ETF2L ETF2L Highlander Spring 2025/Season 33
17 Mar

11 May
ozfortress CapptingTV Summer Brawl 2025
11 Jan

12 Jan
Ongoing
Completed
RGL RGL Sixes Season 16
16 Sep

15 Dec
RGL RGL Highlander Season 19
30 Sep

11 Dec
ozfortress ozfortress Sixes Spring '24/Season 41
06 Oct

19 Dec
ozfortress ozfortress Highlander Spring '24/Season 6
09 Oct

15 Dec



Use

This template displays the events table, with a division between upcoming, ongoing and completed events.

Template is considered very easy to update, feel free to use previous inputs as an example.

Within the template, templates TNL and TNLMulti are used.

TNL template

To be used when linking to an event without displaying subdivisions.

{{TNL |league= |link= |sdate= |edate= |date= }}

Parameters

  • league = The league or tournament the event is run by. Some abbreviations can be used. If no image is found for the league within Template:LeagueIconSmall, a generic logo will be generated.
  • link = A link to the page on comp.tf
  • sdate = Start of the event, in DD, MMM format.
  • edate = End of the event, in DD, MMM format.
  • date = For one day events, in DD, MMM format.

Example

{{TNL |league=etf2l |link=[[ETF2L 6v6 Season 20/Premiership|ETF2L 6v6 Season 20]] |sdate=01 Feb |edate=29 Mar |date= }}

Would generate:

ETF2L ETF2L 6v6 Season 20
01 Feb

29 Mar


TNLMulti

To be used when linking to an event with displaying subdivisions.

{{TNLMulti |league= |text= |link1= |link2= |link3= |link4= |sdate= |edate=}}


Parameters

  • league = The league or tournament the event is run by. Some abbreviations can be used. If no image is found for the league within Template:LeagueIconSmall, a generic logo will be generated.
  • text = Text to display.
  • link1
  • link2
  • link3
  • link4 = Links to various subdivisions of the event on comp.tf
  • sdate = Start of the event, in DD, MMM format.
  • edate = End of the event, in DD, MMM format.
  • date = For one day events, in DD, MMM format.

Example

{{TNLMulti |league=etf2l |text=[[ETF2L 6v6 Season 20]]
|link1=[[ETF2L 6v6 Season 20/Premiership|P]]
|link2=[[ETF2L 6v6 Season 20/High|H]]
|link3=[[ETF2L 6v6 Season 20/Mid|M]]
|link4=[[ETF2L 6v6 Season 20/Open|O]]
|sdate=01 Feb |edate=29 Mar |date= }}

Would generate:

ETF2L ETF2L 6v6 Season 20:  P - H - M - O
01 Feb

29 Mar


Template:

Copy this code to the page you wish to add this table to.

{{Events}}