Template:Engine infobox: Difference between revisions
From Stars!wiki
Jump to navigationJump to search
basic infobox (more features to come) |
m oops! |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| style="float:right" | {| style="float:right; width:250px; border:1px solid #AAA; margin:0.5em" | ||
!colspan="2"| [[Engine]] | !colspan="2" style="background-color:#333"| [[Engine]] | ||
|- | |- | ||
|colspan="2" style="text-align:center"| <span style="font-size:140%">[[{{{name}}}]]</span><br/> | |||
{{#ifexist:Image:{{{name}}}.jpg | {{#ifexist:Image:{{{image_name|{{{name}}}.jpg}}}| | ||
[[Image:{{{image_name|{{{name}}}.jpg}}}]]<br/> | |||
}} | }} | ||
<span style="font-size:120%">Nominal [[Warp]]: {{{warp}}}</span><br/> | |||
Warp 10: {{#ifeq:{{{warp10safe}}}|yes|<span style="color:green">safe</span>|<span style="color:yellow">unsafe</span>}} | |||
|- | |- | ||
!colspan="2"| Tech req. | !colspan="2" style="background-color:#333"| Tech req. | ||
|- | |- | ||
{{#ifexpr:{{{prop|0}}}>0| | {{#ifexpr:{{{prop|0}}}>0| | ||
{{!}} [[ | {{!}} [[Propulsion]] {{!!}} {{{prop}}} | ||
{{#ifexpr:{{{ener|0}}}>0| | {{#ifexpr:{{{ener|0}}}>0| | ||
{{!-}} | {{!-}} | ||
{{!}} [[ | {{!}} [[Energy]] {{!!}} {{{ener}}} | ||
}} | }} | ||
| | | | ||
{{!}}colspan="2" style="text-align:center"{{!}} ''none'' | {{!}}colspan="2" style="text-align:center"{{!}} ''none'' | ||
}} | }} | ||
|- | |||
!colspan="2" style="background-color:#333"| Cost | |||
|- | |||
| [[Ironium]] || <span style="color:blue">{{{iron}}}kT</span> | |||
|- | |||
{{#ifexpr:{{{bora|0}}}>0| | |||
{{!}} [[Boranium]] {{!!}} <span style="color:green">{{{bora}}}kT</span> | |||
{{!-}} | |||
}}{{#ifexpr:{{{germ|0}}}>0| | |||
{{!}} [[Germanium]] {{!!}} <span style="color:yellow">{{{germ}}}kT</span> | |||
{{!-}} | |||
}} | |||
| [[Resources]] || {{{res}}} | |||
|- | |||
!colspan="2" style="background-color:#333"| Fuel usage | |||
|- | |||
|colspan="2"| | |||
<div style="width:80%; margin:auto"> | |||
{| style="width:100%" | |||
|- style="font-size:50%; text-align:center" | |||
|{{{warp1|0}}}||{{{warp2|15}}}||{{{warp3|50}}}||{{{warp4|60}}}||{{{warp5|70}}}||{{{warp6|100}}}||{{{warp7|100}}}||{{{warp8|115}}}||{{{warp9|700}}}||{{{warp10|840}}} | |||
|- valign="bottom" style="height:{{#expr:10*ln(1+1080)}}px" | |||
|style="width:10%"| {{engine infobox/warp bar|safe|10|{{#expr:10*ln(1+{{{warp1|0}}})}}}} | |||
|style="width:10%"| {{engine infobox/warp bar|safe|10|{{#expr:10*ln(1+{{{warp2|15}}})}}}} | |||
|style="width:10%"| {{engine infobox/warp bar|safe|10|{{#expr:10*ln(1+{{{warp3|50}}})}}}} | |||
|style="width:10%"| {{engine infobox/warp bar|safe|10|{{#expr:10*ln(1+{{{warp4|60}}})}}}} | |||
|style="width:10%"| {{engine infobox/warp bar|safe|10|{{#expr:10*ln(1+{{{warp5|70}}})}}}} | |||
|style="width:10%"| {{engine infobox/warp bar|safe|10|{{#expr:10*ln(1+{{{warp6|100}}})}}}} | |||
|style="width:10%"| {{engine infobox/warp bar|safe|10|{{#expr:10*ln(1+{{{warp7|100}}})}}}} | |||
|style="width:10%"| {{engine infobox/warp bar|safe|10|{{#expr:10*ln(1+{{{warp8|115}}})}}}} | |||
|style="width:10%"| {{engine infobox/warp bar|safe|10|{{#expr:10*ln(1+{{{warp9|700}}})}}}} | |||
|style="width:10%"| {{engine infobox/warp bar|{{#ifeq:{{{warp10safe}}}|yes|safe|unsafe}}|10|{{#expr:10*ln(1+{{{warp10|840}}})}}}} | |||
|- style="text-align:center" | |||
|1||2||3||4||5||6||7||8||9||10 | |||
|} | |||
</div> | |||
|} | |} |