User:Alfwyn/Sandbox/Template:BlockadeNavbar
|
Contents | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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, but 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:
|
Contents | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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}}.