Template:BlockadeTOC

From YPPedia
Key
Contender.png
Contender
Defender.png
Defender
Bkpower.png
BK Power
Sinking
Non-sinking
Brigand King
Contents
2004
Apr May Jun Jul Aug Sep Oct Nov Dec
2005
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2006
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2007
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2008
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2009
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2010
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2011
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2012
Jan
Blockade Histories
Cobalt Midnight Hunter Sage Malachite Viridian
Cerulean Emerald Meridian

Usage

These usage notes will not be included in articles bearing this template.

This template is used to display a compact table of contents on the blockade history pages. By default, the TOC lists and provides intra-page links to all of the months as included on the Midnight blockade history, up until January 2012, the last weekend for blockades on the original six production oceans. For blockades on the merged oceans dated after this point, {{BlockadeTOC2}} (Usage) should be used instead.

The display of various years and months may be suppressed by inserting a blank parameter with that year or month's name. For example, the parameter |2005=| will suppress all of 2005, while |Mar2005=| will suppress only March in 2005. This feature is useful if a particular blockade history page is missing a month or year. (Note that month names are three-letter abbreviations - Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec - and the parameter name must be entered with both month (capitalised) and year, with no space, for it to work.

In addition, up to three extra page sections may be included by using the Sec1, Sec2 and Sec3 parameters - note that the section name entered into the parameter must be exactly the same as that shown on the page itself. The table of contents also displays the blockade key, and similarly to the above, its display can be suppressed by including a blank |key=| parameter.

As an example, the code:

{{BlockadeTOC|Sec1=Win/Loss records|Sec2=See also |2004=|2005=|Jan2006=|Feb2006=|Apr2006=|Mar2006=|May2008=|Jun2008=}}

will produce:

Key
Contender.png
Contender
Defender.png
Defender
Bkpower.png
BK Power
Sinking
Non-sinking
Brigand King
Contents
2006
May Jun Jul Aug Sep Oct Nov Dec
2007
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2008
Jan Feb Mar Apr Jul Aug Sep Oct Nov Dec
2009
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2010
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2011
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2012
Jan
- Win/Loss records - - See also -
Blockade Histories
Cobalt Midnight Hunter Sage Malachite Viridian
Cerulean Emerald Meridian


Note that since this template is not strictly a table of contents (but simply functions as such) then new months must be manually added to the table as they are added to the pages.

This template is heavily based on the Wikipedia templates {{CompactTOC8}} and {{TOCDecades}}.