Difference between revisions of "Template:Events"

From comp.tf
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<!--
+
<includeonly><!--
 
+
Blank templates for input
Use this template to add events to their respective location:
 
 
{{TNL |league= |link= |sdate= |edate= |date= }}
 
{{TNL |league= |link= |sdate= |edate= |date= }}
  
or
+
{{TNLMulti |league= |text= |link1= |link2= |link3= |link4= |sdate= |edate=}}
  
{{TNLMulti |league= |text= |link1= |link2= |link3= |link4= |sdate= |edate=}}
+
-->{{StaticEventsStart}}
 +
{{StaticEventsUpcoming}}
 +
<!--Upcoming Events Start Here, place starting soonest towards the bottom.-->
  
-->{| class="infobox right events" style="border-collapse:collapse"
 
|-
 
! style="border: 1px solid #1c1c1c; font-size:14px; background-color:#1c1c1c; color:white;" colspan="3" | <span class="controls">[<span class="plainlinks">[{{fullurl:Template:Events|action=edit}} edit]</span>]</span> TF2 Events
 
|-
 
! style="border:0; padding:2px; background-color:#f9f9f9" colspan=3 | <div style="background-color:#eaf5fe; width:300px; border:1px solid #ccc">Upcoming</div>
 
<!--Upcoming Events Start Here, place starting soonest towards the bottom.-->
 
  
 +
{{StaticEventsOngoing}}
 +
<!--Ongoing Events Start Here, place ending soonest towards the bottom.-->
  
|-
 
! style="border:0; padding:2px; background-color:#f9f9f9" colspan=3 | <div style="background-color:#ebfeea; width:300px; border:1px solid #ccc">Ongoing</div>
 
  <!--Ongoing Events Start Here, place ending soonest towards the bottom.-->
 
  
  
|-
+
{{StaticEventsCompleted}}
! style="border:0; padding:2px; background-color:#f9f9f9" colspan=3 | <div style="background-color:#feeeea; width:300px; border:1px solid #ccc">Completed</div>
+
<!--Ongoing Events Start Here, place ending soonest towards the bottom.-->
<!--Completed Events Start Here, place most recently completed events at the top.-->
 
 
{{TNL |league=bf|link=[[TBFC_Season_5/Invite|Brasil Fortress Season 5]]|sdate=12 Feb |edate=19 Apr |date= }}
 
{{TNL |league=bf|link=[[TBFC_Season_5/Invite|Brasil Fortress Season 5]]|sdate=12 Feb |edate=19 Apr |date= }}
|-
 
|}
 
<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.
 
 
'''After 1 month of being completed events should be completely removed from the Completed tab to make space for new upcoming and ongoing events.'''
 
 
=== Template: ===
 
Copy this code to the page you wish to add this table to.
 
<pre>
 
{{Events}}
 
</pre>
 
 
  
  
[[Category:Main page templates]]
+
{{StaticEventsEnd}}
[[Category:Template]]
+
</includeonly><noinclude>{{Documentation}}[[Category:Main page templates]][[Category:Template]]</noinclude>

Revision as of 14:34, 12 May 2020

(view - edit) Documentation

[edit] TF2 Events
Upcoming


Ongoing


Completed
Brasil_Fortress Brasil Fortress Season 5
12 Feb

19 Apr



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}}