Difference between revisions of "Template:Part/sandbox"

From Grid Sage Wiki
Jump to navigation Jump to search
Line 8: Line 8:
 
{{ Datum | Slot | {{#ifeq: {{{slot|N/A}}} | N/A | N/A | {{Link color|{{{slot}}}|color=#00b200}} {{#ifeq:{{{slotCount|1}}} | 1 | | x{{{slotCount}}} }} }} | N/A }}
 
{{ Datum | Slot | {{#ifeq: {{{slot|N/A}}} | N/A | N/A | {{Link color|{{{slot}}}|color=#00b200}} {{#ifeq:{{{slotCount|1}}} | 1 | | x{{{slotCount}}} }} }} | N/A }}
 
{{ Datum | Mass | {{{mass|N/A}}} | N/A }}
 
{{ Datum | Mass | {{{mass|N/A}}} | N/A }}
{{#if:{{{rating|}}}| {{ Datum | Rating | <nowiki />{{{rating}}} {{#if:{{{category|}}} |<span style="display:inline-block; margin-left:0.5em;  padding:0em 0.5em; background-color:#00b200; color:black; font-weight:500; text-transform: uppercase;"> {{{category|}}}</span> }}  }}
+
{{#if:{{{rating|}}}| {{ Datum | Rating | <nowiki />{{{rating}}} {{#if:{{{category|}}} |<span style="display:inline-block; padding:0em 0.5em; background-color:#00b200; color:black; font-weight:500; text-transform: uppercase;"> {{{category|}}}</span> }}  }}
 
}}{{#if:{{{integrity|}}}| {{ Datum | Integrity | {{{integrity}}}{{#if:{{{noRepairs|}}} |<nowiki>*</nowiki>}} }}  
 
}}{{#if:{{{integrity|}}}| {{ Datum | Integrity | {{{integrity}}}{{#if:{{{noRepairs|}}} |<nowiki>*</nowiki>}} }}  
 
}}{{#if:{{{coverage|}}}| {{ Datum | Coverage | {{{coverage}}} }}
 
}}{{#if:{{{coverage|}}}| {{ Datum | Coverage | {{{coverage}}} }}
Line 24: Line 24:
 
{{Dataheader|Propulsion}}
 
{{Dataheader|Propulsion}}
 
{{ Datum | Time/Move | {{{propTime|}}} | 0 }}
 
{{ Datum | Time/Move | {{{propTime|}}} | 0 }}
{{ Datum | &nbsp;&nbsp;&nbsp;&nbsp;Mod/Extra | {{{propMod|0}}} | 0 }}
+
{{ Datum | &nbsp;Mod/Extra | {{{propMod|0}}} | 0 }}
 
{{ Datum | Energy | {{{propEnergy|-0}}} | 0 }}
 
{{ Datum | Energy | {{{propEnergy|-0}}} | 0 }}
 
{{ Datum | Heat | {{{propHeat|+0}}} | 0 }}
 
{{ Datum | Heat | {{{propHeat|+0}}} | 0 }}
 
{{ Datum | Support | {{{propSupport|}}} | 0 }}
 
{{ Datum | Support | {{{propSupport|}}} | 0 }}
{{ Datum | &nbsp;&nbsp;&nbsp;&nbsp;Penalty | {{{propPenalty|}}} | 0 }}
+
{{ Datum | &nbsp;Penalty | {{{propPenalty|}}} | 0 }}
 
{{ Datum | Burnout | {{{propBurnout|N/A}}} | N/A }}
 
{{ Datum | Burnout | {{{propBurnout|N/A}}} | N/A }}
 
}}
 
}}

Revision as of 03:57, 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

/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
|float
|name=Makeshift Power Source
|shortName=Mak. Power Source
|type=Engine
|slot=Power
|mass=4
|rating=4
|category
|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
}}

Example Treads

/Data/

Exp. Biometal Heavy Treads [ File:Treads Rating9.png ] [ File:Treads ASCII.png ]

Overview
Type
Slot
Mass
N/A
Rating
9 Prototype
Integrity
850*
Coverage
240
Active Upkeep
Energy
-0
Matter
-0
Heat
+0
Propulsion
Time/Move
135
 Mod/Extra
0
Energy
-8
Heat
+4
Support
85
 Penalty
20
Burnout
N/A
Fabrication
Time
90
Matter
46
Components
None
(Experimental Biometal Heavy Treads)
X