Template:Nation: Difference between revisions
From Terra Invicta Official Wiki
No edit summary |
No edit summary |
||
| Line 36: | Line 36: | ||
}} | }} | ||
{| class="wikitable" style="width: 100%;" | {| class="wikitable" style="width: 100%;text-align:center;" | ||
|- | |- | ||
! colspan=4 | ! colspan=4 | <big>{{#external_value: {{{1}}}|{{{1}}} }}</big><br> {{icon|{{{1}}}|size=120px}} | ||
|- | {{#ifeq: {{#external_value: gdp}} | | | | ||
! colspan=4 | {{!}}- | ||
! colspan=4 {{!}} Initial Stats | |||
! {{icon|democracy}} [[Nations#Government|Government]] | {{!}}- | ||
! {{icon|democracy|bgcolor=DarkSlateGray}} [[Nations#Government|Government]] | |||
! {{icon|miltech}} [[Nations#Miltech|Miltech]] | {{!}} {{#external_value: government}} | ||
| {{#external_value: | ! {{icon|miltech|bgcolor=DarkSlateGray}} [[Nations#Miltech|Miltech]] | ||
{{!}} {{#external_value: miltech}} | |||
{{!}}- | |||
! {{icon|unrest|bgcolor=DarkSlateGray}} [[Nations#Unrest|Unrest]] | |||
{{!}} {{#external_value: unrest}} | |||
! {{icon|nuke|bgcolor=DarkSlateGray}} [[Nations#Strategic_Nuclear_Barrages|Nukes]] | |||
{{!}} {{#external_value: nukes}} | |||
{{!}}- | |||
! {{icon|ip|bgcolor=DarkSlateGray}} [[Nations#GDP|GDP]] | |||
{{!}} {{#external_value: gdp}} | |||
! {{icon|sustainability|bgcolor=DarkSlateGray}} [[Nations#Sustainability|Pollution Multiplier]] | |||
{{!}} {{#external_value: pm}} | |||
{{!}}- | |||
! {{icon|money|bgcolor=DarkSlateGray}} [[Nations#Funding|Funding]] | |||
{{!}} {{#external_value: funding}} | |||
! {{icon|education|bgcolor=DarkSlateGray}} [[Nations#Education|Education]] | |||
{{!}} {{#external_value: education}} | |||
{{!}}- | |||
! {{icon|inequality|bgcolor=DarkSlateGray}} [[Nations#Inequality|Inequality]] | |||
{{!}} {{#external_value: inequality}} | |||
! {{icon|cohesion|bgcolor=DarkSlateGray}} [[Nations#Cohesion|Cohesion]] | |||
{{!}} {{#external_value: cohesion}} | |||
{{!}}- | |||
! colspan=4 {{!}} Initial [[Regions]] | |||
{{!}}- | |||
! Region | |||
! {{icon|pop|bgcolor=DarkSlateGray}} [[Nations#Population|Population]] (in Millions) | |||
! {{icon|boost|bgcolor=DarkSlateGray}} [[Nations#Boost|Boost]] (per Year) | |||
! {{icon|mc|bgcolor=DarkSlateGray}} [[Nations#Mission Control|Mission Control]] | |||
{{!}}- | |||
{{#get_web_data:|url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TIBilateralTemplate_CSV?nation1={{{1}}}&initialOwner=true | |||
|data=rname=region1 | |||
|format=CSV with Header | |||
}} {{#for_external_table:| | |||
{{#get_web_data:|url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TIRegionTemplate_CSV?dataName={{{rname}}} | |||
|data= | |||
rpop=population_Millions, | |||
rboost=boostPerYear_tons, | |||
rMC=missionControl, | |||
rEco=coreEco, | |||
rOil=oilResource, | |||
rMine=mining, | |||
rEnv=environment, | |||
|format=CSV with Header | |||
}} | |||
{{!}}- | |||
{{!}} {{#external_value: {{{rname}}} }} {{#ifeq: {{#external_value: rEco}} | true | {{icon|core economic region|bgcolor=DarkSlateGray}} }} {{#ifeq: {{#external_value: rOil}} | true | {{icon|oil|bgcolor=DarkSlateGray}} }} {{#ifeq: {{#external_value: rMine}} | true | {{icon|resource region|bgcolor=DarkSlateGray}} }} {{#switch: {{#external_value: rEnv}} | |||
| Vulnerable = {{icon|ecologically vulnerable region|bgcolor=DarkSlateGray}} | |||
| Beneficiary = {{icon|ecologically protected region|bgcolor=DarkSlateGray}} | |||
}} {{#get_inline_data:text= | |||
tpop: {{#expr: {{#external_value: rpop}} + {{#external_value: tpop|0}} }} | |||
tboost: {{#expr: {{#external_value: rboost}} + {{#external_value: tboost|0}} }} | |||
tMC: {{#expr: {{#external_value: rMC}} + {{#external_value: tMC|0}} }} | |||
}} | |||
{{!}} {{#external_value: rpop}} | |||
{{!}} {{#external_value: rboost}} | |||
{{!}} {{#external_value: rMC}} {{#clear_external_data:rpop|rboost|rMC|rEco|rOil|rMine|rEnv}} | |||
{{!}}- | |||
}} | |||
{{!}}- | |||
! Total | |||
{{!}} {{#external_value: tpop|0}} | |||
{{!}} {{#external_value: tboost|0}} | |||
{{!}} {{#external_value: tMC|0}} {{#clear_external_data:tpop|tboost|tMC}} | |||
{{!}}- | |||
}} | |||
|- | |- | ||
! | ! colspan=4 | Full Region Claims (including from [[Nations#Peaceful_Unification|Peaceful Unifications]]) | ||
|- | |- | ||
| colspan=4 | {{#af_join: {{#af_unique: {{#af_split: {{#af_join: {{#af_map: {{#af_unique: {{#af_split: {{#af_stringmap: {{#af_stringmap: {{#af_stringmap: {{#af_stringmap: {{#af_stringmap: {{#af_stringmap: {{{1}}} | , | x | {{#external_value:{{{x}}}C}} }} | , | x | {{#external_value:{{{x}}}C}} }} | , | x | {{#external_value:{{{x}}}C}} }} | , | x | {{#external_value:{{{x}}}C}} }} | , | x | {{#external_value:{{{x}}}C}} }} | , | x | {{#external_value:{{{x}}}C}} }} | , }} }} | cnation | {{#clear_external_data:rname|ccnation|nname}} {{#get_web_data:|url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TIBilateralTemplate_CSV?nation1={{{cnation}}}&relationType=Claim | |||
| {{#af_join: {{#af_unique: {{#af_split: {{#af_join: {{#af_map: {{#af_unique: {{#af_split: {{#af_stringmap: {{#af_stringmap: {{#af_stringmap: {{#af_stringmap: {{#af_stringmap: {{#af_stringmap: {{{1}}} | , | x | {{#external_value:{{{x}}}C}} }} | , | x | {{#external_value:{{{x}}}C}} }} | , | x | {{#external_value:{{{x}}}C}} }} | , | x | {{#external_value:{{{x}}}C}} }} | , | x | {{#external_value:{{{x}}}C}} }} | , | x | {{#external_value:{{{x}}}C}} }} | , }} }} | cnation | {{#clear_external_data:rname|ccnation|nname}} {{#get_web_data:|url=https://wiki.hoodedhorse.com/Terra_Invicta/Special:GetData/TIBilateralTemplate_CSV?nation1={{{cnation}}}&relationType=Claim | |||
|data=crname=region1 | |data=crname=region1 | ||
|format=CSV with Header | |format=CSV with Header | ||
}} {{#for_external_table:|{{#external_value:{{{crname}}}| }},}} }} |,}} |,}} }} | | }} {{#for_external_table:|{{#external_value:{{{crname}}}| }},}} }} |,}} |,}} }} |\s•\s}} | ||
|- | |||
! colspan=4 | Notes | |||
|- | |- | ||
| colspan=4 | {{{notes|}}} | |||
| {{{notes}}} | |||
|} | |} | ||
Revision as of 19:00, 27 June 2025
A template for nations.
Usage
To get the USA nation for example:
{{nation|USA|notes=Recommended first pick}}
Words for icons are shown in the following table. Named parameters are optional.
Example
| United States of America | |||
|---|---|---|---|
| Initial Stats | |||
| 7.85 | 4.5 | ||
| 3 | 28 | ||
| 22305188400000 | 0.856 | ||
| 1000 | 9 | ||
| 4.17 | 3 | ||
| Initial Regions | |||
| Region | |||
| Anchorage |
0.864984 | ||
| San Juan |
3.00905 | ||
| Honolulu |
2.021437 | ||
| Boise |
2.515473 | ||
| Los Angeles |
49.049134 | 115 | 1 |
| Seattle |
11.997266 | ||
| Nashville | 11.158087 | ||
| Minneapolis |
7.200631 | ||
| Atlanta |
34.788253 | 450 | 1 |
| St. Louis | 14.52719 | ||
| New Orleans |
16.702036 | ||
| Boston |
15.417979 | ||
| New York City |
42.4895 | ||
| Denver |
16.884735 | ||
| Chicago |
48.578451 | ||
| Washington | 27.56801 | 20 | 1 |
| Dallas |
30.614034 | 3 | |
| Total | 335.38625 | 585 | 6 |
| Full Region Claims (including from Peaceful Unifications) | |||
| Notes | |||
| Recommended first pick | |||


