Difference between revisions of "Template:FluidGauge"
Jump to navigation
Jump to search
m (Oops) |
m (This could work. Or it couldn't.) |
||
Line 3: | Line 3: | ||
<!-- Fluid Image --> | <!-- Fluid Image --> | ||
data-image="[[File:Grid_{{{Fluid|}}}.png]]" --> | |||
data-image="{{filepath:Grid_{{{Fluid|}}}.png}}" --> | |||
data-image="{{filepath:{{#if: {{{Fluid-image|}}}|{{{Fluid-image}}}|Grid_{{{Fluid}}}.png}}}}" | data-image="{{filepath:{{#if: {{{Fluid-image|}}}|{{{Fluid-image}}}|Grid_{{{Fluid}}}.png}}}}" | ||
<!-- Make tooltip for fluid --> | <!-- Make tooltip for fluid --> | ||
data-tooltip="{{formatnum:{{#expr: {{{Amount|0}}} * 1000}}}}mB of {{{Fluid}}}" style="height{{{height|94}}}px; | data-tooltip="{{formatnum:{{#expr: {{{Amount|0}}} * 1000}}}}mB of {{{Fluid}}}" style="height{{{height|94}}}px;> | ||
<!-- Determine where about in the template the tank will sit | <div class="tankLiquidImage" style="position:absolute"><span class="tankUsage" style="display:none">{{{Amount|5000}}}</span>[[File:{{#if:{{{img|}}}|{{{img}}}|Grid {{uc:{{#sub:{{{Fluid|water}}}|0|1}}}}{{#sub:{{{Fluid|water}}}|1}} }}.png]]</div> | ||
{{#if:{{{bottom|}}}|bottom:{{{bottom}}}px;}}{{#if:{{{top|}}}|top:{{{top}}}px;}}{{#if:{{{left|}}}|left:{{{left}}}px;}}{{#if:{{{right|}}}|right:{{{right}}}px;}}"> | |||
<!-- Determine where about in the template the tank will sit | |||
{{#if:{{{bottom|}}}|bottom:{{{bottom}}}px;}}{{#if:{{{top|}}}|top:{{{top}}}px;}}{{#if:{{{left|}}}|left:{{{left}}}px;}}{{#if:{{{right|}}}|right:{{{right}}}px;}}"> --> | |||
<!-- Give tank it's tank like appearance :) --> | <!-- Give tank it's tank like appearance :) --> |
Revision as of 14:41, 1 September 2014