Template:MissionDisplayName: Difference between revisions

From Terra Invicta Official Wiki
Redwah (talk | contribs)
Created page with "<includeonly> {{#switch: {{{1}}} | Abductions=Abductions | GainInfluence=Control Nation | Propaganda=Public Campaign | Purge=Purge | Advise=Advise | Assassinate=Assassinate | AssaultAlienAsset=Assault Alien Asset | AssumeControl=Grant Alien Control | BuildFacility=Build Facility | SetNationalPolicy=Set National Policy | Contact=Contact | ControlSpaceAsset=Control Space Asset | Coup=Coup d'Etat | Crackdown=Crackdown | DefendInterests=Defend Interests | Det..."
 
Redwah (talk | contribs)
No edit summary
Line 60: Line 60:
For example:
For example:
<pre>{{MissionDisplayName|Propaganda}}</pre>
<pre>{{MissionDisplayName|Propaganda}}</pre>
will return "Public Campaign", the Display Name for the mission whose Data Name is "Propaganda".
will return "{{MissionDisplayName|Propaganda}}", the Display Name for the mission whose Data Name is "Propaganda".





Revision as of 05:20, 8 June 2025


A template for converting Mission Data Names into Mission Display Names.

Usage

For example:

{{MissionDisplayName|Propaganda}}

will return " Public Campaign


A template for converting Mission Data Names into Mission Display Names.

Usage

For example:

{{MissionDisplayName|Propaganda}}

will return "Template loop detected: Template:MissionDisplayName", the Display Name for the mission whose Data Name is "Propaganda".


Updating This Template

To update this template, simply perform the following steps:

  1. Open the file
     TIMissionTemplate.en 
    , which is located in
     \Terra Invicta\TerraInvicta_Data\StreamingAssets\Localization\en 
  2. Do a search for every line that starts with
    TIMissionTemplate.displayName.
  3. Copy every line found, and paste it into this wiki page, replacing everything after the line
     {{#switch: {{{1}}} 
    , up until the line
     }} 
  4. Finally do a search and replace to replace every
    TIMissionTemplate.displayName.
    with
     | 
    ", the Display Name for the mission whose Data Name is "Propaganda".


Updating This Template

To update this template, simply perform the following steps:

  1. Open the file
     TIMissionTemplate.en 
    , which is located in
     \Terra Invicta\TerraInvicta_Data\StreamingAssets\Localization\en 
  2. Do a search for every line that starts with
    TIMissionTemplate.displayName.
  3. Copy every line found, and paste it into this wiki page, replacing everything after the line
     {{#switch: {{{1}}} 
    , up until the line
     }} 
  4. Finally do a search and replace to replace every
    TIMissionTemplate.displayName.
    with
     |