Template:ProjectDataName: Difference between revisions
From Terra Invicta Official Wiki
Created page with "<includeonly>{{#switch:{{{1}}} |Alien Signatures=Project_TheirSignatures |Alien Methods=Project_TheirMethods |Alien Operations=Project_TheirOperations |Alien Movements=Project_TheirMovements |Alien Origin=Project_TheirOrigin |Hydra Biology=Project_HydraBiology |Pherocytes=Project_Pherocytes |Alien Containment=Project_AlienContainment |Hydra Language=Project_HydraLanguage |Alien Technology=Project_TheirTechnology |Exotic Materials=Project_Exotics |Exotic Hybrid Systems=Pr..." |
No edit summary |
||
| Line 695: | Line 695: | ||
For example: | For example: | ||
<pre>{{ProjectDataName|Armor Struts}}</pre> | <pre>{{ProjectDataName|Armor Struts}}</pre> | ||
will return "{{ProjectDataName| | will return "{{ProjectDataName|Armor Struts}}", the Data Name for the Project whose Display Name is "Armor Struts". | ||
== Updating This Template == | == Updating This Template == | ||
Revision as of 05:33, 29 June 2025
A template for converting Project Display Names into Project Data Names.
Note: Inefficient if used several times in a page. See RawProjectDisplayName_Explanation for more efficient mass conversions.
Usage
For example:
{{ProjectDataName|Armor Struts}}
will return "Project_ArmorStruts", the Data Name for the Project whose Display Name is "Armor Struts".
Updating This Template
To update this template, simply perform the following steps:
- Open the file
TIProjectTemplate.en
, which is located in\Terra Invicta\TerraInvicta_Data\StreamingAssets\Localization\en
- Do a search for every line that starts with
TIProjectTemplate.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>
- Do a search and replace to replace every
TIProjectTemplate.displayName.
with|
, except for those instances inside these instructions. - Swap all values to the other side of the =.


