Difference between revisions of "User:DustyFB/Sandbox/Templates/Template:SpaceshipInfobox"
Jump to navigation
Jump to search
(Created page with "<noinclude> Gallery mode can be utilized in the image field with: <pre>|image=<gallery mode="slideshow"> Image:Memory_relay.png|"Caption" Image:Logo_of_empire.png|"Caption" <...") |
|||
Line 8: | Line 8: | ||
<includeonly> | <includeonly> | ||
<div class=" | <div class="Spaceship-Infobox"> | ||
<div class="Spaceship-Info-Header"> | |||
<div class="Spaceship-Info-Image-Wrap"> | |||
{{{image}}} | |||
<div class="Spaceship-Info-Faction-Logo">{{{factionLogo}}}</div> | |||
</div> | |||
<span class="Spaceship-Info-Header-Caption">{{{caption}}}</span> | |||
</div> | |||
<div class="Spaceship-Info-Name">{{#if:{{{name|}}}|{{{name}}}|Name not submitted.}}</div> | |||
<div class="Spaceship-Info-Data-Wrap"> | |||
<div class="Spaceship-Info-Data-Section"> | |||
{{#if:{{{manufacturer|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Manufacturer</span> <span class="Device-Info-Data-Cell-Body">{{{manufacturer}}}</span></div>}} | |||
{{#if:{{{operator|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Operator</span> <span class="Device-Info-Data-Cell-Body">{{{operator}}}</span></div>}} | |||
{{#if: {{{class|}}} | {{#if: {{{type|}}}| <div class="Spaceship-Info-Data-Cell"><span class="Spaceship-Info-Data-Cell-Header">Class and Type</span> <span class="Spaceship-Info-Data-Cell-Body"><i>{{{class}}}</i>-class {{{type}}}</span></div> | <div class="Spaceship-Info-Data-Cell"><span class="Spaceship-Info-Data-Cell-Header">Class</span> <span class="Spaceship-Info-Data-Cell-Body"><i>{{{class}}}</i>-class</span></div> }} | {{#if: {{{type|}}} | <div class="Spaceship-Info-Data-Cell"><span class="Spaceship-Info-Data-Cell-Header">Type</span> <span class="Spaceship-Info-Data-Cell-Body">{{{type}}}</span></div>}}}} | |||
{{#if:{{{purpose|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">General Purpose</span> <span class="Device-Info-Data-Cell-Body">{{{purpose}}}</span></div>}} | |||
{{#if:{{{production|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Production State</span> <span class="Device-Info-Data-Cell-Body">{{{production}}}</span></div>}} | |||
</div> | |||
<div class="Spaceship-Info-Data-Section-Header">General Characteristics</div> | |||
<div class="Spaceship-Info-Data-Section"> | |||
{{#if:{{{dimensions|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Dimensions</span> <span class="Device-Info-Data-Cell-Body">{{{dimensions}}}</span></div>}} | |||
{{#if:{{{mass|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Mass</span> <span class="Device-Info-Data-Cell-Body">{{{mass}}}</span></div>}} | |||
{{#if:{{{hull|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Hull</span> <span class="Device-Info-Data-Cell-Body">{{{hull}}}</span></div>}} | |||
{{#if:{{{decks|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Decks</span> <span class="Device-Info-Data-Cell-Body">{{{decks}}}</span></div>}} | |||
{{#if:{{{range|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Range</span> <span class="Device-Info-Data-Cell-Body">{{{range}}}</span></div>}} | |||
{{#if:{{{topSpeed|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Top Speed</span> <span class="Device-Info-Data-Cell-Body">{{{topSpeed}}}</span></div>}} | |||
{{#if:{{{flightTime|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Flight Time</span> <span class="Device-Info-Data-Cell-Body">{{{flightTime}}}</span></div>}} | |||
{{#if:{{{YOLOL|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">YOLOL</span> <span class="Device-Info-Data-Cell-Body">{{{YOLOL}}}</span></div>}} | |||
{{#if:{{{FCUType|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">FCU Type</span> <span class="Device-Info-Data-Cell-Body">{{{FCUType}}}</span></div>}} | |||
{{#if:{{{propulsion|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Propulsion</span> <span class="Device-Info-Data-Cell-Body">{{{propulsion}}}</span></div>}} | |||
{{#if:{{{propellant|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Propellant</span> <span class="Device-Info-Data-Cell-Body">{{{propellant}}}</span></div>}} | |||
{{#if:{{{power|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Power</span> <span class="Device-Info-Data-Cell-Body">{{{power}}}</span></div>}} | |||
{{#if:{{{crew|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Crew</span> <span class="Device-Info-Data-Cell-Body">{{{crew}}}</span></div>}} | |||
{{#if:{{{nebulaeSafe|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Nebulae Safe?</span> <span class="Device-Info-Data-Cell-Body">{{{nebulaeSafe}}}</span></div>}} | |||
{{#if:{{{unitCost|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Unit Cost</span> <span class="Device-Info-Data-Cell-Body">{{{unitCost}}}</span></div>}} | |||
</div> | |||
<div class="Spaceship-Info-Data-Section-Header">Equipment</div> | |||
<div class="Spaceship-Info-Data-Section"> | |||
{{#if:{{{armaments|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Armaments</span> <span class="Device-Info-Data-Cell-Body">{{{armaments}}}</span></div>}} | |||
{{#if:{{{mining|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Mining</span> <span class="Device-Info-Data-Cell-Body">{{{mining}}}</span></div>}} | |||
{{#if:{{{cargo|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Cargo</span> <span class="Device-Info-Data-Cell-Body">{{{cargo}}}</span></div>}} | |||
{{#if:{{{manufacturing|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Manufacturing</span> <span class="Device-Info-Data-Cell-Body">{{{manufacturing}}}</span></div>}} | |||
{{#if:{{{reconstructionMachine|}}}| <div class="Device-Info-Data-Cell"><span class="Device-Info-Data-Cell-Header">Reconstruction Machines</span> <span class="Device-Info-Data-Cell-Body">{{{reconstructionMachine}}}</span></div>}} | |||
</div> | |||
</div> | |||
</div> | </div> | ||
{{#css: | {{#css: | ||
.Spaceship-Infobox { | |||
. | |||
border:2px solid #304344; | border:2px solid #304344; | ||
width:25vw; | width:25vw; | ||
Line 40: | Line 66: | ||
background:rgba(49, 68, 77, 0.15); | background:rgba(49, 68, 77, 0.15); | ||
} | } | ||
. | .Spaceship-Info-Header { | ||
text-align: center; | text-align: center; | ||
margin: | margin-bottom: 0.25em; | ||
} | } | ||
. | .Spaceship-Info-Header img { | ||
max-width:100%; | max-width:100%; | ||
max-height:250px; | max-height:250px; | ||
height: auto; | height: auto; | ||
width: auto; | width: auto; | ||
background: linear-gradient(transparent, #3a806e1f); | |||
display: block; | |||
outline: 2px solid #305e60; | |||
} | } | ||
. | .Spaceship-Info-Header-Caption { | ||
display: block; | display: block; | ||
font-style: italic; | font-style: italic; | ||
margin-top: 0.25em; | margin-top: 0.25em; | ||
} | } | ||
. | .Spaceship-Info-Name { | ||
font-family: | font-family: KenneyFuture; | ||
font-size: | font-size:2em; | ||
color:#edcd50; | color:#edcd50; | ||
text-align: center; | text-align: center; | ||
background: #38586082; | background: #38586082; | ||
} | } | ||
. | .Spaceship-Info-Data-Section-Header { | ||
width: 100%; | width: 100%; | ||
text-align: center; | text-align: center; | ||
Line 71: | Line 100: | ||
margin-top: 1em; | margin-top: 1em; | ||
} | } | ||
.Spaceship-Info-Data-Section { | |||
border-bottom: 1px solid #394442; | |||
. | text-align: center; | ||
} | |||
.Spaceship-Info-Data-Cell { | |||
font-size:1.25em; | |||
} | |||
.Spaceship-Info-Data-Cell-Header { | |||
font-weight:bold; | |||
} | |||
.Spaceship-Info-Data-Cell { | |||
display:flex; | display:flex; | ||
text-align:left; | text-align:left; | ||
padding:0 0.4em; | padding:0 0.4em; | ||
} | } | ||
. | .Spaceship-Info-Data-Cell-Header { | ||
flex:48%; | flex:48%; | ||
min-width:min-content; | min-width:min-content; | ||
margin-right:4%; | margin-right:4%; | ||
} | } | ||
. | .Spaceship-Info-Faction-Logo { | ||
background: url('https://wiki.starbasegame.com/images/2/26/Logo_of_empire.png') center no-repeat; | |||
background-size: contain; | |||
width: 80px; | |||
height: 80px; | |||
position: absolute; | |||
bottom: 0; | |||
right: 0; | |||
opacity: 0.8; | |||
} | |||
.Spaceship-Info-Image-Wrap { | |||
position: relative; | |||
} | |||
.Spaceship-Info-Data-Cell-Body { | |||
flex:50%; | flex:50%; | ||
white-space:pre; | white-space:pre; | ||
margin: auto; | margin: auto; | ||
} | } | ||
/* Gallery specific support */ | /* Gallery specific support */ |
Revision as of 07:07, 14 May 2021
Gallery mode can be utilized in the image field with:
|image=<gallery mode="slideshow"> Image:Memory_relay.png|"Caption" Image:Logo_of_empire.png|"Caption" </gallery>