Template:State

This template uses the following modules:
Module:State
[阅读] [编辑]Template-info.png 模板文档


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:
  • 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
  • logging,coal,iron,lead,sulfur,fishing,whaling,gold,rubber,oil
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

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 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:

Single region table 折叠
Name Type Homelands Arable land.png Arable Land Resources State Traits
Size Uses Goods wood.png Goods coal.png Goods iron.png Goods lead.png Goods sulfur.png Goods fish.png Whaling Goods gold.png Goods rubber.png Goods oil.png
Template goes here
Multi-region table 折叠
Name Type Homelands Region Arable land.png Arable Land Resources State Traits
Size Uses Goods wood.png Goods coal.png Goods iron.png Goods lead.png Goods sulfur.png Goods fish.png Whaling Goods gold.png Goods rubber.png Goods oil.png
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.

Examples

Basic info single region table
The Baltic
Name Type Homelands Arable land.png Arable Land Resources State Traits
Size Uses Goods wood.png Goods coal.png Goods iron.png Goods lead.png Goods fish.png
Example: {{State|Svealand|Capital|logging,coal,iron,lead,fishing}} results in
Svealand
  • State status capital.png
  • Swedish
30
  • Building rye farm.png Rye Farm
  • Building livestock ranch.png Livestock Ranch
23 36 18 11
State trait resources ore.png Bergslagen 
State trait resources lumber.png Scandinavian Forests 
State trait natural harbors.png Natural Harbors 
Example: {{State|Götaland|Incorporated|logging,coal,iron,lead,fishing}} results in
Götaland
  • State status incorporated.png
  • Swedish
35
  • Building rye farm.png Rye Farm
  • Building livestock ranch.png Livestock Ranch
17 15 15
State trait resources lumber.png Scandinavian Forests 
Etc.
Scania
  • State status incorporated.png
  • Swedish
20
  • Building rye farm.png Rye Farm
  • Building livestock ranch.png Livestock Ranch
5 8 10
State trait good soils.png Scanian Soils 
State trait natural harbors.png Natural Harbors 
Norrland
  • State status incorporated.png
  • Swedish
  • Sámi
22
  • Building livestock ranch.png Livestock Ranch
20 40 12
State trait resources ore.png Malmberget 
State trait resources lumber.png Scandinavian Forests 
Gotland
  • State status incorporated.png
  • Swedish
3
  • Building rye farm.png Rye Farm
  • Building livestock ranch.png Livestock Ranch
2 3
State trait good soils.png Good Soils 
'Cores' multi-region table
Gran Colombia core states
Name Core of Homelands Region Arable land.png Arable Land Resources State Traits
Size Uses Goods wood.png Goods coal.png Goods iron.png Goods sulfur.png Goods fish.png Whaling Goods rubber.png Goods oil.png
Example: {{State|Cundinamarca|Gran Colombia_c,Colombia_c|logging,coal,iron,sulfur,fishing,whaling,rubber,oil|region=yes|cores=yes|mc=yes}} results in
Cundinamarca
  • North Andean
  • Afro-Caribeño
  • Muisca
Gran Colombia 50
  • Building rice farm.png Rice Farm
  • Building livestock ranch.png Livestock Ranch
  • Building banana plantation.png Banana Plantation
  • Building coffee plantation.png Coffee Plantation
  • Building cotton plantation.png Cotton Plantation
  • Building dye plantation.png Dye Plantation
  • Building opium plantation.png Opium Plantation
  • Building sugar plantation.png Sugar Plantation
  • Building tobacco plantation.png Tobacco Plantation
7 20 (10)
State trait mountain.png Andes 
Example: {{State|Antioquía|Gran Colombia,Colombia|logging,coal,iron,sulfur,fishing,whaling,rubber,oil|region=yes|cores=yes|mc=yes}} results in
Antioquía
  • North Andean
  • Afro-Caribeño
  • Guajiro
  • Cariban
Gran Colombia 120
  • Building maize farm.png Maize Farm
  • Building livestock ranch.png Livestock Ranch
  • Building banana plantation.png Banana Plantation
  • Building coffee plantation.png Coffee Plantation
  • Building cotton plantation.png Cotton Plantation
  • Building sugar plantation.png Sugar Plantation
  • Building tobacco plantation.png Tobacco Plantation
13 32 36 8 (5)
State trait mountain.png Andes 
Etc.
Cauca
  • North Andean
  • Afro-Caribeño
  • Quechua
Gran Colombia 80
  • Building maize farm.png Maize Farm
  • Building livestock ranch.png Livestock Ranch
  • Building banana plantation.png Banana Plantation
  • Building coffee plantation.png Coffee Plantation
  • Building cotton plantation.png Cotton Plantation
  • Building dye plantation.png Dye Plantation
  • Building tobacco plantation.png Tobacco Plantation
8 20 6 2
State trait mountain.png Andes 
Guaviare
  • North Andean
  • Afro-Caribeño
  • Amazonian
Gran Colombia 60
  • Building rice farm.png Rice Farm
  • Building livestock ranch.png Livestock Ranch
  • Building banana plantation.png Banana Plantation
  • Building coffee plantation.png Coffee Plantation
  • Building dye plantation.png Dye Plantation
  • Building tobacco plantation.png Tobacco Plantation
25 (18)
State trait resources lumber.png Amazon Rainforest 
Miranda
  • North Andean
  • Afro-Caribeño
  • Cariban
Gran Colombia 60
  • Building maize farm.png Maize Farm
  • Building livestock ranch.png Livestock Ranch
  • Building banana plantation.png Banana Plantation
  • Building coffee plantation.png Coffee Plantation
  • Building cotton plantation.png Cotton Plantation
  • Building sugar plantation.png Sugar Plantation
  • Building tobacco plantation.png Tobacco Plantation
7 5 (4) (60)
Zulia
  • North Andean
  • Afro-Caribeño
  • Guajiro
  • Cariban
Gran Colombia 80
  • Building rice farm.png Rice Farm
  • Building livestock ranch.png Livestock Ranch
  • Building banana plantation.png Banana Plantation
  • Building coffee plantation.png Coffee Plantation
  • Building sugar plantation.png Sugar Plantation
  • Building tobacco plantation.png Tobacco Plantation
9 24 32 7 (4) (60)
State trait mountain.png Andes 
State trait resources fish.png Lake Maracaibo 
Bolívar
  • North Andean
  • Afro-Caribeño
  • Amazonian
  • Cariban
Gran Colombia 40
  • Building maize farm.png Maize Farm
  • Building livestock ranch.png Livestock Ranch
  • Building banana plantation.png Banana Plantation
  • Building coffee plantation.png Coffee Plantation
  • Building sugar plantation.png Sugar Plantation
25 30 3 (16) (30)
Bolívar
  • North Andean
  • Afro-Caribeño
  • Amazonian
  • Cariban
Gran Colombia 40
  • Building maize farm.png Maize Farm
  • Building livestock ranch.png Livestock Ranch
  • Building banana plantation.png Banana Plantation
  • Building coffee plantation.png Coffee Plantation
  • Building sugar plantation.png Sugar Plantation
25 30 3 (16) (30)
Pastaza
  • Amazonian
The Andes 30
  • Building maize farm.png Maize Farm
  • Building livestock ranch.png Livestock Ranch
  • Building coffee plantation.png Coffee Plantation
  • Building dye plantation.png Dye Plantation
  • Building sugar plantation.png Sugar Plantation
25 28 1 (15) (5)
State trait resources lumber.png Amazon Rainforest