Template:ProjectDataName: Difference between revisions

From Terra Invicta Official Wiki
Llamageddon (talk | contribs)
Updated RC5
Llamageddon (talk | contribs)
m +cats
 
Line 772: Line 772:
# Do a search and replace to replace every <pre>TIProjectTemplate.displayName.</pre> with <pre>|</pre>, except for those instances inside these instructions.
# 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 =.
# Swap all values to the other side of the =.
[[Category:Data Reference Templates]]
[[Category:Switch Templates]]
[[Category:Templates]]


</noinclude>
</noinclude>

Latest revision as of 11:16, 29 November 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:

  1. Open the file
     TIProjectTemplate.en 
    , which is located in
     \Terra Invicta\TerraInvicta_Data\StreamingAssets\Localization\en 
  2. Do a search for every line that starts with
    TIProjectTemplate.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. Do a search and replace to replace every
    TIProjectTemplate.displayName.
    with
    |
    , except for those instances inside these instructions.
  5. Swap all values to the other side of the =.