Difference between revisions of "Template:RegionsTable"
(cat added + small corrections) |
(herp derp) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>The original territory of {{#switch:{{RegionLink/Original|{{{1|}}}}}|UK=the [[United Kingdom]]|USA=the [[United States of America]]|Netherlands=the [[Netherlands]]|Philippines=the [[Philippines]]|#default=[[{{RegionLink/Original|{{{1|}}}}}]]}} is composed of several regions: | <includeonly>The original territory of {{#switch:{{RegionLink/Original|{{{1|}}}}}|UK=the [[United Kingdom]]|USA=the [[United States of America]]|Netherlands=the [[Netherlands]]|Philippines=the [[Philippines]]|#default=[[{{RegionLink/Original|{{{1|}}}}}]]}} is composed of several regions: | ||
− | {{#if:{{{1|}}}|{{RegionsTable/Occupied|{{{1|}}}}}}}{{#if:{{{2|}}}|{{RegionsTable/Occupied|{{{2|}}}}}}}{{#if:{{{3|}}}|{{RegionsTable/Occupied|{{{3|}}}}}}}{{#if:{{{4|}}}|{{RegionsTable/Occupied|{{{4|}}}}}}}{{#if:{{{5|}}}|{{RegionsTable/Occupied|{{{5|}}}}}}}{{#if:{{{6|}}}|{{RegionsTable/Occupied|{{{6|}}}}}}}{{#if:{{{7|}}}|{{RegionsTable/Occupied|{{{7|}}}}}}}{{#if:{{{8|}}}|{{RegionsTable/Occupied|{{{8|}}}}}}}{{#if:{{{9|}}}|{{RegionsTable/Occupied|{{{9|}}}}}}}{{#if:{{{10|}}}|{{RegionsTable/Occupied|{{{10|}}}}}}} | + | {{#if:{{{1|}}}|{{RegionsTable/Occupied|{{{1|}}}}}}}{{#if:{{{2|}}}|{{RegionsTable/Occupied|{{{2|}}}}}}}{{#if:{{{3|}}}|{{RegionsTable/Occupied|{{{3|}}}}}}}{{#if:{{{4|}}}|{{RegionsTable/Occupied|{{{4|}}}}}}}{{#if:{{{5|}}}|{{RegionsTable/Occupied|{{{5|}}}}}}}{{#if:{{{6|}}}|{{RegionsTable/Occupied|{{{6|}}}}}}}{{#if:{{{7|}}}|{{RegionsTable/Occupied|{{{7|}}}}}}}{{#if:{{{8|}}}|{{RegionsTable/Occupied|{{{8|}}}}}}}{{#if:{{{9|}}}|{{RegionsTable/Occupied|{{{9|}}}}}}}{{#if:{{{10|}}}|{{RegionsTable/Occupied|{{{10|}}}}}}}{{#if:{{{11|}}}|{{RegionsTable/Occupied|{{{11|}}}}}}}{{#if:{{{12|}}}|{{RegionsTable/Occupied|{{{12|}}}}}}}{{#if:{{{13|}}}|{{RegionsTable/Occupied|{{{13|}}}}}}}{{#if:{{{14|}}}|{{RegionsTable/Occupied|{{{14|}}}}}}}{{#if:{{{15|}}}|{{RegionsTable/Occupied|{{{15|}}}}}}}{{#if:{{{16|}}}|{{RegionsTable/Occupied|{{{16|}}}}}}}{{#if:{{{17|}}}|{{RegionsTable/Occupied|{{{17|}}}}}}}{{#if:{{{18|}}}|{{RegionsTable/Occupied|{{{18|}}}}}}}{{#if:{{{19|}}}|{{RegionsTable/Occupied|{{{19|}}}}}}}{{#if:{{{20|}}}|{{RegionsTable/Occupied|{{{20|}}}}}}}{{#if:{{{21|}}}|{{RegionsTable/Occupied|{{{21|}}}}}}}{{#if:{{{22|}}}|{{RegionsTable/Occupied|{{{22|}}}}}}}{{#if:{{{23|}}}|{{RegionsTable/Occupied|{{{23|}}}}}}}{{#if:{{{24|}}}|{{RegionsTable/Occupied|{{{24|}}}}}}}{{#if:{{{25|}}}|{{RegionsTable/Occupied|{{{25|}}}}}}}{{#if:{{{26|}}}|{{RegionsTable/Occupied|{{{26|}}}}}}}{{#if:{{{27|}}}|{{RegionsTable/Occupied|{{{27|}}}}}}}{{#if:{{{28|}}}|{{RegionsTable/Occupied|{{{28|}}}}}}}{{#if:{{{29|}}}|{{RegionsTable/Occupied|{{{29|}}}}}}}{{#if:{{{30|}}}|{{RegionsTable/Occupied|{{{30|}}}}}}}{{#if:{{{31|}}}|{{RegionsTable/Occupied|{{{31|}}}}}}}{{#if:{{{32|}}}|{{RegionsTable/Occupied|{{{32|}}}}}}}{{#if:{{{33|}}}|{{RegionsTable/Occupied|{{{33|}}}}}}}{{#if:{{{34|}}}|{{RegionsTable/Occupied|{{{34|}}}}}}}{{#if:{{{35|}}}|{{RegionsTable/Occupied|{{{35|}}}}}}}{{#if:{{{36|}}}|{{RegionsTable/Occupied|{{{36|}}}}}}}{{#if:{{{37|}}}|{{RegionsTable/Occupied|{{{37|}}}}}}}{{#if:{{{38|}}}|{{RegionsTable/Occupied|{{{38|}}}}}}}{{#if:{{{39|}}}|{{RegionsTable/Occupied|{{{39|}}}}}}}{{#if:{{{40|}}}|{{RegionsTable/Occupied|{{{40|}}}}}}}{{#if:{{{41|}}}|{{RegionsTable/Occupied|{{{41|}}}}}}}{{#if:{{{42|}}}|{{RegionsTable/Occupied|{{{42|}}}}}}}{{#if:{{{43|}}}|{{RegionsTable/Occupied|{{{43|}}}}}}}{{#if:{{{44|}}}|{{RegionsTable/Occupied|{{{44|}}}}}}}{{#if:{{{45|}}}|{{RegionsTable/Occupied|{{{45|}}}}}}}{{#if:{{{46|}}}|{{RegionsTable/Occupied|{{{46|}}}}}}}{{#if:{{{47|}}}|{{RegionsTable/Occupied|{{{47|}}}}}}}{{#if:{{{48|}}}|{{RegionsTable/Occupied|{{{48|}}}}}}}{{#if:{{{49|}}}|{{RegionsTable/Occupied|{{{49|}}}}}}}{{#if:{{{50|}}}|{{RegionsTable/Occupied|{{{50|}}}}}}}{{#if:{{{last|}}}|and '''[[{{{last}}}]]'''{{#ifeq: {{Occupied|{{{last}}}|{{RegionLink/Original|{{{last}}}}}}}|Not occupied|| (occupied by [[File:Icon-{{Regions/Owners|{{{last}}}}}.png|20px|link={{Regions/Owners|{{{last}}}}}]])}}.}} |
− | {{#if:{{{11|}}}|{{RegionsTable/Occupied|{{{11|}}}}}}}{{#if:{{{12|}}}|{{RegionsTable/Occupied|{{{12|}}}}}}}{{#if:{{{13|}}}|{{RegionsTable/Occupied|{{{13|}}}}}}}{{#if:{{{14|}}}|{{RegionsTable/Occupied|{{{14|}}}}}}}{{#if:{{{15|}}}|{{RegionsTable/Occupied|{{{15|}}}}}}}{{#if:{{{16|}}}|{{RegionsTable/Occupied|{{{16|}}}}}}}{{#if:{{{17|}}}|{{RegionsTable/Occupied|{{{17|}}}}}}}{{#if:{{{18|}}}|{{RegionsTable/Occupied|{{{18|}}}}}}}{{#if:{{{19|}}}|{{RegionsTable/Occupied|{{{19|}}}}}}}{{#if:{{{20|}}}|{{RegionsTable/Occupied|{{{20|}}}}}}} | + | |
− | {{#if:{{{21|}}}|{{RegionsTable/Occupied|{{{21|}}}}}}}{{#if:{{{22|}}}|{{RegionsTable/Occupied|{{{22|}}}}}}}{{#if:{{{23|}}}|{{RegionsTable/Occupied|{{{23|}}}}}}}{{#if:{{{24|}}}|{{RegionsTable/Occupied|{{{24|}}}}}}}{{#if:{{{25|}}}|{{RegionsTable/Occupied|{{{25|}}}}}}}{{#if:{{{26|}}}|{{RegionsTable/Occupied|{{{26|}}}}}}}{{#if:{{{27|}}}|{{RegionsTable/Occupied|{{{27|}}}}}}}{{#if:{{{28|}}}|{{RegionsTable/Occupied|{{{28|}}}}}}}{{#if:{{{29|}}}|{{RegionsTable/Occupied|{{{29|}}}}}}}{{#if:{{{30|}}}|{{RegionsTable/Occupied|{{{30|}}}}} | + | |
− | }}{{#if:{{{31|}}}|{{RegionsTable/Occupied|{{{31|}}}}}}}{{#if:{{{32|}}}|{{RegionsTable/Occupied|{{{32|}}}}}}}{{#if:{{{33|}}}|{{RegionsTable/Occupied|{{{33|}}}}}}}{{#if:{{{34|}}}|{{RegionsTable/Occupied|{{{34|}}}}}}}{{#if:{{{35|}}}|{{RegionsTable/Occupied|{{{35|}}}}}}}{{#if:{{{36|}}}|{{RegionsTable/Occupied|{{{36|}}}}}}}{{#if:{{{37|}}}|{{RegionsTable/Occupied|{{{37|}}}}}}}{{#if:{{{38|}}}|{{RegionsTable/Occupied|{{{38|}}}}}}}{{#if:{{{39|}}}|{{RegionsTable/Occupied|{{{39|}}}}}}}{{#if:{{{40|}}}|{{RegionsTable/Occupied|{{{40|}}}}}}} | + | |
− | {{#if:{{{41|}}}|{{RegionsTable/Occupied|{{{41|}}}}}}}{{#if:{{{42|}}}|{{RegionsTable/Occupied|{{{42|}}}}}}}{{#if:{{{43|}}}|{{RegionsTable/Occupied|{{{43|}}}}}}}{{#if:{{{44|}}}|{{RegionsTable/Occupied|{{{44|}}}}}}}{{#if:{{{45|}}}|{{RegionsTable/Occupied|{{{45|}}}}}}}{{#if:{{{46|}}}|{{RegionsTable/Occupied|{{{46|}}}}}}}{{#if:{{{47|}}}|{{RegionsTable/Occupied|{{{47|}}}}}}}{{#if:{{{48|}}}|{{RegionsTable/Occupied|{{{48|}}}}}}}{{#if:{{{49|}}}|{{RegionsTable/Occupied|{{{49|}}}}}}}{{#if:{{{50|}}}|{{RegionsTable/Occupied|{{{50|}}}}}}} | + | |
− | {{#if:{{{last|}}}|and '''[[{{{last}}}]]'''{{#ifeq: {{Occupied|{{{last}}}|{{RegionLink/Original|{{{last}}}}}}}|Not occupied|| (occupied by [[File:Icon-{{Regions/Owners|{{{last}}}}}.png|20px|link={{Regions/Owners|{{{last}}}}}]])}}.}} | + | |
<br /><br /> | <br /><br /> | ||
'''Its current territories are listed below:''' | '''Its current territories are listed below:''' |
Revision as of 13:25, 19 April 2015
Usage
This automatically updating table displays all the current territories of a country. For the purpose of convenience, the country's original regions are shown separately from the table.
Limits and other info
- Maximum of seventy (70) total regions
- Maximum of fifty-two (52) original regions, including the capital region
- Capitals are always listed first
Code
{{RegionsTable|<Original region 1>|<Original region 2>|<Original region 3>|last=<Original region 4>|showprod=<0 or 1>|showmap=<0 or 1>}}
- Please type
last=
before the last original region in the list, so instead of:
{{RegionsTable|Northern Netherlands|Southern Netherlands|Western Netherlands|Eastern Netherlands|showprod=0|showmap=0}}
- please use
{{RegionsTable|Northern Netherlands|Southern Netherlands|Western Netherlands|last=Eastern Netherlands|showprod=0|showmap=0}}
.
- Although it may seem trivial, it allows the template to work correctly.
- Setting showprod to 1 shows what natural resources a region has, while setting it to 0 hides the additional information.
- Setting showmap to 1 shows maps of the regions (which may sometimes be missing), while setting it to 0 hides the maps.
- Setting showmap to 2 shows links to maps of the regions, instead of the full maps themselves.
Example
Sample Code
{{RegionsTable|Alabama|Alaska|Arizona|Arkansas|California|Colorado|Connecticut|Delaware|District of Columbia|Florida|Georgia|Hawaii|Idaho|Illinois| Indiana|Iowa|Kansas|Kentucky|Las Villas|Louisiana|Maine|Maryland|Massachusetts|Michigan|Minnesota|Mississippi|Missouri|Montana|Nebraska|Nevada|New Hampshire| New Jersey|New Mexico|New York|North Carolina|North Dakota|Ohio|Oklahoma|Oregon|Pennsylvania|Pyongan|Rhode Island|South Carolina| South Dakota|Tennessee|Texas|Utah|Vermont|Virginia|Washington|West Virginia|Wisconsin|last=Wyoming|showprod=1|showmap=2}}
Demonstration
The original territory of the United States of America is composed of several regions:
Alabama (occupied by ), Alaska, Arizona (occupied by ), Arkansas (occupied by ), California, Colorado, Connecticut, Delaware (occupied by ), District of Columbia, Florida, Georgia, Hawaii, Idaho (occupied by ), Illinois (occupied by ), Indiana (occupied by ), Iowa (occupied by ), Kansas (occupied by ), Kentucky, Las Villas (occupied by ), Louisiana (occupied by ), Maine (occupied by ), Maryland (occupied by ), Massachusetts (occupied by ), Michigan, Minnesota (occupied by ), Mississippi (occupied by ), Missouri (occupied by ), Montana (occupied by ), Nebraska, Nevada (occupied by ), New Hampshire, New Jersey (occupied by ), New Mexico, New York (occupied by ), North Carolina (occupied by ), North Dakota, Ohio (occupied by ), Oklahoma (occupied by ), Oregon (occupied by ), Pennsylvania (occupied by ), Pyongan (occupied by ), Rhode Island (occupied by ), South Carolina (occupied by ), South Dakota (occupied by ), Tennessee, Texas, Utah (occupied by ), Vermont (occupied by ), Virginia, Washington, and Wyoming (occupied by ).
Its current territories are listed below: