Difference between revisions of "Template:MatchList/doc"

From comp.tf
Jump to navigation Jump to search
m (→‎Parameters: Updated)
m (Updated)
Line 9: Line 9:
 
<pre>{{MatchList
 
<pre>{{MatchList
 
|match1={{MatchMaps
 
|match1={{MatchMaps
|T1=4-25|T2=Danger Dogs|winner=draw
+
|team1=4-25|team2=Danger Dogs|winner=draw
 
|games1=3|games2=3
 
|games1=3|games2=3
|map1=cp_granary_pro_b9|map1win=2|map1score=2-3
+
|details={{BracketMatchSummary
|map2=cp_badlands|map2win=1|map2score=3-2
+
  | date=May 19, 2015 - 21:15 {{abbr/CEST}} |finished=1
 +
  | match1={{Game
 +
    | t1score=0
 +
    | t2score=5
 +
    | map=cp_badlands
 +
    | win=2
 +
  }}
 +
  | match2={{Game
 +
    | t1score=0
 +
    | t2score=5
 +
    | map=cp_snakewater_final1
 +
    | win=2
 +
  }}
 +
  | details={{Details
 +
    | log1=826611
 +
    | log2=826684
 +
    | vod1=dt5P6mXitic?t=17m2s
 +
    | vod2=dt5P6mXitic?t=35m37s
 +
  }}
 +
}}
 
}}
 
}}
 
}}</pre>
 
}}</pre>
Line 19: Line 38:
 
{{MatchList
 
{{MatchList
 
|match1={{MatchMaps
 
|match1={{MatchMaps
|T1=4-25|T2=Danger Dogs|winner=draw
+
|team1=4-25|team2=Danger Dogs|winner=draw
 
|games1=3|games2=3
 
|games1=3|games2=3
|map1=cp_granary_pro_b9|map1win=2|map1score=2-3
+
|details={{BracketMatchSummary
|map2=cp_badlands|map2win=1|map2score=3-2
+
  | date=May 19, 2015 - 21:15 {{abbr/CEST}} |finished=1
 +
  | match1={{Game
 +
    | t1score=0
 +
    | t2score=5
 +
    | map=cp_badlands
 +
    | win=2
 +
  }}
 +
  | match2={{Game
 +
    | t1score=0
 +
    | t2score=5
 +
    | map=cp_snakewater_final1
 +
    | win=2
 +
  }}
 +
  | details={{Details
 +
    | log1=826611
 +
    | log2=826684
 +
    | vod1=dt5P6mXitic?t=17m2s
 +
    | vod2=dt5P6mXitic?t=35m37s
 +
  }}
 +
}}
 
}}
 
}}
 
}}
 
}}
Line 54: Line 92:
  
 
=== MatchMaps ===
 
=== MatchMaps ===
;|T1=
+
;|team1=
;|T2=
+
;|team2=
 
:set the team names. These will generate templates for their icon and tags under Team2/ and Team1/ respectively.
 
:set the team names. These will generate templates for their icon and tags under Team2/ and Team1/ respectively.
 
;|winner=
 
;|winner=
Line 61: Line 99:
 
;|default=
 
;|default=
 
:set this to "1" or "2" if the player won due to a default, such as a no show or dropping teams. '''|winner='''.
 
:set this to "1" or "2" if the player won due to a default, such as a no show or dropping teams. '''|winner='''.
;|mapX=
 
:set the name of the map.
 
;|mapXwin=
 
:set this to "1", "2", "skip" or "draw" to either set a winner or show the map wasn't played or had no winner.
 
 
;|comment=
 
;|comment=
 
:(Optional) Put a comment here.
 
:(Optional) Put a comment here.
Line 71: Line 105:
 
;|finished=
 
;|finished=
 
:(Optional) Mark the match as finished (Which will remove the "LIVE!" sign).
 
:(Optional) Mark the match as finished (Which will remove the "LIVE!" sign).
;|stream=
+
;|details=
:(Optional) Add a stream to the match (complete URL).
+
:(Optional) Add details about the game, to be used with <nowiki>{{</nowiki>[[Template:BracketMatchSummary|BracketMatchSummary]]<nowiki>}}</nowiki>.
;|preview=
 
:(Optional) Add a link to a preview.
 
;|lrthread=
 
:(Optional) Add a link to a Live Report thread.
 
;|review=
 
:(Optional) Add a link to a review.
 
;|interview=
 
:(Optional) Add a link to an interview.
 
;|log=
 
;|loggc=
 
:(Optional) Add a logs.tf link for a single game.
 
;|logX=
 
;|logXgc=
 
:(Optional) Add logs.tf links. Only the number of the log is required. X is currently from '''1 - 3'''
 
;|eseaX
 
:(Optional) Link to the ESEA match/stats page here. X may be left blank if there is only one page, if there are multiple games however, X is currently from '''1 - 3'''/
 
;|etf2l=
 
:(Optional) Link to the ETF2L match page. Only the match number is required.
 
