Template:NationDisplayName: Difference between revisions
From Terra Invicta Official Wiki
Created page with "<includeonly>{{#switch:{{{1}}} |AFG=Afghanistan |AGO=Angola |AKA=Alaska |ALN=Alien Administration |ALP=Austria |ARG=Argentina |ASM=Assam |ATZ=Aztlán |AUS=Australia |BAS=Baltic States |BCH=Balochistan |BGD=Bangladesh |BIA=Biafra |BLR=Belarus |BOL=Bolivia |BOR=Borneo |BRA=Brazil |BWA=Botswana |CAF=Central African Republic |CAL=California |CAM=Central American States |CAN=Canada |CAP=Cape Republic |CAT=Catalonia |CAB=Caribbean States |CCS=Caucasus States |CEU=Central Europ..." |
|||
| Line 265: | Line 265: | ||
To update this template, simply perform the following steps: | To update this template, simply perform the following steps: | ||
# Open the file <pre> TINationTemplate.en </pre>, which is located in <pre> \Terra Invicta\TerraInvicta_Data\StreamingAssets\Localization\en </pre> | # Open the file <pre> TINationTemplate.en </pre>, which is located in <pre> \Terra Invicta\TerraInvicta_Data\StreamingAssets\Localization\en </pre> | ||
# Do a search for every line that starts with <pre> | # Do a search for every line that starts with <pre>TINationTemplate.displayName.</pre> | ||
# Copy every line found, and paste it into this wiki page, replacing everything after the line <pre><includeonly>{{#switch:{{{1}}}</pre>, up until the line <pre>}}</includeonly><noinclude> </pre> | # Copy every line found, and paste it into this wiki page, replacing everything after the line <pre><includeonly>{{#switch:{{{1}}}</pre>, up until the line <pre>}}</includeonly><noinclude> </pre> | ||
# Finally do a search and replace to replace every <pre> | # Finally do a search and replace to replace every <pre>TINationTemplate.displayName.</pre> with <pre>|</pre> | ||
</noinclude> | </noinclude> | ||
Revision as of 04:05, 13 June 2025
A template for converting Nation Data Names into Nation Display Names.
Usage
For example:
{{NationDisplayName|UZB}}
will return "Uzbekistan", the Display Name for the nation whose Data Name is "UZB".
Updating This Template
To update this template, simply perform the following steps:
- Open the file
TINationTemplate.en
, which is located in\Terra Invicta\TerraInvicta_Data\StreamingAssets\Localization\en
- Do a search for every line that starts with
TINationTemplate.displayName.
- Copy every line found, and paste it into this wiki page, replacing everything after the line
<includeonly>{{#switch:{{{1}}}, up until the line}}</includeonly><noinclude>
- Finally do a search and replace to replace every
TINationTemplate.displayName.
with|


