Sb forum speech.png DiscordLink.png FacebookLink.png RedditLink.png SteamLink.png TwitterLink.png YoutubeLink.png

Difference between revisions of "User:Dusty/Sandbox/Templates/Template:dsInfobox"

From Starbase wiki
Jump to navigation Jump to search
(8 intermediate revisions by the same user not shown)
Line 31: Line 31:
|voxelVolume=
|voxelVolume=
|maxSpeed=
|maxSpeed=
|range=
|specificationsExtra=
|specificationsExtra=


Line 99: Line 98:
|cargoCapacity=0
|cargoCapacity=0
|productionState=In production
|productionState=In production
|generalExtras={{Infobox_Infocell
|generalExtras={{User:Dusty/Sandbox/Templates/Template:dsInfoRow
|cellHeader=Passenger Capacity
|cellHeader=Passenger Capacity
|cellBody=12
|cellBody=12
Line 105: Line 104:
|unitCost=11.2 million credits (approx.)
|unitCost=11.2 million credits (approx.)
|runningCost=4,000 credits/hour
|runningCost=4,000 credits/hour
|marketingExtras={{Infobox_Infocell
|marketingExtras={{User:Dusty/Sandbox/Templates/Template:dsInfoRow
|cellHeader=Rental cost
|cellHeader=Rental cost
|cellBody=60,000 credits/hour
|cellBody=60,000 credits/hour
Line 114: Line 113:
|voxelVolume=789,312,045
|voxelVolume=789,312,045
|maxSpeed=To be determined
|maxSpeed=To be determined
|range=12 hours (est.)
|specificationsExtra={{User:Dusty/Sandbox/Templates/Template:dsInfoRow
|specificationsExtra={{Infobox_Infocell
|cellHeader=Max Acceleration
|cellHeader=Max Acceleration
|cellBody=Unknown
|cellBody=Unknown
}}
}}
|overviewTabExtra=
|overviewTabExtra=
|hull={{Infobox_Component
|hull={{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=Plating
|component=Plating
|count=60%
|count=60%
Line 126: Line 124:
|icon=[[File:Plate.png]]
|icon=[[File:Plate.png]]
}}
}}
{{Infobox_Component
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=Plating
|component=Plating
|count=30%
|count=30%
Line 132: Line 130:
|icon=[[File:Plate.png]]
|icon=[[File:Plate.png]]
}}
}}
{{Infobox_Component
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=Plating
|component=Plating
|count=10%
|count=10%
Line 138: Line 136:
|icon=[[File:Plate.png]]
|icon=[[File:Plate.png]]
}}
}}
|frame={{Infobox_Component
|frame={{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=Frame
|component=Frame
|count=100%
|count=100%
Line 144: Line 142:
|icon=[[File:Beam.png]]
|icon=[[File:Beam.png]]
}}
}}
|sensors={{Infobox_Component
|sensors={{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Rangefinder]]
|component=[[Rangefinder]]
|count=2x
|count=2x
Line 150: Line 148:
|icon=[[File:Sensor.png]]
|icon=[[File:Sensor.png]]
}}
}}
{{Infobox_Component
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Receiver]]
|component=[[Receiver]]
|count=4x
|count=4x
Line 156: Line 154:
|icon=[[File:Sensor.png]]
|icon=[[File:Sensor.png]]
}}
}}
|yolol={{Infobox_Component
|yolol={{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=ISAN Processor
|component=ISAN Processor
|count=1x
|count=1x
Line 162: Line 160:
|icon=[[File:Yolol.png]]
|icon=[[File:Yolol.png]]
}}
}}
|power={{Infobox_Component
|power={{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Generator]]
|component=[[Generator]]
|count=14x
|count=14x
Line 168: Line 166:
|icon=[[File:Power.png]]
|icon=[[File:Power.png]]
}}
}}
{{Infobox_Component
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Fuel Rod Chamber]]
|component=[[Fuel Rod Chamber]]
|count=2
|count=2
Line 174: Line 172:
|icon=[[File:Power.png]]
|icon=[[File:Power.png]]
}}
}}
{{Infobox_Component
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Fuel Rod Chamber]]
|component=[[Fuel Rod Chamber]]
|count=2x
|count=2x
Line 180: Line 178:
|icon=[[File:Power.png]]
|icon=[[File:Power.png]]
}}
}}
{{Infobox_Component
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Propellant Tank|Propellant Tank (med.)]]
|component=[[Propellant Tank|Propellant Tank (med.)]]
|count=6x
|count=6x
Line 186: Line 184:
|icon=[[File:Fuel.png]]
|icon=[[File:Fuel.png]]
}}
}}
{{Infobox_Component
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Propellant Tank|Propellant Tank (sm.)]]
|component=[[Propellant Tank|Propellant Tank (sm.)]]
|count=2x
|count=2x
Line 192: Line 190:
|icon=[[File:Fuel.png]]
|icon=[[File:Fuel.png]]
}}
}}
|thrusters={{Infobox_Component
|thrusters={{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Triangle Thruster]]
|component=[[Triangle Thruster]]
|count=31x
|count=31x
Line 198: Line 196:
|icon=[[File:Thruster.png]]
|icon=[[File:Thruster.png]]
}}
}}
{{Infobox_Component
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Maneuver Thruster]]
|component=[[Maneuver Thruster]]
|count=16x
|count=16x
Line 204: Line 202:
|icon=[[File:Thruster.png]]
|icon=[[File:Thruster.png]]
}}
}}
|devices={{Infobox_Component
|devices={{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Lamp]]
|component=[[Lamp]]
|count=28x
|count=28x
Line 210: Line 208:
|icon=[[File:Light.png]]
|icon=[[File:Light.png]]
}}
}}
{{Infobox_Component
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Main Flight Computer|M.F.C]]
|component=[[Main Flight Computer|M.F.C]]
|count=1x
|count=1x
Line 216: Line 214:
|icon=[[File:Device.png]]
|icon=[[File:Device.png]]
}}
}}
|armaments={{Infobox_Component
|armaments={{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Mining Laser]]
|component=[[Mining Laser]]
|count=2x
|count=2x
Line 245: Line 243:
       <div class="shipTemplateDesignContent">
       <div class="shipTemplateDesignContent">
         <div class="shipTemplateDesign-overview shipTemplateContent">
         <div class="shipTemplateDesign-overview shipTemplateContent">
             <div class="shipTemplateDesign-overview-inner">{{#if:{{{manufacturer|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Manufacturer</div><div class="infoboxCellBottom">{{{manufacturer}}}</div></div>}}{{#if:{{{role|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Role</div><div class="infoboxCellBottom">{{{role}}}</div></div>}}{{#if:{{{size|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Size</div><div class="infoboxCellBottom">{{{size}}}</div></div>}}{{#if:{{{crew|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Crew</div><div class="infoboxCellBottom">{{{crew}}}</div></div>}}{{#if:{{{cargoCapacity|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Cargo Capacity</div><div class="infoboxCellBottom">{{{cargoCapacity}}}</div></div>}}{{#if:{{{productionState|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Production State</div><div class="infoboxCellBottom">{{{productionState}}}</div></div>}}{{#if:{{{generalExtras|}}}|{{{generalExtras}}}}}{{#if:{{{initialPrice|}}}{{{runningCost|}}}{{{marketingExtras|}}}|<div class="infoboxHeader">Market</div>}}{{#if:{{{unitCost|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Unit price</div><div class="infoboxCellBottom">{{{unitCost}}}</div></div>}}{{#if:{{{runningCost|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Cost of running</div><div class="infoboxCellBottom">{{{runningCost}}}</div></div>}}{{#if:{{{marketingExtras|}}}|{{{marketingExtras}}}}}{{#if:{{{length|}}}{{{beam|}}}{{{height|}}}{{{voxelVolume|}}}{{{maxSpeed|}}}{{{range|}}}|<div class="infoboxHeader">Specifications</div>}}{{#if:{{{length|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Length</div><div class="infoboxCellBottom">{{{length}}}</div></div>}}{{#if:{{{beam|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Beam</div><div class="infoboxCellBottom">{{{beam}}}</div></div>}}{{#if:{{{height|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Height</div><div class="infoboxCellBottom">{{{height}}}</div></div>}}{{#if:{{{voxelVolume|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Voxel volume</div><div class="infoboxCellBottom">{{{voxelVolume}}}</div></div>}}{{#if:{{{maxSpeed|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Max speed</div><div class="infoboxCellBottom">{{{maxSpeed}}}</div></div>}}{{#if:{{{range|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Range</div><div class="infoboxCellBottom">{{{range}}}</div></div>}}{{#if:{{{specificationsExtra|}}}|{{{specificationsExtra|}}}}}{{#if:{{{overviewTabExtra|}}}|{{{overviewTabExtra}}}}}<div class="shipTemplate-hiddenWarning">No data found..</div>
             <div class="shipTemplateDesign-overview-inner">{{#if:{{{manufacturer|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Manufacturer</div><div class="infoboxCellBottom">{{{manufacturer}}}</div></div>}}{{#if:{{{role|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Role</div><div class="infoboxCellBottom">{{{role}}}</div></div>}}{{#if:{{{size|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Size</div><div class="infoboxCellBottom">{{{size}}}</div></div>}}{{#if:{{{crew|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Crew</div><div class="infoboxCellBottom">{{{crew}}}</div></div>}}{{#if:{{{cargoCapacity|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Cargo Capacity</div><div class="infoboxCellBottom">{{{cargoCapacity}}}</div></div>}}{{#if:{{{productionState|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Production State</div><div class="infoboxCellBottom">{{{productionState}}}</div></div>}}{{#if:{{{generalExtras|}}}|{{{generalExtras}}}}}{{#if:{{{initialPrice|}}}{{{runningCost|}}}{{{marketingExtras|}}}|<div class="infoboxHeader">Market</div>}}{{#if:{{{unitCost|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Unit price</div><div class="infoboxCellBottom">{{{unitCost}}}</div></div>}}{{#if:{{{runningCost|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Cost of running</div><div class="infoboxCellBottom">{{{runningCost}}}</div></div>}}{{#if:{{{marketingExtras|}}}|{{{marketingExtras}}}}}{{#if:{{{length|}}}{{{beam|}}}{{{height|}}}{{{voxelVolume|}}}{{{maxSpeed|}}}|<div class="infoboxHeader">Specifications</div>}}{{#if:{{{length|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Length</div><div class="infoboxCellBottom">{{{length}}}</div></div>}}{{#if:{{{beam|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Beam</div><div class="infoboxCellBottom">{{{beam}}}</div></div>}}{{#if:{{{height|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Height</div><div class="infoboxCellBottom">{{{height}}}</div></div>}}{{#if:{{{voxelVolume|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Voxel volume</div><div class="infoboxCellBottom">{{{voxelVolume}}}</div></div>}}{{#if:{{{maxSpeed|}}}|<div class="infoboxCell"><div class="infoboxCellTop">Max speed</div><div class="infoboxCellBottom">{{{maxSpeed}}}</div></div>}}{{#if:{{{specificationsExtra|}}}|{{{specificationsExtra|}}}}}{{#if:{{{overviewTabExtra|}}}|{{{overviewTabExtra}}}}}<div class="shipTemplate-hiddenWarning">No data found..</div>
             </div>
             </div>
         </div>
         </div>
Line 294: Line 292:
   display: flex;
   display: flex;
   flex-grow: 1;
   flex-grow: 1;
  padding: .25em 1em;
}
}
.shipTemplateTab a {
.shipTemplateTab a {
Line 448: Line 445:
@media only screen  
@media only screen  
   and (pointer:coarse) ,  
   and (pointer:coarse) ,  
  only screen
   and (width < 600px)
   and (width < 800px)
   and (orientation: portrait) {  
   and (orientation: portrait) {  
     .divInfobox {
     .divInfobox {
Line 463: Line 459:
     }
     }
     .shipTemplateDesignWrapper {
     .shipTemplateDesignWrapper {
      height:20vh;
      overflow: scroll;
     }
     }



Revision as of 07:08, 17 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=[[File:Plate.png]]
}}
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=Plating
|count=30%
|text=[[Bastonium]]
|icon=[[File:Plate.png]]
}}
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=Plating
|count=10%
|text=[[Charodium]]
|icon=[[File:Plate.png]]
}}
|frame={{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=Frame
|count=100%
|text=[[Bastium]]
|icon=[[File:Beam.png]]
}}
|sensors={{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Rangefinder]]
|count=2x
|text=Bottom-facing landing sensors
|icon=[[File:Sensor.png]]
}}
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Receiver]]
|count=4x
|text=Location processing
|icon=[[File:Sensor.png]]
}}
|yolol={{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=ISAN Processor
|count=1x
|text=Location processing
|icon=[[File:Yolol.png]]
}}
|power={{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Generator]]
|count=14x
|text=No enhancers
|icon=[[File:Power.png]]
}}
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Fuel Rod Chamber]]
|count=2
|text=No enhancers
|icon=[[File:Power.png]]
}}
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Fuel Rod Chamber]]
|count=2x
|text=[[Tier 3 Enhancers]]
|icon=[[File:Power.png]]
}}
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Propellant Tank|Propellant Tank (med.)]]
|count=6x
|text=30,000,000  [[propellant]]  units
|icon=[[File:Fuel.png]]
}}
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Propellant Tank|Propellant Tank (sm.)]]
|count=2x
|text=3,000,000  [[propellant]]  units
|icon=[[File:Fuel.png]]
}}
|thrusters={{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Triangle Thruster]]
|count=31x
|text=Main thrust
|icon=[[File:Thruster.png]]
}}
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Maneuver Thruster]]
|count=16x
|text=Roll, pitch, yaw placements
|icon=[[File:Thruster.png]]
}}
|devices={{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Lamp]]
|count=28x
|text=Interior lighting
|icon=[[File:Light.png]]
}}
{{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Main Flight Computer|M.F.C]]
|count=1x
|text=Forward orientation
|icon=[[File:Device.png]]
}}
|armaments={{User:Dusty/Sandbox/Templates/Template:dsComponentRow
|component=[[Mining Laser]]
|count=2x
|text=Lateral placement
|icon=[[File:Weapon.png]]
}}
}}


Cookies help us deliver our services. By using our services, you agree to our use of cookies.