แม่แบบ:กล่องข้อมูล อดีตเขตการปกครอง/doc

This infobox is part of WikiProject Former countries run by the Subdivisions bureau. It is based on Template:Infobox former country adjusted to suit subdivisions of former countries.
NOTE: This infobox should be used if the state in question was always a subdivision of some larger entity. For all other cases, use Infobox former country to place articles into various "Former countries" categories that would not be suitable for subdivisions of former countries.
Exception: states of the Holy Roman Empire should also use Infobox former country with HRE + vassal, city or abbey, depending on the state type.

**Notes**
Many variables concern generated categories. When categories are discussed below, it is referring to this list of currently supported categories.
*This is a rather complicated template, and should be used with care to ensure functionality. Note that most fields are optional for the infobox to function correctly. If you are unsure about anything, just skip all the optional fields and ask a developer for help.
*Anyone is welcome to use the infobox. But since it is still under construction, developers may make changes to your work. This is nothing personal. Normally this is for functionality reasons, sometimes it is to test new features of the infobox.
*Some variables below may be marked as test variables. Use these with caution and remember that these variables may be changed or deleted without notice.
*Certain historical entities may inspire heated debate among some people. Neutrality and sensitivity are required when implementing this infobox.
*If you are unsure about the usage of this template, or you have any suggestions for modifications to the infobox, or if you want to know why a certain modification was made, please contact a developer or leave a comment at the talk page. Your comments and questions assist the developers in creating, improving and documenting infobox features. Your comments and questions assist the developers in creating, improving and documenting infobox features.
This infobox is under constant development. For many entries, the infobox has been implemented by one of the main developers. Other users are welcome to implement the infobox themselves, but developers might make modifications later on largely for functionality reasons. 
The main developers are: 
*52 Pickup (talk)
*Domino theory (talk)
*MJCdetroit (talk)

**Usage**
# Almost all fields are optional, some fields are more optional than others. It is not expected that you fill in every single field that is shown here.
# Some fields are hidden but necessary for infobox functionality. Not all fields are displayed here.
# If a state has a high number of leaders (>5), do not modify this template to fit them all in. It is not the intention of this infobox to do them all; that makes the infobox way too big (any extra slots added here without previous discussion will be reverted). Instead, list only the first and last title holder, with (first) or (last) placed after the person's name.
# Some fields place the article into certain categories: see list of supported categories.
# Area (in km²) and population statistics must be given without spaces, commas, or other code. 
# Keep event text as short as possible, ideally only 1 line in length. 
# For many entries, the infobox has been implemented by one of the main developers. Other users are welcome to implement the infobox themselves, but developers might make modifications later on, largely for functionality reasons. 
# If you are unsure about the usage of this template, or if you want to know why a certain modification was made, let us know via the template talk page. Your comments and questions assist the developers in creating, improving, and documenting infobox features.

**Detailed instructions**
These are the fields of information in the Infobox former countries template with a set of instructions on how to use them. Here is a brief explanation on how to read the table:
*Field name
**the fields of information that carry information used by the template
*Usage
**required means that the template will not work properly if it is excluded
**optional means that the template will work properly without it, but available information should be entered to make it as complete as possible (actively excluding or deleting information is not endorsed just because it is called optional in this table)
*Type
**variable means that the template will only take fixed values; this can be dates, years, numerical or according to a defined list
**free means that the template will accept values given freely without having to adhere to the strict discipline required for variables
**wikilink means that a working wikilink must be entered either to an article or to the file name of an image
*Value
**examples or lists of values accepted by variables
**free text with wikilinks means that text and wikilinks can be entered freely without the kind of restrictions that applies to variables
***label is a short label typically fitting in a single line (no line break)
***entry is one or a few short labels separated by commas or line breaks (no more than a few lines)
***sentence is a short descriptive sentence (no more than a few lines)
**free text means that text can be entered, but wikilinks must not be used
*Description
**an instruction or a small guide how the particular field of information is used

**Style parameters**
The template allows some optional parameters that control the style of the infobox for size and coloring when displayed on a page:
width =  
boxstyle =  
titlestyle =  
Some specific styles for the whole infobox are as follows:
boxstyle = background:lightgray; 
boxstyle = border-color:blue; 
boxstyle = border-width:5px; 
boxstyle = margin-left:1px; margin-right:7px; 
Some specific styles for the title/name are as follows:
titlestyle = background:lightgray; 
titlestyle = color:gold; 
titlestyle = text-align:left; 
For multiple settings, combine all on one line as follows:
titlestyle = background:lightgray; color:darkgreen;
The properties are separated by semicolons (;), and beware that accidentally omitting semicolons will cause the settings to be ignored. Some style properties cannot be changed such as, setting margin-left:25px might be ignored, because margin-left is a property, instead, of the whole box, using boxstyle.

**Establishment dates**
First the template tests to see if "Category:States and territories established in the " exists.  If so, it is added.
*If not, the template tests to see if "Category:States and territories established in " exists.  If so, it is added.
*If not, the template tests to see if "Category:States and territories established in the DECADEs" where DECADE is the decade containing  (e.g. States and territories established in the 110s).  If so, it is added.
*If not, the template tests to see if "Category:States and territories established in the Nth century" where N is the century containing  (e.g. States and territories established in the 1st century BC).  If so, it is added.
The reason for the first case is in case an imprecise date is entered, such as "the 820s" or "the 18th century", before trying exact dates like "1820".

**Disestablishment dates**
First the template tests to see if "Category:States and territories disestablished in the " exists.  If so, it is added.
*If not, the template tests to see if "Category:States and territories disestablished in " exists.  If so, it is added.
*If not, the template tests to see if "Category:States and territories disestablished in the DECADEs" where DECADE is the decade containing  (e.g. States and territories disestablished in the 530s).  If so, it is added.
*If not, the template tests to see if "Category:States and territories disestablished in the Nth century" where N is the century containing  (e.g. States and territories disestablished in the 1st century BC).  If so, it is added.
The reason for the first case is in case an imprecise date is entered, such as "the 820s" or "the 18th century", before trying exact dates like "1820".

**Banner**
To allow project members to keep track of articles, any page that uses this infobox must be labeled with the WPFC banner. To do this, go to the article's talk page, and add  to the top of the talk page, if the banner is not there already. See the banner page for more information about the extra parameters that the banner supports. At the absolute minimum, the talk page should contain .