Template:NationDisplayName: Difference between revisions

From Terra Invicta Official Wiki
Redwah (talk | contribs)
Redwah (talk | contribs)
Line 267: Line 267:
# Do a search for every line that starts with <pre>TINationTemplate.displayName.</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>TINationTemplate.displayName.</pre> with <pre>|</pre>
# Finally do a search and replace to replace every <pre>TINationTemplate.displayName.</pre> with <pre>|</pre>, except for those instances inside these instructions.


</noinclude>
</noinclude>

Revision as of 04:07, 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
    |
    , except for those instances inside these instructions.