Category:GameData: Difference between revisions

Category page
No edit summary
m (Bot Change GameData for Recipe Cargo)
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
== GameData Template ==  
== GameData Template ==  


<pre><nowiki>{{GameData}}</nowiki></pre>
<pre><nowiki>{{Recipe cargo|{{PAGENAME}}}}</nowiki></pre>
[[Template:GameData]] can be included on any page with GameData files to automatically include all GameData templates.
[[Template:GameData]] can be included on any page with GameData files to automatically include all GameData templates.


Line 10: Line 10:
Assuming a page is named the same way as its gamedata, you can use the following to automatically include the recipe table:
Assuming a page is named the same way as its gamedata, you can use the following to automatically include the recipe table:


<pre>{{:GameData:Recipe:{{PAGENAMEE}}}}</pre>
<pre>{{Recipe cargo|{{PAGENAME}}}}</pre>


Though the names should match, if they don't please let me know (<code>Maz (username: mazorlion)</code> on discord). You can manually correct the naming by specifying the page directly (for example with <code>Building_2x1_(2M)</code>):
Though the names should match, if they don't please let me know (<code>Maz (username: mazorlion)</code> on discord). You can manually correct the naming by specifying the page directly (for example with <code>Building_2x1_(2M)</code>):

Latest revision as of 20:44, 9 September 2023


GameData Template[edit | edit source]

{{Recipe cargo|{{PAGENAME}}}}

Template:GameData can be included on any page with GameData files to automatically include all GameData templates.

GameData Recipe Usage[edit | edit source]

Assuming a page is named the same way as its gamedata, you can use the following to automatically include the recipe table:

{{Recipe cargo|{{PAGENAME}}}}

Though the names should match, if they don't please let me know (Maz (username: mazorlion) on discord). You can manually correct the naming by specifying the page directly (for example with Building_2x1_(2M)):

{{:GameData:Recipe:Building_2x1_(2M)}}

Which results in:


Recipe
Circuit Board Reinforced Plate Building 2x1 (2M)
Circuit Board 4 Reinforced Plate 30 Arrow Right Building 2x1 (2M)
Produced by
Construction Time
3.0 seconds
[[{{{14}}}]] Time
[[File:{{{14}}}.png|64x64px|link={{{14}}}]] {{{15}}} seconds
[[{{{16}}}]] Time
[[File:{{{16}}}.png|64x64px|link={{{16}}}]] {{{17}}} seconds