Template:NHLPlayoffs/doc

Purpose
This template is primarily designed for use in summarizing individual series in the Stanley Cup Playoffs of the NHL. However, the template is also suitable for other leagues such as the AHL and the ECHL with the use of additional parameters to modify the number of games and assignment of home games for the series.

Parameters
In the following parameters, the use of the symbol # is meant to denote a game number, which would then reflect the change with regards to application of that parameter.

Colors
The following parameters are responsible for controlling the colors included in the template.

Table setup
The following parameters are responsible for controlling the overall setup of the table such as the number of games included and home teams.

Details
The following parameters are responsible for the content that is communicated about the series and the individual games within the series.

Examples of usage
The following are useful examples for implementing the template.

Blank
The following blank version includes all parameters and can be used to copied directly for use.

Sample code
The following code is an example of the template at work. The following sample result is derived from this code. For further examples of the template in use, please visit the 2008 Stanley Cup Playoffs page. For nonstandard adaptations of this template, please visit the Kelly Cup Playoffs section of the 2007–08 ECHL season page.

Sample result
The following is the sample result of the default sample code found above. For further examples of the template in use, please visit the 2008 Stanley Cup Playoffs page. For nonstandard adaptations of this template, please visit the Kelly Cup Playoffs section of the 2007–08 ECHL season page.

Home team designated on right side
Alternatively, many leagues list series as the home team on the right side, such as the NHL, in a Team 1 at Team 2 style. The code below demonstrates how the "homeright" parameter can be used.

Sample result for the home team on right
The following is the sample result of the sample code found above.