Template:NationDisplayName: Difference between revisions

From Terra Invicta Official Wiki
Redwah (talk | contribs)
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..."
 
Redwah (talk | contribs)
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>|</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>|</pre> with <pre>|</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:

  1. Open the file
     TINationTemplate.en 
    , which is located in
     \Terra Invicta\TerraInvicta_Data\StreamingAssets\Localization\en 
  2. Do a search for every line that starts with
    TINationTemplate.displayName.
  3. 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> 
  4. Finally do a search and replace to replace every
    TINationTemplate.displayName.
    with
    |