;|tftv=
 
:(Optional) Link to the teamfortress.tv page here. Only the thread number is required.
 
;|youtube=
 
;|youtubegc=
 
:(Optional) Add a link to a VOD for a single game
 
;|youtubeX=
 
;|youtubeXgc=
 
:(Optional) Add a link to a VOD. X is currently from '''1 - 3'''
 
  
 
== Snippet code ==
 
== Snippet code ==
Line 142: Line 150:
 
|date= |finished=
 
|date= |finished=
 
|T1= |T2= |winner=
 
|T1= |T2= |winner=
|stream=
+
|details={{BracketMatchSummary
|preview=
+
  | date= |finished=
|lrthread=
+
  | match1={{Game
|review=
+
    | t1score=
|recap=
+
    | t2score=
|interview=
+
    | map=
|vod=
+
    | win=
|comment=
+
  }}
|etf2l=
+
  | match2={{Game
|esea=
+
    | t1score=
|esea1=
+
    | t2score=
|esea2=
+
    | map=
|esea3=
+
    | win=
|map1= |map1win= |youtube= |log=
+
  }}
|map2= |map2win= |vodgame1= |log1=
+
  | details={{Details
|map3= |map3win= |vodgame2= |log2= |log3=
+
    | log1=
 +
    | log1gc=
 +
    | log2=
 +
    | log2gc=
 +
    | log3=
 +
    | log3gc=
 +
    | vod1=
 +
    | vod2=
 +
    | vod3=
 +
  }}
 +
}}
 
}}
 
}}
 
</pre>
 
</pre>

Revision as of 03:00, 23 August 2015

The main feature is to show a list of matches in a group with the maps that were played if the person so wishes to expand the list. Also the template calculates the score automatically based on the wins that are registered for each player. It supports a eight player round robin style group (29 matches) with the matches being up to best of nine.

A big way this template differs from most others is that you will use another template within the MatchList template.

Example

The code:

{{MatchList
|match1={{MatchMaps
|team1=4-25|team2=Danger Dogs|winner=draw
|games1=3|games2=3
|details={{BracketMatchSummary
   | date=May 19, 2015 - 21:15 {{abbr/CEST}} |finished=1
   | match1={{Game
     | t1score=0
     | t2score=5
     | map=cp_badlands
     | win=2
   }}
   | match2={{Game
     | t1score=0
     | t2score=5
     | map=cp_snakewater_final1
     | win=2
   }}
   | details={{Details
     | log1=826611
     | log2=826684
     | vod1=dt5P6mXitic?t=17m2s
     | vod2=dt5P6mXitic?t=35m37s
   }}
 }}
}}
}}

Gives us:

Parameters

MatchList

|hide=
set to "false" to not have the match list collapsed.
|width=
set to the amount of pixels, ems, or percent, default is 300px.
|uncollapsed-maps=
set to "true" to have the maps shown when the table is not collapsed.
|class=
set your own classes, default is "wikitable collapsible collapsed".
|title=
set the title of the table, default is "Match List".
|matchX=
This is where you will insert the MatchMaps template.
|preview=
(Optional) Put a link to a preview here.
|lrthread=
(Optional) Put a link to the live report thread here.
|vod=
(Optional) Put a link to the VOD(s) here.
|interview=
(Optional) Put a link to the interview(s) here.
|recap=
(Optional) Put a link to the recap here.
|comment=
(Optional) Put a comment here.

MatchMaps

|team1=
|team2=
set the team names. These will generate templates for their icon and tags under Team2/ and Team1/ respectively.
|winner=
set the winner of the match with entering "1", "2" or "draw".
|default=
set this to "1" or "2" if the player won due to a default, such as a no show or dropping teams. |winner=.
|comment=
(Optional) Put a comment here.
|date=
(Optional) Put a date here (includes countdown).
|finished=
(Optional) Mark the match as finished (Which will remove the "LIVE!" sign).
|details=
(Optional) Add details about the game, to be used with {{BracketMatchSummary}}.

Snippet code

For MatchList

{{MatchList
|match1=
|match2=
|match3=
|match4=
|match5=
|match6=
|match7=
|match8=
|match9=
|match10=
|match11=
|match12=
|match13=
|match14=
|match15=
|match16=
|match17=
|match18=
|match19=
|match20=
|match21=
|match22=
|match23=
|match24=
|match25=
|match26=
|match27=
|match28=
|match29=
}}

For MatchMaps

{{MatchMaps
|date= |finished=
|T1= |T2= |winner=
|details={{BracketMatchSummary
   | date= |finished=
   | match1={{Game
     | t1score=
     | t2score=
     | map=
     | win=
   }}
   | match2={{Game
     | t1score=
     | t2score=
     | map=
     | win=
   }}
   | details={{Details
     | log1=
     | log1gc=
     | log2=
     | log2gc=
     | log3=
     | log3gc=
     | vod1=
     | vod2=
     | vod3=
   }}
 }}
}}