Template:NationDisplayName: Difference between revisions
From Terra Invicta Official Wiki
| 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:
- 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|
, except for those instances inside these instructions.


