Template:TOC US states/doc

Basic usage
There are various optional parameters:

Using,   and/or   causes "District of Columbia", "Puerto Rico" and/or "US Territories" to be inserted in the correct alphabetic position within the list of states;. These can also be spelled out, e.g. y. This feature is compatible with the other handling below (e.g. Washington, D.C. with change the displayed output).

For  and , a wikified list of one or more section headings is supplied as an argument, and those headings are inserted, either preceding the list of states (in the case of  ) or following it (in the cast of  ).

If,  , and/or   are present, links to a "See also", "References", and/or "External links" sections are included at the end.

The  and   lists contain one or more sequences of wikified section names, combined with '*' unordered list formatting. For example: Review other uses of this template for additional examples of how it can be used.
 * after = Footnotes
 * Further reading

Modifying the linking behavior
For all of the purposes below, the fully spelled-out codes District of Columbia, Puerto Rico and US Territoris must be used for those three cases, not the short versions,   and.

Removing a state
To remove a particular state from the table of contents, use State, where  is either the name of the state, or the two letter abbreviation for the state. This is most useful in articles covering specific regions of the US, or time periods before certain states had formed. For example, or would remove Kansas and Alabama from the table of contents.
 * Kansas = | Alabama =
 * KS = | AL =

Unlinking a state
In an article where a section about a state is simply missing (e.g. due to lack of data), it is more useful to replace a state's link with unlinked text, than to omit it: or
 * KS = Kansas | AL = Alabama
 * Kansas = Kansas | Kansas = Alabama

Replacing a link
To change a state's link, use #-link wikimarkup: or
 * ND = North and South Dakota | SD =
 * North Dakota = North and South Dakota | South Dakota =

This feature can also be used to link to sections in other articles, e.g. when a long list has been split into two pages.