Template:ProjectDataName: Difference between revisions

From Terra Invicta Official Wiki
Redwah (talk | contribs)
No edit summary
Redwah (talk | contribs)
No edit summary
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 into Project Data Names.
A template for converting Project Display Names into REDIRECTS into Project Data Name pages.
 
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:24, 29 June 2025

A template for converting Project Display Names into REDIRECTS into Project Data Name pages.