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

Difference between revisions of "Template:SB Infobox Begin"

From Starbase wiki
Jump to navigation Jump to search
m (Removed CSS call)
 
(37 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="SB-Infobox">{{#invoke:SB_Infobox_Begin|main}}</div>
<noinclude>Creates a modular infobox for use on English-language pages. By default, this template contains no sections, but sections can be appended as follows:
{{#css:
== Template ==
.SB-Infobox {
<pre>{{SB Infobox Begin
  border:2px solid #304344;
|{{SB Infobox Header
  width:25vw;
  |image= //Mediawiki image embed
  max-width:40em;
  |factionLogo= // Mediawiki image embed with link=""
  float:right;
  |caption= //Image caption
  clear:right;
  |name= //Heading for infobox
  margin: 10px 10px;
  |subtitle= //Sub-heading for infobox
  padding: 10px 10px;
  |suppressName //Optional parameter to remove name/subtitle from infobox
  background:rgba(49, 68, 77, 0.15);
  |border=none //Optional parameter to remove border from image
}
}}
.SB-Infobox-Header {
  text-align: center;
  margin-bottom: 0.25em;
}
.SB-Infobox-Header img {
  height: auto;
  width: auto;
  max-height: 250px;
  max-width: 100%;
}
.SB-Infobox-Faction-Logo img {
  max-width: 15%;
  width:auto;
  height:auto;
  position: absolute;
  bottom: 0.25em;
  right: 0.25em;
  opacity: 0.8;
  outline:none;
  background:none;
}
.SB-Infobox-Image-Wrap {
  position: relative;
  background: linear-gradient(transparent, #3a808045);
  outline: 2px solid #305e60;
}
.SB-Infobox-Header-Caption {
  display: block;
  font-style: italic;
  margin-top: 0.25em;
}
.SB-Infobox-Name {
  font-family: KenneyFuture;
  font-size:1.8em;
  color:#edcd50;
  text-align: center;
  background: #38586082;
}
.SB-Infobox-Data-Section-Header::before {
  content: " ";
  display: block;
  position: relative;
  top: -1em;
  border-top: 1px solid #394442;
}
.SB-Infobox-Data-Section-Header {
  width: 100%;
  text-align: center;
  margin: auto;
  background: #2b42488c;
  font-family: kenneyfuture;
  font-size: 1.2em;
  margin-top: 1em;
}
.SB-Infobox-Data-Section {
  text-align: center;
}
.SB-Infobox-Data-Cell {
  display:flex;
  text-align:left;
  padding:0 0.4em;
/*  font-size:1.25em */
}
.SB-Infobox-Cell-Header {
  font-weight:bold;
  flex:48%;
  min-width:min-content;
  margin-right:4%;
}
.SB-Infobox-Cell-Body {
  flex:50%;
  margin: auto;
}
.SB-Infobox-Cell-Body ul {
  margin:0 0 .2em 2em!important;
}
.SB-Infobox-Construction-Section {
  grid-template-columns: repeat(auto-fit, minmax(11em, 1fr));
  display: grid;
  column-gap: 1em;
  padding: 0 0.4em;
}
.SB-Infobox-Construction-Cell-Header {
    flex: 50%;
    text-align: left;
    display: inline-block;
}
.SB-Infobox-Construction-Cell {
    display: flex;
}


/* Portrait orientation. Also, low-res viewports */
|{{SB Infobox Device General Information
@media
  |type= //Location in asset browser directory
only screen and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait),
  |function= //Purpose of device
only screen and (  min--moz-device-pixel-ratio: 2) and (orientation: portrait),
  |availability= //What stores the device is available in
only screen and (    -o-min-device-pixel-ratio: 2/1) and (orientation: portrait),
  |size= ×  ×  cm //Dimensions of device
only screen and (        min-device-pixel-ratio: 2) and (orientation: portrait),
  |mass=//Mass of device in kg. Note: Asset browser tool-tips are currently inaccurate
only screen and (                min-resolution: 192dpi) and (orientation: portrait),
  |volume=//Volume of device in kv
only screen and (                min-resolution: 2dppx) and (orientation: portrait),
  |corrosionResistance=//Corrosion resistance. Unit-less number
only screen and (max-width: 800px) and (orientation: portrait) {
  |suppressUnitsKg //Optional parameter to remove the auto-added 'kg' from the mass field. Useful if a list is being used
  .SB-Infobox {
  |suppressUnitsKv  //Optional parameter to remove the auto-added 'kv' from the volume field. Useful if a list is being used
    width:auto;
}}
    float:none;
    clear:none;
    font-size:1.5em;
  }


}
|{{SB Infobox Weapon Data
  |rateOfFire=//Rate of fire of weapon + RPM
  |muzzleVelocity=//Velocity of projectile
  |projectileVoxelMass=//Mass of projectile
  |projectileEnergy=//Energy of projectile
  |projectileLifetime=//How long the projectile exists in game
  |magazineCapacity=//Total magazine capacity til reload
}}


|{{SB Infobox Device IO
@media
  |electricIn=//Maximum power input + e/s
only screen and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape),
  |electricOut=//Maximum power output + e/s
only screen and (   min--moz-device-pixel-ratio: 2) and (orientation: landscape),
  |energyCapacity=//Maximum power capacity
only screen and (     -o-min-device-pixel-ratio: 2/1) and (orientation: landscape),
  |coolantIn=//Maximum coolant input + c/s
only screen and (       min-device-pixel-ratio: 2) and (orientation: landscape),
  |coolantOut=//Maximum coolant output + c/s
only screen and (               min-resolution: 192dpi) and (orientation: landscape),
  |coolantRefresh=//Maximum rate of coolant recycling (eg: radiators) + c/s
only screen and (               min-resolution: 2dppx) and (orientation: landscape) {
  |coolantCapacity=//Total coolant capacity
  .SB-Infobox {
  |heatGeneration=//Maximum heat generation (eg: weapons) + h/s
    width:40%;
  |heatDissipation=//Maximum heat dissipation + h/s
    font-size:0.9em;
  |propellantIn=//Maximum propellant input + p/s
  }
  |propellantOut=//Maximum propellant output + p/s
}
  |propellantCapacity=//Total propellant capacity
}}</includeonly>
  |fuelIn=//Maximum fuel input (fuel rods) + f/s
  |fuelOut=//Maximum fuel output (fuel rods) + f/s
  |fuelCapacity=//Maximum fuel capacity (eg: fuel rods)
  |thrust=//Maximum thrust output. Unit-less
  |sockets=//Number of sockets on devices, if any
  |YOLOLchips=//Number of YOLOL/Memory chip slots, if any
  |blueprintChips=//Number of blueprint slots, if any
  |modInterfaces=//Number of modular interfaces (eg: triangle thrusters, YOLOL racks, memory relays), if any
  |deviceInterfaces=//Number of device-base interfaces, if any
}}
 
|{{SB Infobox Device Construction
  |overrideHeader=//Used to override the header content of the device construction field (often used if a device is multi-part and needs multiple construction sections)
  |aegisium=
  |ajatite=
  |arkanium=
  |bastium=
  |charodium=
  |corazium=
  |exorium=
  |haderite=
  |ice=
  |ilmatrium=
  |karnite=
  |kutonium=
  |lukium=
  |merkerium=
  |nhurgite=
  |oninum=
  |surtrite=
  |tengium=
  |ukonium=
  |valkite=
  |vokarium=
  |xhalium=
}}
}}</pre>
 
The '''overrideHeader''' field in [[Template:SB_Infobox_Device_Construction]] exists so that the section may easily be duplicated and separately named. '''suppressUnitsKg''' and '''suppressUnitsKv''' exist in the event that '''mass''' or '''volume''' are filled with an unordered list or some other form of data that would be confusing with 'kg' or 'kv' added to its end. Add any value to these fields to enable them.
 
Additional custom sections may be appended with the [[Template:SB_Infobox_Section|Infobox Section template]]. For ease of use (and for allowing sections to be appended to the above prefix sections), this section template does not include a header. A section header can be found [[Template:SB_Infobox_Header|here]], and the two may be used as follows
 
<pre>
{{Template:SB_Infobox_Begin
  |{{Template:SB_Infobox_Header|Header Name}}
  |{{Template:SB_Infobox_Section
    |Field 1|Value 1
    |Field 2|Value 2
  }}
}}
</pre>
 
The '''overrideHeader''' field in [[Template:SB_Infobox_Device_Construction]] exists so that the section may easily be duplicated and separately named. '''suppressUnitsKg''' and '''suppressUnitsKv''' exist in the event that '''mass''' or '''volume''' are filled with an unordered list or some other form of data that would be confusing with 'kg' or 'kv' added to its end. Add any value to these fields to enable them.
 
Additional custom sections may be appended with the [[Template:SB_Infobox_Section|Infobox Section template]]. For ease of use (and for allowing sections to be appended to the above prefix sections), this section template does not include a header. A section header can be found [[Template:SB_Infobox_Header|here]], and the two may be used as follows
 
== Example ==
{{SB Infobox Begin
|{{SB Infobox Header
  |image=[[Image:Spaceship_Empire_Veles.jpg]]
  |factionLogo=[[File:Logo_of_empire.png]]
  |caption= //Image caption
  |name= //Heading for infobox
  |subtitle= //Sub-heading for infobox
  |suppressName //Optional parameter to remove name/subtitle from infobox
  |border=none //Optional parameter to remove border from image
}}
 
|{{SB Infobox Device General Information
  |type= //Location in asset browser directory
  |function= //Purpose of device
  |availability= //What stores the device is available in
  |size= ×  ×  cm //Dimensions of device
  |mass=//Mass of device in kg. Note: Asset browser tool-tips are currently inaccurate
  |volume=//Volume of device in kv
  |corrosionResistance=//Corrosion resistance. Unit-less number
  |suppressUnitsKg //Optional parameter to remove the auto-added 'kg' from the mass field. Useful if a list is being used
  |suppressUnitsKv  //Optional parameter to remove the auto-added 'kv' from the volume field. Useful if a list is being used
}}
 
|{{SB Infobox Device IO
  |electricIn=//Maximum power input + e/s
  |electricOut=//Maximum power output + e/s
  |coolantIn=//Maximum coolant input + c/s
  |coolantOut=//Maximum coolant output + c/s
  |coolantRefresh=//Maximum rate of coolant recycling (eg: radiators) + c/s
  |heatGeneration=//Maximum heat generation (eg: weapons) + h/s
  |propellantIn=//Maximum propellant input + p/s
  |propellantOut=//Maximum propellant output + p/s
  |fuelIn=//Maximum fuel input (fuel rods) + f/s
  |fuelOut=//Maximum fuel output (fuel rods) + f/s
  |thrust=//Maximum thrust output. Unit-less
  |sockets=//Number of sockets on devices, if any
  |YOLOLchips=//Number of YOLOL/Memory chip slots, if any
  |modInterfaces=//Number of modular interfaces (eg: triangle thrusters, YOLOL racks, memory relays), if any
  |deviceInterfaces=//Number of device-base interfaces, if any
}}
 
|{{SB Infobox Device Construction
  |overrideHeader=//Used to override the header content of the device construction field (often used if a device is multi-part and needs multiple construction sections)
  |aegisium=X% or KV
  |ajatite=X% or KV
  |arkanium=X% or KV
  |bastium=X% or KV
  |charodium=X% or KV
  |corazium=X% or KV
  |exorium=X% or KV
  |haderite=X% or KV
  |ice=X% or KV
  |ilmatrium=X% or KV
  |karnite=X% or KV
  |kutonium=X% or KV
  |lukium=X% or KV
  |merkerium=X% or KV
  |nhurgite=X% or KV
  |oninum=X% or KV
  |surtrite=X% or KV
  |tengium=X% or KV
  |ukonium=X% or KV
  |valkite=X% or KV
  |vokarium=X% or KV
  |xhalium=X% or KV
}}
 
}}
 
 
 
 
</noinclude>
 
<includeonly><div class="SB-Infobox">{{#invoke:SB_Infobox_Begin|main}}</div></includeonly>

Latest revision as of 10:05, 2 July 2021

Creates a modular infobox for use on English-language pages. By default, this template contains no sections, but sections can be appended as follows:

Template

{{SB Infobox Begin
	|{{SB Infobox Header
	  |image= //Mediawiki image embed
	  |factionLogo= // Mediawiki image embed with link=""
	  |caption= //Image caption
	  |name= //Heading for infobox
	  |subtitle= //Sub-heading for infobox
	  |suppressName //Optional parameter to remove name/subtitle from infobox
	  |border=none //Optional parameter to remove border from image
	}}

	|{{SB Infobox Device General Information
	  |type= //Location in asset browser directory
	  |function= //Purpose of device
	  |availability= //What stores the device is available in
	  |size= ×  ×  cm //Dimensions of device
	  |mass=//Mass of device in kg. Note: Asset browser tool-tips are currently inaccurate
	  |volume=//Volume of device in kv
	  |corrosionResistance=//Corrosion resistance. Unit-less number
	  |suppressUnitsKg //Optional parameter to remove the auto-added 'kg' from the mass field. Useful if a list is being used
	  |suppressUnitsKv  //Optional parameter to remove the auto-added 'kv' from the volume field. Useful if a list is being used
	}}

	|{{SB Infobox Weapon Data
	  |rateOfFire=//Rate of fire of weapon + RPM
	  |muzzleVelocity=//Velocity of projectile
	  |projectileVoxelMass=//Mass of projectile
	  |projectileEnergy=//Energy of projectile
	  |projectileLifetime=//How long the projectile exists in game
	  |magazineCapacity=//Total magazine capacity til reload
	}}

	|{{SB Infobox Device IO
	  |electricIn=//Maximum power input + e/s
	  |electricOut=//Maximum power output + e/s
	  |energyCapacity=//Maximum power capacity
	  |coolantIn=//Maximum coolant input + c/s
	  |coolantOut=//Maximum coolant output + c/s
	  |coolantRefresh=//Maximum rate of coolant recycling (eg: radiators) + c/s
	  |coolantCapacity=//Total coolant capacity
	  |heatGeneration=//Maximum heat generation (eg: weapons) + h/s
	  |heatDissipation=//Maximum heat dissipation + h/s
	  |propellantIn=//Maximum propellant input + p/s
	  |propellantOut=//Maximum propellant output + p/s
	  |propellantCapacity=//Total propellant capacity
	  |fuelIn=//Maximum fuel input (fuel rods) + f/s
	  |fuelOut=//Maximum fuel output (fuel rods) + f/s
	  |fuelCapacity=//Maximum fuel capacity (eg: fuel rods)
	  |thrust=//Maximum thrust output. Unit-less
	  |sockets=//Number of sockets on devices, if any
	  |YOLOLchips=//Number of YOLOL/Memory chip slots, if any
	  |blueprintChips=//Number of blueprint slots, if any
	  |modInterfaces=//Number of modular interfaces (eg: triangle thrusters, YOLOL racks, memory relays), if any
	  |deviceInterfaces=//Number of device-base interfaces, if any
	}}

	|{{SB Infobox Device Construction
	  |overrideHeader=//Used to override the header content of the device construction field (often used if a device is multi-part and needs multiple construction sections)
	  |aegisium=
	  |ajatite=
	  |arkanium=
	  |bastium=
	  |charodium=
	  |corazium=
	  |exorium=
	  |haderite=
	  |ice=
	  |ilmatrium=
	  |karnite=
	  |kutonium=
	  |lukium=
	  |merkerium=
	  |nhurgite=
	  |oninum=
	  |surtrite=
	  |tengium=
	  |ukonium=
	  |valkite=
	  |vokarium=
	  |xhalium=
	}}
}}

The overrideHeader field in Template:SB_Infobox_Device_Construction exists so that the section may easily be duplicated and separately named. suppressUnitsKg and suppressUnitsKv exist in the event that mass or volume are filled with an unordered list or some other form of data that would be confusing with 'kg' or 'kv' added to its end. Add any value to these fields to enable them.

Additional custom sections may be appended with the Infobox Section template. For ease of use (and for allowing sections to be appended to the above prefix sections), this section template does not include a header. A section header can be found here, and the two may be used as follows

{{Template:SB_Infobox_Begin
  |{{Template:SB_Infobox_Header|Header Name}}
  |{{Template:SB_Infobox_Section
    |Field 1|Value 1
    |Field 2|Value 2
  }}
}}

The overrideHeader field in Template:SB_Infobox_Device_Construction exists so that the section may easily be duplicated and separately named. suppressUnitsKg and suppressUnitsKv exist in the event that mass or volume are filled with an unordered list or some other form of data that would be confusing with 'kg' or 'kv' added to its end. Add any value to these fields to enable them.

Additional custom sections may be appended with the Infobox Section template. For ease of use (and for allowing sections to be appended to the above prefix sections), this section template does not include a header. A section header can be found here, and the two may be used as follows

Example

Spaceship Empire Veles.jpg
//Image caption
//Heading for infobox
//Sub-heading for infobox
Type //Location in asset browser directory
Function //Purpose of device
Availability //What stores the device is available in
Size × × cm //Dimensions of device
Mass //Mass of device in kg. Note: Asset browser tool-tips are currently inaccurate kg
Volume //Volume of device in kv kv
Corrosion resistance //Corrosion resistance. Unit-less number

Input / Output
Electric input //Maximum power input + e/s
Electric output //Maximum power output + e/s

Coolant input //Maximum coolant input + c/s
Coolant output //Maximum coolant output + c/s

Coolant recycle rate //Maximum rate of coolant recycling (eg: radiators) + c/s

Heat generation //Maximum heat generation (eg: weapons) + h/s

Propellant input //Maximum propellant input + p/s
Propellant output //Maximum propellant output + p/s

Fuel input //Maximum fuel input (fuel rods) + f/s
Fuel output //Maximum fuel output (fuel rods) + f/s

Thrust power //Maximum thrust output. Unit-less
Sockets //Number of sockets on devices, if any
Chip slots //Number of YOLOL/Memory chip slots, if any

Modular interfaces //Number of modular interfaces (eg: triangle thrusters, YOLOL racks, memory relays), if any
Device interfaces //Number of device-base interfaces, if any
Composition
Aegisium X% or KV
Ajatite X% or KV

Arkanium X% or KV

Bastium X% or KV

Charodium X% or KV
Corazium X% or KV

Exorium X% or KV

Haderite X% or KV
Ice X% or KV
Ilmatrium X% or KV
Karnite X% or KV
Kutonium X% or KV
Lukium X% or KV
Merkerium X% or KV

Nhurgite X% or KV
Oninum X% or KV
Surtrite X% or KV

Tengium X% or KV
Ukonium X% or KV
Valkite X% or KV
Vokarium X% or KV
Xhalium X% or KV




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