Difference between revisions of "Template:FluidGauge"
Jump to navigation
Jump to search
m (More tinkering) |
m |
||
Line 2: | Line 2: | ||
<div class="fluid-meter tooltip" data-amount="{{{Amount|50}}}" | <div class="fluid-meter tooltip" data-amount="{{{Amount|50}}}" | ||
data-image="{{filepath:{{#if: {{{Fluid-image|}}}|{{{Fluid-image}}}|Grid_{{{Fluid|Coolant}}}.png}}}}" | data-image="{{filepath:{{#if: {{{Fluid-image|}}}|{{{Fluid-image}}}|Grid_{{{Fluid|Coolant}}}.png}}}}" | ||
data-tooltip="{{formatnum:{{#expr: {{{Amount| | data-tooltip="{{formatnum:{{#expr: {{{Amount|50}}} * 1000}}}}mB of {{{Fluid|Coolant}}}" | ||
style="{{#ifexpr:{{{height|94}}}=94|height:94px; | style="{{#ifexpr:{{{height|94}}}=94|height:94px;|height:120px;}} | ||
|height:120px;}} | |||
{{#if:{{{bottom|}}}|bottom:{{{bottom}}}px;}} | {{#if:{{{bottom|}}}|bottom:{{{bottom}}}px;}} | ||
{{#if:{{{top|}}}|top:{{{top}}}px;}} | {{#if:{{{top|}}}|top:{{{top}}}px;}} |
Revision as of 17:15, 1 September 2014
![]() |
This template uses Module:Grid, a script written in Lua. Please see wikipedia:wp:Lua and mw:Extension:Scribunto to learn more. |
Fluid Gauge is used for making tanks. The fields available are:
- left - (Required) To position the tank relative to the left side of the template
- top - (Required) To position the tank relative to the top of the template
- width - (Default - 24) Sets the width of the tank
- height - (Default - 94) Sets the height of the tank
- tank - (Default - None) Sets the fluid inside the tank
- fill - (Default - 0) Sets how full the tanks is
- max - (Default - 10000) Sets, in milli-buckets, how full a tank can get
- link - (Optional) Provides the option to set a link if you click on the tank
If you have any problems, talk to Chocohead Nag• Additions :)
The above documentation is transcluded from Template:FluidGauge/doc. (edit | history)