Template:MissionDisplayName: Difference between revisions
From Terra Invicta Official Wiki
mNo edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 49: | Line 49: | ||
|ExploitWin=Tame the Enemy | |ExploitWin=Tame the Enemy | ||
|ResistWin=Close the Gate | |ResistWin=Close the Gate | ||
|SubmitWin=Herald Our Masters}}</includeonly> | |SubmitWin=Herald Our Masters | ||
<noinclude> | }}</includeonly><noinclude> | ||
A template for converting Mission Data Names into Mission Display Names. | A template for converting Mission Data Names into Mission Display Names. | ||
| Line 58: | 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 67: | 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><includeonly>{{#switch: {{{1}}} </pre>, up until the line <pre>}}</includeonly></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> | </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:
- Open the file
TIMissionTemplate.en
, which is located in\Terra Invicta\TerraInvicta_Data\StreamingAssets\Localization\en
- Do a search for every line that starts with
TIMissionTemplate.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
TIMissionTemplate.displayName.
with|
, except for those instances inside these instructions.


