Template:ProjectDisplayName: Difference between revisions

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


</noinclude>
</noinclude>

Latest revision as of 11:15, 29 November 2025

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

Note: Inefficient if used several times in a page. See RawProjectDisplayName_Explanation for more efficient mass conversions.

Usage

For example:

{{ProjectDisplayName|Project_ArmorStruts}}

will return "Armor Struts", the Display Name for the Project whose Data Name is "Project_ArmorStruts".

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. Finally do a search and replace to replace every
    TIProjectTemplate.displayName.
    with
    |
    , except for those instances inside these instructions.