<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hoodedhorse.com/Terra_Invicta/index.php?action=history&amp;feed=atom&amp;title=RawPowerPlantDisplayName_Explanation</id>
	<title>RawPowerPlantDisplayName Explanation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hoodedhorse.com/Terra_Invicta/index.php?action=history&amp;feed=atom&amp;title=RawPowerPlantDisplayName_Explanation"/>
	<link rel="alternate" type="text/html" href="https://wiki.hoodedhorse.com/Terra_Invicta/index.php?title=RawPowerPlantDisplayName_Explanation&amp;action=history"/>
	<updated>2026-09-28T05:01:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.5</generator>
	<entry>
		<id>https://wiki.hoodedhorse.com/Terra_Invicta/index.php?title=RawPowerPlantDisplayName_Explanation&amp;diff=4516&amp;oldid=prev</id>
		<title>76561199014279152: Created page with &quot;== Explanation ==  The RawPowerPlantDisplayName page is a workaround for efficiently converting Power Plant data names into Power Plant display names. I previously attempted to use a template file using a &lt;nowiki&gt;#switch function&lt;/nowiki&gt;, but it was extremely inefficient since there are so many Power Plants to check through one by one, and the template had to be called over and over for every Power Plant data name on the page that needed to be converted. This method...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoodedhorse.com/Terra_Invicta/index.php?title=RawPowerPlantDisplayName_Explanation&amp;diff=4516&amp;oldid=prev"/>
		<updated>2025-06-14T20:09:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Explanation ==  The &lt;a href=&quot;/Terra_Invicta/RawPowerPlantDisplayName&quot; title=&quot;RawPowerPlantDisplayName&quot;&gt;RawPowerPlantDisplayName&lt;/a&gt; page is a workaround for efficiently converting Power Plant data names into Power Plant display names. I previously attempted to use a template file using a &amp;lt;nowiki&amp;gt;#switch function&amp;lt;/nowiki&amp;gt;, but it was extremely inefficient since there are so many Power Plants to check through one by one, and the template had to be called over and over for every Power Plant data name on the page that needed to be converted. This method...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Explanation ==&lt;br /&gt;
&lt;br /&gt;
The [[RawPowerPlantDisplayName]] page is a workaround for efficiently converting Power Plant data names into Power Plant display names. I previously attempted to use a template file using a &amp;lt;nowiki&amp;gt;#switch function&amp;lt;/nowiki&amp;gt;, but it was extremely inefficient since there are so many Power Plants to check through one by one, and the template had to be called over and over for every Power Plant data name on the page that needed to be converted. This method is way faster.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
{{#get_web_data:&lt;br /&gt;
|url={{fullurl:RawPowerPlantDisplayName|action=raw}}&lt;br /&gt;
|data=__all&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Just put this once anywhere in your wiki page that is before the Power Plant data names that you wish to convert.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#get_web_data:&lt;br /&gt;
|url={{fullurl:RawPowerPlantDisplayName|action=raw}}&lt;br /&gt;
|data=__all&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, to convert a Power Plant data name such as &amp;quot;SolidCoreFissionReactorVIII&amp;quot;, simply type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#external_value:SolidCoreFissionReactorVIII}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Which would output: {{#external_value:SolidCoreFissionReactorVIII}}&lt;br /&gt;
&lt;br /&gt;
== How to Update RawPowerPlantDisplayName ==&lt;br /&gt;
&lt;br /&gt;
Whenever the game adds more Power Plants, [[RawPowerPlantDisplayName]] can be easily updated as follows:&lt;br /&gt;
# Open the file &amp;lt;pre&amp;gt; TIPowerPlantTemplate.en &amp;lt;/pre&amp;gt;, which is located in &amp;lt;pre&amp;gt; \Terra Invicta\TerraInvicta_Data\StreamingAssets\Localization\en &amp;lt;/pre&amp;gt;&lt;br /&gt;
# Do a search for every line that starts with &amp;lt;pre&amp;gt;TIPowerPlantTemplate.displayName.&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Copy every line found, and paste it into [[RawPowerPlantDisplayName]], replacing everything after the line &amp;lt;pre&amp;gt;EXPLANATION=[[RawPowerPlantDisplayName Explanation]]&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Finally do a search and replace to replace every &amp;lt;pre&amp;gt;TIPowerPlantTemplate.displayName.&amp;lt;/pre&amp;gt; with nothing.&lt;br /&gt;
&lt;br /&gt;
Note: There are also some comments in TIPowerPlantTemplate.en that need to be removed.&lt;/div&gt;</summary>
		<author><name>76561199014279152</name></author>
	</entry>
</feed>