Difference between revisions of "Template:SB Infobox Begin"
m |
m (Adjusted margin of main wrapper) |
||
Line 88: | Line 88: | ||
float:right; | float:right; | ||
clear:right; | clear:right; | ||
margin: | margin: 0 0.8em 0.8em 0.8em; | ||
padding: 10px 10px; | padding: 10px 10px; | ||
background:rgba(49, 68, 77, 0.15); | background:rgba(49, 68, 77, 0.15); |
Revision as of 09:42, 24 May 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:
{{SB Infobox Begin |{{SB Infobox Header |image=[[Image:Starbase cargo beam .png]] |factionLogo= |caption= |name= |border=none }} |{{SB Infobox Device General Information |type= |function= |availability= |size= × × cm |mass= |volume= |corrosionResistance= |suppressUnitsKg |suppressUnitsKv }} |{{SB Infobox Device IO |electricIn= |electricOut= |coolantIn= |coolantOut= |propellantIn= |propellantOut= |fuelIn= |fuelOut= |sockets= |YOLOLchips= |modInterfaces= |deviceInterfaces= }} |{{SB Infobox Device Construction |overrideHeader= |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 }} }}