Template:ProjectDataName: Difference between revisions
From Terra Invicta Official Wiki
No edit summary |
Undo revision 4949 by 76561199014279152 (talk) Tag: Undo |
||
| Line 687: | Line 687: | ||
|Fleet Officer Schoolhouses=Project_FleetOfficerSchoolhouses | |Fleet Officer Schoolhouses=Project_FleetOfficerSchoolhouses | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
A template for converting Project Display Names | 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: | |||
<pre>{{ProjectDataName|Armor Struts}}</pre> | |||
will return "{{ProjectDataName|Armor Struts}}", 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 <pre> TIProjectTemplate.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>TIProjectTemplate.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> | |||
# Do a search and replace to replace every <pre>TIProjectTemplate.displayName.</pre> with <pre>|</pre>, except for those instances inside these instructions. | |||
# Swap all values to the other side of the =. | |||
</noinclude> | </noinclude> | ||
Revision as of 20:27, 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 =.


