Template:MissionDisplayName: Difference between revisions

From Terra Invicta Official Wiki
Redwah (talk | contribs)
No edit summary
Redwah (talk | contribs)
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#switch:{{{1}}}
{{#switch: {{{1}}}
|Abductions=Abductions
| Abductions=Abductions
|GainInfluence=Control Nation
| GainInfluence=Control Nation
|Propaganda=Public Campaign
| Propaganda=Public Campaign
|Purge=Purge
| Purge=Purge
|Advise=Advise
| Advise=Advise
|Assassinate=Assassinate
| Assassinate=Assassinate
|AssaultAlienAsset=Assault Alien Asset
| AssaultAlienAsset=Assault Alien Asset
|AssumeControl=Grant Alien Control
| AssumeControl=Grant Alien Control
|BuildFacility=Build Facility
| BuildFacility=Build Facility
|SetNationalPolicy=Set National Policy
| SetNationalPolicy=Set National Policy
|Contact=Contact
| Contact=Contact
|ControlSpaceAsset=Control Space Asset
| ControlSpaceAsset=Control Space Asset
|Coup=Coup d'Etat
| Coup=Coup d'Etat
|Crackdown=Crackdown
| Crackdown=Crackdown
|DefendInterests=Defend Interests
| DefendInterests=Defend Interests
|Detain=Detain Councilor
| Detain=Detain Councilor
|DetectCouncilActivity=Surveil Location
| DetectCouncilActivity=Surveil Location
|EnthrallElites=Enthrall Elites
| EnthrallElites=Enthrall Elites
|EnthrallPublic=Enthrall Public
| EnthrallPublic=Enthrall Public
|EnthrallOrg=Enthrall Org
| EnthrallOrg=Enthrall Org
|EnthrallUnalignedElites=Enthrall Unaligned Elites
| EnthrallUnalignedElites=Enthrall Unaligned Elites
|Extract=Extract Councilor
| Extract=Extract Councilor
|GoToGround=Go To Ground
| GoToGround=Go To Ground
|HostileTakeover=Hostile Takeover
| HostileTakeover=Hostile Takeover
|Inspire=Inspire
| Inspire=Inspire
|InvestigateAlienActivity=Investigate Alien Activity
| InvestigateAlienActivity=Investigate Alien Activity
|InvestigateCouncilor=Investigate Councilor
| InvestigateCouncilor=Investigate Councilor
|Orbit=Orbit
| Orbit=Orbit
|Deorbit=Deorbit
| Deorbit=Deorbit
|PassTechnology=Pass Technology
| PassTechnology=Pass Technology
|Protect=Protect Target
| Protect=Protect Target
|SabotageFacilities=Sabotage Facilities
| SabotageFacilities=Sabotage Facilities
|SabotageHabModule=Sabotage Hab Module
| SabotageHabModule=Sabotage Hab Module
|SabotageProject=Sabotage Project
| SabotageProject=Sabotage Project
|SeizeSpaceAsset=Assault Enemy Space Asset
| SeizeSpaceAsset=Assault Enemy Space Asset
|Stabilize=Stabilize Nation
| Stabilize=Stabilize Nation
|StealProject=Steal Project
| StealProject=Steal Project
|TerrorizeRegion=Terrorize Region
| TerrorizeRegion=Terrorize Region
|Xenoform=Xenoform
| Xenoform=Xenoform
|Transfer=Transfer
| Transfer=Transfer
|Turn=Turn Councilor
| Turn=Turn Councilor
|Unrest=Increase Unrest
| Unrest=Increase Unrest
|DominateNation=Dominate Nation
| DominateNation=Dominate Nation
|AppeaseWin=Claim Hegemony
| AppeaseWin=Claim Hegemony
|CooperateWin=Forge an Alliance
| CooperateWin=Forge an Alliance
|DestroyWin=Trigger the Weapon
| DestroyWin=Trigger the Weapon
|EscapeWin=Launch the Bifrost
| EscapeWin=Launch the Bifrost
|ExploitWin=Tame the Enemy
| ExploitWin=Tame the Enemy
|ResistWin=Close the Gate
| ResistWin=Close the Gate
|SubmitWin=Herald Our Masters
| SubmitWin=Herald Our Masters
}}</includeonly><noinclude>
}}
</includeonly>
 
A template for converting Mission Data Names into Mission Display Names.
A template for converting Mission Data Names into Mission Display Names.


Line 61: Line 58:
<pre>{{MissionDisplayName|Propaganda}}</pre>
<pre>{{MissionDisplayName|Propaganda}}</pre>
will return "{{MissionDisplayName|Propaganda}}", 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".


== Updating This Template ==
== Updating This Template ==
Line 68: Line 64:
# Open the file <pre> TIMissionTemplate.en </pre>, which is located in <pre> \Terra Invicta\TerraInvicta_Data\StreamingAssets\Localization\en </pre>
# Open the file <pre> TIMissionTemplate.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>TIMissionTemplate.displayName.</pre>
# Do a search for every line that starts with <pre>TIMissionTemplate.displayName.</pre>
# Copy every line found, and paste it into this wiki page, replacing everything after the line <pre> {{#switch: {{{1}}} </pre>, up until the line <pre> }} </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>TIMissionTemplate.displayName.</pre> with <pre> | </pre>
# Finally do a search and replace to replace every <pre>TIMissionTemplate.displayName.</pre> with <pre>|</pre>, except for those instances inside these instructions.
 
</noinclude>

Latest revision as of 04:07, 13 June 2025

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

Usage

For example:

{{MissionDisplayName|Propaganda}}

will return "Public Campaign", 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
    <includeonly>{{#switch:{{{1}}}
    , up until the line
    }}</includeonly><noinclude> 
  4. Finally do a search and replace to replace every
    TIMissionTemplate.displayName.
    with
    |
    , except for those instances inside these instructions.