<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ATOC_US_states%2Fdoc</id>
	<title>Template:TOC US states/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ATOC_US_states%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:TOC_US_states/doc&amp;action=history"/>
	<updated>2026-04-07T13:22:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Template:TOC_US_states/doc&amp;diff=32241&amp;oldid=prev</id>
		<title>Wikipedia&gt;DePiep at 19:33, 16 March 2021</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:TOC_US_states/doc&amp;diff=32241&amp;oldid=prev"/>
		<updated>2021-03-16T19:33:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{documentation subpage}}&lt;br /&gt;
=== Basic usage===&lt;br /&gt;
There are various optional parameters:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{TOC US states|before=|DC=|PR=|UST=|after=|seealso=|refs=|extlinks=}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:*&amp;lt;code&amp;gt;before=&amp;#039;&amp;#039;links to be listed at the beginning&amp;#039;&amp;#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
:*&amp;lt;code&amp;gt;DC=y&amp;lt;/code&amp;gt;&lt;br /&gt;
:*&amp;lt;code&amp;gt;PR=y&amp;lt;/code&amp;gt;&lt;br /&gt;
:*&amp;lt;code&amp;gt;UST=y&amp;lt;/code&amp;gt;&lt;br /&gt;
:*&amp;lt;code&amp;gt;after=&amp;#039;&amp;#039;links to be listed at the end&amp;#039;&amp;#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
:*&amp;lt;code&amp;gt;seealso=y&amp;lt;/code&amp;gt;&lt;br /&gt;
:*&amp;lt;code&amp;gt;refs=y&amp;lt;/code&amp;gt;&lt;br /&gt;
:*&amp;lt;code&amp;gt;extlinks=y&amp;lt;/code&amp;gt;&lt;br /&gt;
Using &amp;lt;code&amp;gt;DC&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PR&amp;lt;/code&amp;gt; and/or &amp;lt;code&amp;gt;UST&amp;lt;/code&amp;gt; causes &amp;quot;District of Columbia&amp;quot;, &amp;quot;Puerto Rico&amp;quot; and/or &amp;quot;US Territories&amp;quot; to be inserted in the correct alphabetic position within the list of states; {{em|these three non-states are omitted by default}}. These can also be spelled out, e.g. {{para|Puerto Rico|y}}. This feature is compatible with the other handling below (e.g. {{para|DC|Washington, D.C.}} with change the displayed output).  &lt;br /&gt;
&lt;br /&gt;
For &amp;lt;code&amp;gt;before&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;after&amp;lt;/code&amp;gt;, 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 &amp;lt;code&amp;gt;&amp;quot;before&amp;quot;&amp;lt;/code&amp;gt;) or following it (in the cast of &amp;lt;code&amp;gt;&amp;quot;after&amp;quot;&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;code&amp;gt;seealso=y&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;refs=y&amp;lt;/code&amp;gt;, and/or &amp;lt;code&amp;gt;extlinks=y&amp;lt;/code&amp;gt; are present, links to a &amp;quot;See also&amp;quot;, &amp;quot;References&amp;quot;, and/or &amp;quot;External links&amp;quot; sections are included at the end.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;before&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;after&amp;lt;/code&amp;gt; lists contain one or more sequences of wikified section names, combined with &amp;#039;*&amp;#039; unordered list formatting. For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
| after = [[#Footnotes|Footnotes]]&lt;br /&gt;
* [[#Further reading|Further reading]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Review [[Special:WhatLinksHere/Template:{{BASEPAGENAME}}|other uses of this template]] for additional examples of how it can be used.&lt;br /&gt;
&lt;br /&gt;
=== Modifying the linking behavior ===&lt;br /&gt;
For all of the purposes below, the fully spelled-out codes {{para|District of Columbia}}, {{para|Puerto Rico}} and {{para|US Territoris}} must be used for those three cases, not the short versions &amp;lt;code&amp;gt;DC&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PR&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;UST&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== Removing a state ====&lt;br /&gt;
To remove a particular state from the table of contents, use {{para|State}}, where &amp;lt;code&amp;gt;State&amp;lt;/code&amp;gt; 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,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
| Kansas = | Alabama = &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
| KS = | AL = &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
would remove Kansas and Alabama from the table of contents.&lt;br /&gt;
&lt;br /&gt;
==== Unlinking a state ====&lt;br /&gt;
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&amp;#039;s link with unlinked text, than to omit it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
| KS = Kansas | AL = Alabama&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
| Kansas = Kansas | Kansas = Alabama&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Replacing a link ====&lt;br /&gt;
To change a state&amp;#039;s link, use #-link wikimarkup:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
| ND = [[#North and South Dakota|North and South Dakota]] | SD = &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
| North Dakota = [[#North and South Dakota|North and South Dakota]] | South Dakota = &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This feature can also be used to link to sections in other articles, e.g. when a [[WP:SAL|long list]] has been split into two pages. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:Wikipedia table of contents templates topical|US States]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;DePiep</name></author>
	</entry>
</feed>