Template:EventList

From Star Trek Timelines Wiki
Jump to navigation Jump to search


This template is used to add a event rankings list to a user page. This template is to be used in conjunction with {{EventListHeader}}.

Version History


Version History
Version Release
Date
Release Notes
v1.0 11/15/16
  • Initial Release
v1.1
v1.2.0
  • Improved readability of template code.
  • Fixed vertical alignment glitch introduced in v0.2
  • Added disclaimers to documentation about template not working properly
    with specific events with non-standard image names.
  • Fully implemented {{EventListHeader}} throughout documentation.
v1.2.1
  • Added disclaimer in documentation about template not working properly
    with event 13 because of no image file existing.
v1.2.2
  • Removed disclaimer in documentation about template not working properly
    with event 13 because of no image file existing.
v1.3 11/23/16
  • Changed EventNumber to being optional.
  • Changed Rank to being optional to allow for implementation on Events page.
  • Added EndDate as an optional parameter.
  • Changed the output for Galaxy Events to the newly uploaded image.
  • Removed disclaimer in documentation about events 1, 2 and 4's images
    not working because image file names have been corrected.
v1.4 11/24/16
  • Fixed missing file error if the event image does not exist.
v2.0 11/27/16
  • Changed StartDate to being optional.
  • Added Version History to template documentation.
  • Added Table of Contents to template documentation.
  • Added headers throughout template documentation.
  • Fixed multiple issues in Explanation of Use section of documentation.
v2.1 11/28/16
  • Changed formatting of Date column if EndDate is present.
  • Added EndDate to examples in template documentation
    to show new formatting.
v2.1.1
v2.2
  • Added the ability to include Factions in template. This is optional.
  • Updated Examples and Explanation of Use sections using Factions.
v2.2.1
  • Added captions to the event type icons.
v2.3 11/30/16
  • Added Event Type below Event Icon.
v2.4 12/01/16
  • Added Event Name as a caption to Event Picture.
v2.4.1 12/05/16
  • Added note to Explanation of Use section of template documentation.
v2.4.2
  • Fixed spacing at top of Template Documentation.
v2.5 12/08/16
v2.5.1
  • Modified Explanation of Use Section in Template Documentation.
v2.5.2
  • Modified SquadRank section in template.
v2.5.3
v2.5.4
v2.5.5
v2.6
  • Modified SquadRank section in template to ensure that if SquadRank is
    not present it will not effect vertical alignment of the rightmost column.
v2.6.1
  • Modified Version History.
v3.0 12/14/16
  • Modified Template to check if event name is "Unlikely Heroes" and if it is
    the template will not attempt to add an image. This is to prevent too many
    expensive function calls as more events are added to the game.
v3.0.1 12/21/16
  • Modified Documentation to use Template:Tl {{Tl}}.
v3.0.2 1/9/17
  • Added section "Blank Template Code" to template documentation.
v3.1 1/11/17
  • Added ability to add up to 10 crew using template.
v3.1.1
  • Fixed error in code for "crew5" introduced in v3.1
v3.2 1/16/17
  • Changed Crew to be optional
v3.2.1
v3.3 1/22/17
v3.4 2/8/17
  • Added Hybrid event option.
  • Modified documentation to include new option.
v3.4.1 3/19/17
  • Corrected "Augment" to "Augments" in documentation. (Correction to v2.2)
v3.4.2 7/25/17
v3.4.3 12/27/17
  • Had to edit slightly for event "Operation: Earth". The colon messed things up.
v3.4.4 2/05/18
  • Added "y" and "n" as valid responses to "Factions" parameter.
  • Also, fixed odd bug that did not center the faction icons if there were no Rank.
v3.5 5/28/18
  • Added a bit of code for Skirmish events.
v3.6 7/30/18
  • Changed if check for crew# to be any crew# (crew1 or crew 2 or crew3 etc.).
    This helps for mega events where the 5* crew is known,
    so that crew member can be crew4.

Explanation of Use


