Difference between revisions of "User:Dusty/Sandbox/Templates/Template:dsInfobox"
Line 58: | Line 58: | ||
==Current Icons List== | ==Current Icons List== | ||
<pre> | <pre> | ||
Beam | Beam | ||
Device | |||
Fuel | |||
Light | |||
Plate | |||
Power | |||
Sensor | Sensor | ||
Thruster | |||
Weapon | |||
Yolol | Yolol | ||
</pre> | </pre> | ||
Additional icons can be uploaded and attached with the '''|icon=''' parameter | |||
<gallery> | <gallery> | ||
[[File:Beam.png|thumb]] | [[File:Beam.png|thumb]] | ||
Line 118: | Line 122: | ||
|count=60% | |count=60% | ||
|text=[[Bastium]] | |text=[[Bastium]] | ||
|icon=Plate | |||
}} | }} | ||
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow | {{User:Dusty/Sandbox/Templates/Template:dsComponentRow | ||
Line 123: | Line 128: | ||
|count=30% | |count=30% | ||
|text=[[Bastonium]] | |text=[[Bastonium]] | ||
|icon=Plate | |||
}} | }} | ||
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow | {{User:Dusty/Sandbox/Templates/Template:dsComponentRow | ||
Line 128: | Line 134: | ||
|count=10% | |count=10% | ||
|text=[[Charodium]] | |text=[[Charodium]] | ||
|icon=Plate | |||
}} | }} | ||
|frame={{User:Dusty/Sandbox/Templates/Template:dsComponentRow | |frame={{User:Dusty/Sandbox/Templates/Template:dsComponentRow | ||
Line 133: | Line 140: | ||
|count=100% | |count=100% | ||
|text=[[Bastium]] | |text=[[Bastium]] | ||
|icon=Beam | |||
}} | }} | ||
|sensors={{User:Dusty/Sandbox/Templates/Template:dsComponentRow | |sensors={{User:Dusty/Sandbox/Templates/Template:dsComponentRow | ||
Line 138: | Line 146: | ||
|count=2x | |count=2x | ||
|text=Bottom-facing landing sensors | |text=Bottom-facing landing sensors | ||
|icon=Sensor | |||
}} | }} | ||
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow | {{User:Dusty/Sandbox/Templates/Template:dsComponentRow | ||
Line 143: | Line 152: | ||
|count=4x | |count=4x | ||
|text=Location processing | |text=Location processing | ||
|icon=Sensor | |||
}} | }} | ||
|yolol={{User:Dusty/Sandbox/Templates/Template:dsComponentRow | |yolol={{User:Dusty/Sandbox/Templates/Template:dsComponentRow | ||
Line 148: | Line 158: | ||
|count=1x | |count=1x | ||
|text=Location processing | |text=Location processing | ||
|icon=Yolol | |||
}} | }} | ||
|power={{User:Dusty/Sandbox/Templates/Template:dsComponentRow | |power={{User:Dusty/Sandbox/Templates/Template:dsComponentRow | ||
Line 153: | Line 164: | ||
|count=14x | |count=14x | ||
|text=No enhancers | |text=No enhancers | ||
|icon=Power | |||
}} | }} | ||
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow | {{User:Dusty/Sandbox/Templates/Template:dsComponentRow | ||
Line 158: | Line 170: | ||
|count=2 | |count=2 | ||
|text=No enhancers | |text=No enhancers | ||
|icon=Power | |||
}} | }} | ||
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow | {{User:Dusty/Sandbox/Templates/Template:dsComponentRow | ||
Line 163: | Line 176: | ||
|count=2x | |count=2x | ||
|text=[[Tier 3 Enhancers]] | |text=[[Tier 3 Enhancers]] | ||
|icon=Power | |||
}} | }} | ||
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow | {{User:Dusty/Sandbox/Templates/Template:dsComponentRow | ||
Line 168: | Line 182: | ||
|count=6x | |count=6x | ||
|text=30,000,000 [[propellant]] units | |text=30,000,000 [[propellant]] units | ||
|icon=Fuel | |||
}} | }} | ||
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow | {{User:Dusty/Sandbox/Templates/Template:dsComponentRow | ||
Line 173: | Line 188: | ||
|count=2x | |count=2x | ||
|text=3,000,000 [[propellant]] units | |text=3,000,000 [[propellant]] units | ||
|icon=Fuel | |||
}} | }} | ||
|thrusters={{User:Dusty/Sandbox/Templates/Template:dsComponentRow | |thrusters={{User:Dusty/Sandbox/Templates/Template:dsComponentRow | ||
Line 178: | Line 194: | ||
|count=31x | |count=31x | ||
|text=Main thrust | |text=Main thrust | ||
|icon=Thruster | |||
}} | }} | ||
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow | {{User:Dusty/Sandbox/Templates/Template:dsComponentRow | ||
Line 183: | Line 200: | ||
|count=16x | |count=16x | ||
|text=Roll, pitch, yaw placements | |text=Roll, pitch, yaw placements | ||
|icon=Thruster | |||
}} | }} | ||
|devices={{User:Dusty/Sandbox/Templates/Template:dsComponentRow | |devices={{User:Dusty/Sandbox/Templates/Template:dsComponentRow | ||
Line 188: | Line 206: | ||
|count=28x | |count=28x | ||
|text=Interior lighting | |text=Interior lighting | ||
|icon=Light | |||
}} | }} | ||
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow | {{User:Dusty/Sandbox/Templates/Template:dsComponentRow | ||
Line 193: | Line 212: | ||
|count=1x | |count=1x | ||
|text=Forward orientation | |text=Forward orientation | ||
|icon=Device | |||
}} | }} | ||
|armaments={{User:Dusty/Sandbox/Templates/Template:dsComponentRow | |armaments={{User:Dusty/Sandbox/Templates/Template:dsComponentRow | ||
|component=[[Mining | |component=[[Mining Laser]] | ||
|count=2x | |count=2x | ||
|text=Lateral placement | |text=Lateral placement | ||
|icon=Weapon | |||
}} | }} | ||
}} | }} | ||
</pre> | </pre> |
Revision as of 10:25, 15 July 2020
This is the documentation for the infobox template as designed by meeeee
Loading Template
Usage
Copy and paste the source below into the document being edited to load the infobox template. The template is set to float on the right side of the page, and should be hoisted above body content.
Source
{{User:Dusty/Sandbox/Templates/Template:dsInfobox |image= |model= <!-- Overview tab --> |manufacturer= |role= |size= |crew= |cargoCapacity= |productionState= |generalExtras= <!-- Marketing section --> |unitCost= |runningCost= |marketingExtras= <!-- Specifications section --> |length= |beam= |height= |voxelVolume= |maxSpeed= |specificationsExtra= <!-- Custom overview header and field section --> |overviewTabExtra= <!-- Hull & Frame tab --> |hull= |frame= <!-- Sensors & YOLOL tab --> |sensors= |yolol= <!-- Power & Thrusters tab --> |power= |thrusters= <!-- Devices & Armaments tab --> |devices= |armaments= }}
Configuring Template
All fields are optional, and can accept strings or HTML. Though the Hull & Frame, Sensors & YOLOL, Power & Thrusters, and Devices & Armaments tabs can be supplied with unformatted body text, they should instead be supplied with the component row template on a per-component basis, with each use of the template separated by a line-break.
Current Icons List
Beam Device Fuel Light Plate Power Sensor Thruster Weapon Yolol
Additional icons can be uploaded and attached with the |icon= parameter
Appending Extra Content
Appending non-standard content to the overview tab can be achieved by adding the header template and/or row template as arguments in the generalExtras, marketingExtras, specificationsExtras, and/or overviewTabExtra parameters. The header template will create a new header which is used to divide each of the sections, eg: general, marketing, and specifications areas. The row template will create a single new cell in its place.
Example Usage
An example page with this template can be found here.
{{User:Dusty/Sandbox/Templates/Template:dsInfobox |image=Ithaca_IV_Cover.png |model=Ithaca IV |manufacturer=Eos Shipyards |role=Civilian Transport |size=Medium |crew=1 Pilot + 1 Co-pilot |cargoCapacity=0 |productionState=In production |generalExtras={{User:Dusty/Sandbox/Templates/Template:dsInfoRow |cellHeader=Passenger Capacity |cellBody=12 }} |unitCost=11.2 million credits (approx.) |runningCost=4,000 credits/hour |marketingExtras={{User:Dusty/Sandbox/Templates/Template:dsInfoRow |cellHeader=Rental cost |cellBody=60,000 credits/hour }} |length=36.36 meters |beam=22.08 meters |height=10.16 meters |voxelVolume=789,312,045 |maxSpeed=To be determined |specificationsExtra={{User:Dusty/Sandbox/Templates/Template:dsInfoRow |cellHeader=Max Acceleration |cellBody=Unknown }} |overviewTabExtra= |hull={{User:Dusty/Sandbox/Templates/Template:dsComponentRow |component=Plating |count=60% |text=[[Bastium]] |icon=Plate }} {{User:Dusty/Sandbox/Templates/Template:dsComponentRow |component=Plating |count=30% |text=[[Bastonium]] |icon=Plate }} {{User:Dusty/Sandbox/Templates/Template:dsComponentRow |component=Plating |count=10% |text=[[Charodium]] |icon=Plate }} |frame={{User:Dusty/Sandbox/Templates/Template:dsComponentRow |component=Frame |count=100% |text=[[Bastium]] |icon=Beam }} |sensors={{User:Dusty/Sandbox/Templates/Template:dsComponentRow |component=[[Rangefinder]] |count=2x |text=Bottom-facing landing sensors |icon=Sensor }} {{User:Dusty/Sandbox/Templates/Template:dsComponentRow |component=[[Receiver]] |count=4x |text=Location processing |icon=Sensor }} |yolol={{User:Dusty/Sandbox/Templates/Template:dsComponentRow |component=ISAN Processor |count=1x |text=Location processing |icon=Yolol }} |power={{User:Dusty/Sandbox/Templates/Template:dsComponentRow |component=[[Generator]] |count=14x |text=No enhancers |icon=Power }} {{User:Dusty/Sandbox/Templates/Template:dsComponentRow |component=[[Fuel Rod Chamber]] |count=2 |text=No enhancers |icon=Power }} {{User:Dusty/Sandbox/Templates/Template:dsComponentRow |component=[[Fuel Rod Chamber]] |count=2x |text=[[Tier 3 Enhancers]] |icon=Power }} {{User:Dusty/Sandbox/Templates/Template:dsComponentRow |component=[[Propellant Tank|Propellant Tank (med.)]] |count=6x |text=30,000,000 [[propellant]] units |icon=Fuel }} {{User:Dusty/Sandbox/Templates/Template:dsComponentRow |component=[[Propellant Tank|Propellant Tank (sm.)]] |count=2x |text=3,000,000 [[propellant]] units |icon=Fuel }} |thrusters={{User:Dusty/Sandbox/Templates/Template:dsComponentRow |component=[[Triangle Thruster]] |count=31x |text=Main thrust |icon=Thruster }} {{User:Dusty/Sandbox/Templates/Template:dsComponentRow |component=[[Maneuver Thruster]] |count=16x |text=Roll, pitch, yaw placements |icon=Thruster }} |devices={{User:Dusty/Sandbox/Templates/Template:dsComponentRow |component=[[Lamp]] |count=28x |text=Interior lighting |icon=Light }} {{User:Dusty/Sandbox/Templates/Template:dsComponentRow |component=[[Main Flight Computer|M.F.C]] |count=1x |text=Forward orientation |icon=Device }} |armaments={{User:Dusty/Sandbox/Templates/Template:dsComponentRow |component=[[Mining Laser]] |count=2x |text=Lateral placement |icon=Weapon }} }}