Difference between revisions of "Template:Part/sandbox"

From Grid Sage Wiki
Jump to navigation Jump to search
Line 9: Line 9:
 
{{ Datum | Mass | {{{mass|N/A}}} | N/A }}
 
{{ Datum | Mass | {{{mass|N/A}}} | N/A }}
 
{{#if:{{{rating|}}}| {{ Datum | Rating | <nowiki />{{{rating}}} }}
 
{{#if:{{{rating|}}}| {{ Datum | Rating | <nowiki />{{{rating}}} }}
}}{{#if:{{{integrity|}}}| {{ Datum | Integrity | {{#if:{{{noRepairs|}}} |<nowiki>*</nowiki>}}{{{integrity}}} }}  
+
}}{{#if:{{{integrity|}}}| {{ Datum | Integrity | {{{integrity}}}{{#if:{{{noRepairs|}}} |<nowiki>*</nowiki>}} }}  
 
}}{{#if:{{{coverage|}}}| {{ Datum | Coverage | {{{coverage}}} }}
 
}}{{#if:{{{coverage|}}}| {{ Datum | Coverage | {{{coverage}}} }}
 
}}{{#if:{{{energyUpkeep|}}}{{{matterUpkeep|}}}{{{heatUpkeep|}}}|
 
}}{{#if:{{{energyUpkeep|}}}{{{matterUpkeep|}}}{{{heatUpkeep|}}}|

Revision as of 00:41, 23 January 2020

This template lays out part info in a standard format and automatically links to the Part, Type, and Slot categories. It also creates properties from the supplied data for use in queries.

Usage

To add an item to the wiki: create a page with the full name of the item, copy one of the examples below, and fill in the fields.

Please also create a redirect from the short name of the item (Imp. Flight Unit) to the full name (Improved Flight Unit), and link to the item from the relevant item type page (Propulsion).

Example Power Source

/Data/
Overview
Type
Slot
Mass
4
Rating
4
Integrity
50*
Coverage
50
Active Upkeep
Energy
-0
Matter
-0
Heat
+7
Power
Supply
+10
Storage
70
Stability
N/A
Fabrication (x2)
Time
84/42/28
Matter
168
Components
None
(Makeshift Power Source)
X
{{Part/sandbox
|name=Makeshift Power Source
|shortName=Mak. Power Source
|type=Engine
|slot=Power
|mass=4
|rating=4
|integrity=50
|noRepairs=1
|coverage=50
|energyUpkeep=0
|matterUpkeep=0
|heatUpkeep=+7
|powerSupply=+10
|powerStorage=70
|powerStability
|fabCount=2
|fabTime=84/42/28
|fabMatter=168
|fabComponents
}}