{{EventListHeader}}    ← At top of Events list. See Template documentation on this templates page for the different options for this template.
{{EventList|           ← One per Event Member
| Name=                ← Event Name
| NoImage=             ← Used for events where no image exists.
| Shuttle=             ← Yes if Shuttle event, if not shuttle event: delete or leave blank
| Galaxy=              ← Yes if Galaxy event, if not galaxy event: delete or leave blank
| Expedition=          ← Yes if Expedition event, if not expedition event: delete or leave blank
| Hybrid=              ← Yes if Hybrid event, if not hybrid event: delete or leave blank
| Crew1=               ← The 1st Crew member for event (Optional)
| Crew2=               ← The 2nd Crew member for event (Optional)
| Crew3=               ← The 3rd Crew member for event (Optional)
| Crew#=               ← The nth Crew member for event (Optional) See Note below
| StartDate=           ← The Start Date for the event. (Optional)
| EndDate=             ← The End Date for the event. (Optional)
| EventNumber=         ← The event number. (Optional)
| Rank=                ← Your rank for the event (Optional, however mandatory if SquadRank is present)
| SquadRank=           ← Your Squad's rank for the event (Optional)
| Faction=             ← Yes if there are factions for this event, blank if there are not. (Optional)
| Augments=            ← Yes if this faction took part, if not, delete or leave blank. (Optional)
| Bajoran=             ← Yes if this faction took part, if not, delete or leave blank. (Optional)
| Borg=                ← Yes if this faction took part, if not, delete or leave blank. (Optional)
| Cardassian=          ← Yes if this faction took part, if not, delete or leave blank. (Optional)
| Dominion=            ← Yes if this faction took part, if not, delete or leave blank. (Optional)
| Federation=          ← Yes if this faction took part, if not, delete or leave blank. (Optional)
| F.Alliance=          ← Yes if this faction took part, if not, delete or leave blank. (Optional)
| F.Traditionalists=   ← Yes if this faction took part, if not, delete or leave blank. (Optional)
| Hirogen=             ← Yes if this faction took part, if not, delete or leave blank. (Optional)
| KCA=                 ← Yes if this faction took part, if not, delete or leave blank. (Optional)
| Klingon=             ← Yes if this faction took part, if not, delete or leave blank. (Optional)
| Maquis=              ← Yes if this faction took part, if not, delete or leave blank. (Optional)
| Romulan=             ← Yes if this faction took part, if not, delete or leave blank. (Optional)
| Section31=           ← Yes if this faction took part, if not, delete or leave blank. (Optional)
| Terran=              ← Yes if this faction took part, if not, delete or leave blank. (Optional)
}}
|}                     ← [REQUIRED] Closes Table

NOTE: Up to 10 crew can be added using additional | Crew#= replacing the "#" with the number of the crew.

Explanation of repeated use


Used many times:

{{EventListHeader}}
{{EventList|
...
}}
{{EventList|
...
}}
{{EventList|
...
}}
|}

Blank Template Code


Blank Template Code
If used on Events page, please remove "Rank" and SquadRank" options.
{{EventList|EventNumber= |Name=
| Shuttle= 
| Galaxy= 
| Expedition= 
| Hybrid= 
| Crew1= 
| Crew2= 
| Crew3= 
| Crew4= 
| StartDate= 
| EndDate= 
| Rank= 
| SquadRank= 
| Faction= 
| Augment= 
| Bajoran= 
| Cardassian= 
| Dominion= 
| Federation= 
| F.Alliance= 
| F.Traditionalists= 
| Hirogen= 
| KCA= 
| Klingon= 
| Maquis= 
| Romulan= 
| Section31= 
| Terran= 
}}


Example Code


{{EventListHeader|UserPage3}}
{{EventList|
| Name= Contingency Plan
| Galaxy= Yes
| Crew1= "Dark Ages" McCoy
| Crew2= Changeling Bashir
| Crew3= Civil War Worf
| StartDate= June 16th, 2016
| EventNumber= 5
| Rank= 1,752
| Faction= No
}}
{{EventList|
| Name= Season of Love
| Shuttle= Yes
| Crew1= Kal-if-fee Kirk
| Crew2= Kal-if-fee Spock
| StartDate= June 30th
| EndDate= July 5th, 2016
| EventNumber= 6
| Rank= 1,503
| Faction= Yes
| Federation= Yes
}}
{{EventList|
| Name= The Game's Afoot
| Expedition=Yes
| Crew1= Detective Data
| Crew2= Doctor La Forge
| StartDate= July 15th, 2016
| EventNumber= 7
| Rank= 1,348
| Faction= no
}}
|}

Example Result


Event
Number
Event Date Event Crew Event Name Event Picture Event Type Factions Rank
5 June 16th, 2016 "Dark Ages" McCoy
Changeling Bashir
Civil War Worf
Contingency Plan Contingency Plan Galaxy Event
Galaxy Event
1,752
6 June 30th –
July 5th, 2016
Kal-if-fee Kirk
Kal-if-fee Spock
Season of Love Season of Love Shuttle Event
Shuttle Event
Augments Federation Section 31 1,503
7 July 15th, 2016 Detective Data
Doctor La Forge
The Game's Afoot The Game's Afoot Expedition Event
Expedition Event
1,348
8 May 31st, 2016 Enemy Lines Sisko
Roga Danar
Young Khan
Catching Fire Catching Fire Skirmish Event
Skirmish Event
1,264