Difference between revisions of "Template:Part/sandbox"
Sideriver81 (talk | contribs) (Created page with "<includeonly>{{Databox|content= <div style="text-align: center;"> [[{{{shortName|{{PAGENAME}}}}}|<span style="color:green;">{{{shortName|{{PAGENAME}}}}}</span>]] {{symbol|{{{s...") |
Sideriver81 (talk | contribs) |
||
Line 1: | Line 1: | ||
<includeonly>{{Databox|content= | <includeonly>{{Databox|content= | ||
<div style="text-align: center;"> | <div style="text-align: center;"> | ||
− | + | {{Link color| {{{shortName| {{PAGENAME}} }}}|color=#00b200|text-decoration=none}} | |
{{symbol|{{{symbol}}}|color={{{color|}}}}} | {{symbol|{{{symbol}}}|color={{{color|}}}}} | ||
</div> | </div> | ||
{{Dataheader|Overview}} | {{Dataheader|Overview}} | ||
− | + | {{ Datum | Type | {{Link color| {{#ifeq: {{{slot|N/A}}} | N/A | {{{type}}} | {{{slot}}}/{{{type}}} }} |{{{type}}}|color=#00b200}} }} | |
− | + | {{ 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 }} | |
− | {{#if:{{{rating|}}}| | + | {{#if:{{{rating|}}}| {{ Datum | Rating | <nowiki />{{{rating}}} }} |
− | + | }}{{#if:{{{integrity|}}}| {{ Datum | Integrity | {{#ifeq:{{{noRepairs|}}} | 1 |<nowiki>*</nowiki>}}{{{integrity}}} }} | |
− | }} {{#if:{{{integrity|}}}| | + | }} {{#if:{{{coverage|}}}| {{ Datum | Coverage | {{{coverage}}} }} |
− | |||
− | }} {{#if:{{{coverage|}}}| | ||
− | |||
}} | }} | ||
{{#if:{{{shotRange|}}}{{{shotEnergy|}}}| | {{#if:{{{shotRange|}}}{{{shotEnergy|}}}| | ||
− | + | {{Dataheader|Shot}} | |
− | + | {{ Datum | Range | {{{shotRange|}}} }} | |
− | + | {{ Datum | Energy | {{{shotEnergy|}}} | 0 }} | |
− | + | {{ Datum | Matter | {{{shotMatter|}}} | 0 }} | |
− | + | {{ Datum | Heat | {{{shotHeat|}}} | 0 }} | |
− | + | {{ Datum | Recoil | {{{shotRecoil|0}}} | 0 }} | |
− | + | {{ Datum | Targeting | {{{shotTargeting|0%}}} | 0% }} | |
− | + | {{ Datum | Delay | {{{shotDelay|0}}} | 0 }} | |
− | + | {{ Datum | Stability | {{{shotStability|N/A}}} | N/A }} | |
− | + | {{#ifeq:{{{shotWaypoints|N/A}}} | N/A | {{ Datum | Arc | {{{arc|N/A}}} | N/A }} | {{ Datum | Waypoints | {{{shotWaypoints|N/A}}} | N/A }} }} | |
}}{{#if:{{{projectileDamage|}}}| | }}{{#if:{{{projectileDamage|}}}| | ||
{{Dataheader|Projectile {{#ifeq:{{{projectileCount|1}}} | 1 | | (x{{{projectileCount}}}) }} }} | {{Dataheader|Projectile {{#ifeq:{{{projectileCount|1}}} | 1 | | (x{{{projectileCount}}}) }} }} | ||
Line 179: | Line 176: | ||
|symbol=* | |symbol=* | ||
|color=yellow | |color=yellow | ||
− | |type= | + | |type=Data Core |
− | |slot= | + | |slot=N/A |
|mass=10 | |mass=10 | ||
|rating=4 | |rating=4 | ||
|integrity=55 | |integrity=55 | ||
+ | |noRepairs=1 | ||
|coverage=60 | |coverage=60 | ||
|energyUpkeep=0 | |energyUpkeep=0 |
Revision as of 19:56, 17 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
Improved Deuterium Engine
{{Part/sandbox |name=Improved Deuterium Engine |shortName=Imp. Deuterium Engine |symbol=* |color=yellow |type=Engine |slot=Power |mass=10 |rating=4 |integrity=55 |coverage=60 |energyUpkeep=0 |matterUpkeep=0 |heatUpkeep=+7 |powerSupply=+11 |powerStorage=190 |fabTime=90 |fabMatter=35 |fabComponents=None }}
Example Propulsion
Imp. Flight Unit [=]
Improved Flight Unit
{{Part/sandbox |name=Improved Flight Unit |shortName=Imp. Flight Unit |symbol== |color=cyan |type=Flight Unit |slot=Propulsion |mass=N/A |rating=*2 |integrity=40 |coverage=15 |energyUpkeep=-1 |matterUpkeep=0 |heatUpkeep=+1 |propTime=30 |propMod=-10 (-20 max) |propEnergy=-1 |propHeat=+1 |propSupport=8 |propPenalty=35 |propBurnout=N/A |fabTime=90 |fabMatter=46 |fabComponents=None }}
Example Utility
Increases matter storage capacity by 200 (stacks)
High-capacity Matter Storage Unit
{{Part |name=High-capacity Matter Storage Unit |shortName=Hcp. Matter Storage Unit |symbol=! |color=cyan |type=Storage |slot=Utility |mass=4 |rating=1 |integrity=45 |coverage=8 |energyUpkeep=-1 |matterUpkeep=0 |heatUpkeep=0 |effect=Increases matter storage capacity by 200 (stacks) |fabTime=60 |fabMatter=20 }}
Example Gun
Light Assault Rifle
{{Part/sandbox |name=Light Assault Rifle |shortName=Lgt. Assault Rifle |symbol=[ |color=orange |type=Ballistic Gun |slot=Weapon |mass=1 |rating=1 |integrity=80 |coverage=100 |shotRange=22 |shotEnergy=-1 |shotMatter=-1 |shotHeat=+20 |shotRecoil=1 |shotTargeting=0% |shotDelay=-20 |shotStability=N/A |shotWaypoints=N/A |projectileCount=1 |projectileDamage=6-10 |projectileType=Kinetic |projectileCritical=1% |projectilePenetration=x0 |projectileDisruption=0% |projectileSalvage=0 |fabTime=60 |fabMatter=20 |fabComponents=None }}
Example Launcher
Missile Launcher []]
Missile Launcher
{{Part/sandbox |name=Missile Launcher |shortName=Missile Launcher |symbol=] |color=red |type=Launcher |slot=Weapon |mass=6 |rating=3 |integrity=75 |coverage=110 |shotRange=14 |shotEnergy=0 |shotMatter=-3 |shotHeat=+36 |shotRecoil=0 |shotTargeting=+10% |shotDelay=+20 |shotStability=N/A |shotWaypoints=N/A |explosionCount=1 |explosionRadius=4 |explosionDamage=30-66 |explosionFalloff=-10 |explosionType=Explosive |explosionDisruption=0% |explosionSalvage=-10 |fabTime=80 |fabMatter=23 |fabComponents=None }}
Example Melee Weapon
Hvy. Flail [/]
Heavy Flail
{{Part/sandbox |name=Heavy Flail |shortName=Hvy. Flail |symbol=/ |color=green |type=Impact Weapon |slot=Weapon |mass=3 |rating=3 |integrity=63 |coverage=20 |attackEnergy=-5 |attackMatter=0 |attackHeat=+5 |attackTargeting=0% |attackDelay=+100 |hitDamage=14-42 |hitType=Impact |hitCritical=0% |hitSalvage=0 |fabTime= |fabMatter= |fabComponents= }}