(Katty von Keksburg移动页面Template:State/doc至Template:地区/doc) 标签:新重定向 |
(已移除至Template:地区/doc的重定向) 标签:移除重定向 |
||
第1行: | 第1行: | ||
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> | |||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | |||
__NOTOC__ | |||
'''State''' is used to build state data tables for country pages. It pulls defined starting information from a database and formats it in a standard way. | |||
== Parameters == | |||
{| class="wikitable" | |||
! Parameter !! Description !! Required !! Default | |||
|- | |||
| 1 || English localized state name || '''Required''' || ''none'' | |||
|- | |||
| 2 | |||
| State info, a comma-separated list of either: | |||
* State status: i.e incorporated, treaty port, etc. | |||
* List of countries with 'cores' in state: i.e. Sweden, Scandinavia, etc. | |||
| ''Optional'' || ''none'' | |||
|- | |||
| 3 | |||
| Comma-separated list of resources from the following terms | |||
* <code>logging,coal,iron,lead,sulfur,fishing,whaling,gold,rubber,oil</code> | |||
| ''Optional'' || all resources | |||
|} | |||
{| class="wikitable" | |||
! Boolean parameters !! set to ''true'', ''yes'', ''y'', ''t'', ''on'' or ''1'' to use; omit if unused | |||
|- | |||
| cores || sets parameter 2 to "core" type use | |||
|- | |||
| region || display the state's region | |||
|- | |||
| mc || Applies {{template|MultiColumn}} to ag building list | |||
|} | |||
Parameter 1 must be the proper English localized name of the state, see [[list of state regions]] for all state names. Be aware that some states use <code>’</code> in their names, this cannot be substituted with <code>'</code>. | |||
Parameter 2 can be either a list of state status types or a list of core countries.<br>For state status, the following terms can be used: | |||
* ''capital'', ''claims'', ''colony'', ''incorporated'', ''market capital'', ''split state'', ''treaty port'', ''unincorporated'' | |||
** These can be combined in a comma-separated list, such as <code>incorporated,split state</code> | |||
** They will be displayed vertically by the [[:Category:State status icons|related icon]] in the listed order. | |||
** Certain combinations should be avoided as redundant, namely: | |||
*** <code>capital,incorporated</code> | |||
*** <code>market capital,incorporated</code> | |||
*** <code>treaty port,unincorporated,split state</code> | |||
*** <code>colony,unincorporated,split state</code> | |||
For 'cores', list countries with their default name and capitalization (see [[countries]]), as a comma-separated list. If a state is the defined capital for a country, suffix the country's name with <code>_c</code>. For example, | |||
* <code>Nicaragua_c,Central America</code> | |||
The claims icon {{iconify|claims|state status||0}} can be added to a core list also, but must be placed last in the comma-separated list. | |||
== Usage == | |||
This template must be used within a table. It fits into the standard state data table as follows: | |||
{| class="wikitable plainlist mw-collapsible" | |||
|+ style="white-space: nowrap; text-align: left;" | Single region table | |||
! rowspan=2 | Name !! rowspan=2 | Type !! rowspan=2 | Homelands <!-- !! rowspan=2 | Region --><!-- Add column for multi-region tables --> | |||
! colspan=2 | {{iconify|Arable Land}} | |||
! colspan=10 | Resources | |||
! rowspan=2 | State Traits | |||
|- | |||
! Size !! Uses | |||
! {{icon|wood}} !! {{icon|coal}} !! {{icon|iron}} !! {{icon|lead}} !! {{icon|sulfur}} !! {{icon|fish}} !! {{icon|whaling}} !! {{icon|gold}} !! {{icon|rubber}} !! {{icon|oil}} | |||
|- | |||
| <code>Template goes here</code> | |||
|} | |||
{| class="wikitable plainlist mw-collapsible" | |||
|+ style="white-space: nowrap; text-align: left;" | Multi-region table | |||
! rowspan=2 | Name !! rowspan=2 | Type !! rowspan=2 | Homelands !! rowspan=2 | Region | |||
! colspan=2 | {{iconify|Arable Land}} | |||
! colspan=10 | Resources | |||
! rowspan=2 | State Traits | |||
|- | |||
! Size !! Uses | |||
! {{icon|wood}} !! {{icon|coal}} !! {{icon|iron}} !! {{icon|lead}} !! {{icon|sulfur}} !! {{icon|fish}} !! {{icon|whaling}} !! {{icon|gold}} !! {{icon|rubber}} !! {{icon|oil}} | |||
|- | |||
| <code>Template goes here</code> | |||
|} | |||
Each state in the table requires its own use of the template in a new row. The number of columns generated by the template depends on the usage of the region parameter and how many resources are given to the third parameter. | |||
== Examples == | |||
{| class="wikitable plainlist" | |||
|+ style="white-space: nowrap; text-align: left;" | Basic info single region table<br>The Baltic | |||
! rowspan=2 | Name !! rowspan=2 | Type !! rowspan=2 | Homelands | |||
! colspan=2 | {{iconify|Arable Land}} | |||
! colspan=5 | Resources | |||
! rowspan=2 | State Traits | |||
|- | |||
! Size !! Uses | |||
! {{icon|wood}} !! {{icon|coal}} !! {{icon|iron}} !! {{icon|lead}} !! {{icon|fish}} | |||
|- | |||
| colspan=11 | Example: <code><nowiki>{{State|Svealand|Capital|logging,coal,iron,lead,fishing}}</nowiki></code> results in | |||
|- | |||
| {{State|Svealand|Capital|logging,coal,iron,lead,fishing}} | |||
|- | |||
| colspan=11 | Example: <code><nowiki>{{State|Götaland|Incorporated|logging,coal,iron,lead,fishing}}</nowiki></code> results in | |||
|- | |||
| {{State|Götaland|Incorporated|logging,coal,iron,lead,fishing}} | |||
|- | |||
| colspan=11 | Etc. | |||
|- | |||
| {{State|Scania|Incorporated|logging,coal,iron,lead,fishing}} | |||
|- | |||
| {{State|Norrland|Incorporated|logging,coal,iron,lead,fishing}} | |||
|- | |||
| {{State|Gotland|Incorporated|logging,coal,iron,lead,fishing}} | |||
|} | |||
{| class="wikitable plainlist" | |||
|+ style="white-space: nowrap; text-align: left;" | 'Cores' multi-region table<br>Gran Colombia core states | |||
! rowspan=2 | Name !! rowspan=2 | Core of !! rowspan=2 | Homelands !! rowspan=2 | Region | |||
! colspan=2 | {{iconify|Arable Land}} | |||
! colspan=8 | Resources | |||
! rowspan=2 | State Traits | |||
|- | |||
! Size !! Uses | |||
! {{icon|wood}} !! {{icon|coal}} !! {{icon|iron}} !! {{icon|sulfur}} !! {{icon|fish}} !! {{icon|whaling}} !! {{icon|rubber}} !! {{icon|oil}} | |||
|- | |||
| colspan=15 | Example: <code><nowiki>{{State|Cundinamarca|Gran Colombia_c,Colombia_c|logging,coal,iron,sulfur,fishing,whaling,rubber,oil|region=yes|cores=yes|mc=yes}}</nowiki></code> results in | |||
|- | |||
| {{State|Cundinamarca|Gran Colombia_c,Colombia_c|logging,coal,iron,sulfur,fishing,whaling,rubber,oil|region=yes|cores=yes|mc=yes}} | |||
|- | |||
| colspan=15 | Example: <code><nowiki>{{State|Antioquía|Gran Colombia,Colombia|logging,coal,iron,sulfur,fishing,whaling,rubber,oil|region=yes|cores=yes|mc=yes}}</nowiki></code> results in | |||
|- | |||
| {{State|Antioquía|Gran Colombia,Colombia|logging,coal,iron,sulfur,fishing,whaling,rubber,oil|region=yes|cores=yes|mc=yes}} | |||
|- | |||
| colspan=15 | Etc. | |||
|- | |||
| {{State|Cauca|Gran Colombia,Colombia|logging,coal,iron,sulfur,fishing,whaling,rubber,oil|region=yes|cores=yes|mc=yes}} | |||
|- | |||
| {{State|Guaviare|Gran Colombia,Colombia|logging,coal,iron,sulfur,fishing,whaling,rubber,oil|region=yes|cores=yes|mc=yes}} | |||
|- | |||
| {{State|Miranda|Gran Colombia,Venezuela_c|logging,coal,iron,sulfur,fishing,whaling,rubber,oil|region=yes|cores=yes|mc=yes}} | |||
|- | |||
| {{State|Zulia|Gran Colombia,Venezuela|logging,coal,iron,sulfur,fishing,whaling,rubber,oil|region=yes|cores=yes|mc=yes}} | |||
|- | |||
| {{State|Bolívar|Gran Colombia,Venezuela|logging,coal,iron,sulfur,fishing,whaling,rubber,oil|region=yes|cores=yes|mc=yes}} | |||
|- | |||
| {{State|Bolívar|Gran Colombia,Ecuador_c|logging,coal,iron,sulfur,fishing,whaling,rubber,oil|region=yes|cores=yes|mc=yes}} | |||
|- | |||
| {{State|Pastaza|Ecuador|logging,coal,iron,sulfur,fishing,whaling,rubber,oil|region=yes|cores=yes|mc=yes}} | |||
|} |
2024年7月21日 (日) 17:31的最新版本
State is used to build state data tables for country pages. It pulls defined starting information from a database and formats it in a standard way.
Parameters
Parameter | Description | Required | Default |
---|---|---|---|
1 | English localized state name | Required | none |
2 | State info, a comma-separated list of either:
|
Optional | none |
3 | Comma-separated list of resources from the following terms
|
Optional | all resources |
Boolean parameters | set to true, yes, y, t, on or 1 to use; omit if unused |
---|---|
cores | sets parameter 2 to "core" type use |
region | display the state's region |
mc | Applies {{MultiColumn}} to ag building list
|
Parameter 1 must be the proper English localized name of the state, see list of state regions for all state names. Be aware that some states use ’
in their names, this cannot be substituted with '
.
Parameter 2 can be either a list of state status types or a list of core countries.
For state status, the following terms can be used:
- capital, claims, colony, incorporated, market capital, split state, treaty port, unincorporated
- These can be combined in a comma-separated list, such as
incorporated,split state
- They will be displayed vertically by the related icon in the listed order.
- Certain combinations should be avoided as redundant, namely:
capital,incorporated
market capital,incorporated
treaty port,unincorporated,split state
colony,unincorporated,split state
- These can be combined in a comma-separated list, such as
For 'cores', list countries with their default name and capitalization (see countries), as a comma-separated list. If a state is the defined capital for a country, suffix the country's name with _c
. For example,
Nicaragua_c,Central America
The claims icon can be added to a core list also, but must be placed last in the comma-separated list.
Usage
This template must be used within a table. It fits into the standard state data table as follows:
Name | Type | Homelands | Arable Land | Resources | State Traits | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Size | Uses | ||||||||||||||
Template goes here
|
Name | Type | Homelands | Region | Arable Land | Resources | State Traits | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Size | Uses | |||||||||||||||
Template goes here
|
Each state in the table requires its own use of the template in a new row. The number of columns generated by the template depends on the usage of the region parameter and how many resources are given to the third parameter.