Difference between revisions of "Template:Part/sandbox"

From Grid Sage Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
<includeonly>{{Databox|float={{{float|right}}}|content=
+
<includeonly>{{Databox/sandbox|float={{{float|right}}}|content=
 
<div style="text-align: center;">
 
<div style="text-align: center;">
 
{{{shortName| {{PAGENAME}} }}} [ [[File: {{{tileImg|{{{type|}}} Rating{{{rating}}}}}}.png|top]] ] [ [[File: {{{asciiImg|{{{type|}}} ASCII}}}.png|top]] ]
 
{{{shortName| {{PAGENAME}} }}} [ [[File: {{{tileImg|{{{type|}}} Rating{{{rating}}}}}}.png|top]] ] [ [[File: {{{asciiImg|{{{type|}}} ASCII}}}.png|top]] ]
Line 21: Line 21:
 
{{ Datum | Storage | {{{powerStorage|0}}} | 0 }}
 
{{ Datum | Storage | {{{powerStorage|0}}} | 0 }}
 
{{ Datum | Stability | {{{powerStability|N/A}}} | N/A }}
 
{{ Datum | Stability | {{{powerStability|N/A}}} | N/A }}
 +
}}{{#ifeq:{{{slot}}}|Propulsion|
 +
{{Dataheader|Propulsion}}
 +
{{ Datum | Time/Move | {{{propTime|}}} | 0 }}
 +
{{ Datum | &nbsp;&nbsp;&nbsp;&nbsp;Mod/Extra | {{{propMod|0}}} | 0 }}
 +
{{ Datum | Energy | {{{propEnergy|-0}}} | 0 }}
 +
{{ Datum | Heat | {{{propHeat|+0}}} | 0 }}
 +
{{ Datum | Support | {{{propSupport|}}} | 0 }}
 +
{{ Datum | &nbsp;&nbsp;&nbsp;&nbsp;Penalty | {{{propPenalty|}}} | 0 }}
 +
{{ Datum | Burnout | {{{propBurnout|N/A}}} | N/A }}
 
}}
 
}}
  
Line 70: Line 79:
 
     {{ Datum | Disruption | {{{hitDisruption|0%}}} | 0% }}
 
     {{ Datum | Disruption | {{{hitDisruption|0%}}} | 0% }}
 
     {{ Datum | Salvage | {{{hitSalvage|+0}}} | 0 }}
 
     {{ Datum | Salvage | {{{hitSalvage|+0}}} | 0 }}
}}{{#ifeq:{{{slot}}}|Propulsion|
 
  {{Dataheader|Propulsion}}
 
    {{ Datum | Time/Move | {{{propTime|}}} | 0 }}
 
    {{ Datum | &nbsp;&nbsp;&nbsp;&nbsp;Mod/Extra | {{{propMod|0}}} | 0 }}
 
    {{ Datum | Energy | {{{propEnergy|-0}}} | 0 }}
 
    {{ Datum | Heat | {{{propHeat|+0}}} | 0 }}
 
    {{ Datum | Support | {{{propSupport|}}} | 0 }}
 
    {{ Datum | &nbsp;&nbsp;&nbsp;&nbsp;Penalty | {{{propPenalty|}}} | 0 }}
 
    {{ Datum | Burnout | {{{propBurnout|N/A}}} | N/A }}
 
 
}}{{#if:{{{effect|}}}|
 
}}{{#if:{{{effect|}}}|
 
{{Dataheader|Effect}}
 
{{Dataheader|Effect}}
Line 164: Line 164:
 
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]]).
 
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 ===
+
=== Example Power===
 
{{Part/sandbox
 
{{Part/sandbox
 
|float
 
|float
Line 214: Line 214:
 
</pre>
 
</pre>
 
{{clear}}
 
{{clear}}
 +
=== Example Treads ===
 +
{{Part/sandbox
 +
|float
 +
|name=Experimental Biometal Heavy Treads
 +
|shortName=Exp. Biometal Heavy Treads
 +
|type=Treads
 +
|slot=Propulsion
 +
|slotCount=2
 +
|mass
 +
|rating=9
 +
|category=Prototype
 +
|integrity=850
 +
|noRepairs=1
 +
|coverage=240
 +
|energyUpkeep=0
 +
|matterUpkeep=0
 +
|heatUpkeep=0
 +
|propTime=135
 +
|drag=40
 +
|propEnergy=-8
 +
|propHeat=+4
 +
|propSupport=85
 +
|propPenalty=20
 +
|siege=Standard
 +
|fabTime=90
 +
|fabMatter=46
 +
|fabComponents=None
 +
}}
 
[[Category:Template sandboxes]]
 
[[Category:Template sandboxes]]
 
<noinclude>
 
<noinclude>

Revision as of 01:47, 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