Difference between revisions of "Template:Infobox/Resource"
From Kerbal Space Program Wiki
m (added italian translation) |
m (Add none) |
||
Line 13: | Line 13: | ||
|e={{lang|en=Everywhere|de=Überall|pl=Wszędzie|hu=Bárhová|ru=Везде|ja=機体全体|it=Ovunque}} | |e={{lang|en=Everywhere|de=Überall|pl=Wszędzie|hu=Bárhová|ru=Везде|ja=機体全体|it=Ovunque}} | ||
|i={{lang|en=Internal|de=Intern|pl=Wewnętrzny|hu=Belül|ru=Внутренний|ja=自己消費|it=Interno}} | |i={{lang|en=Internal|de=Intern|pl=Wewnętrzny|hu=Belül|ru=Внутренний|ja=自己消費|it=Interno}} | ||
+ | |n={{lang|en=None}} | ||
|#default=<span class="error" style="white-space:normal;">{{lang|en=Invalid flow mode|de=Ungültiger Flussmodus|pl=Nieprawidłowy tryb przepływu|hu=Érvénytelen|ru=Неизвестный способ истечения}}</span>}}}} | |#default=<span class="error" style="white-space:normal;">{{lang|en=Invalid flow mode|de=Ungültiger Flussmodus|pl=Nieprawidłowy tryb przepływu|hu=Érvénytelen|ru=Неизвестный способ истечения}}</span>}}}} | ||
{{Infobox/Line|{{Dict|Cost}}|{{#ifexpr: {{{cost<noinclude>|0.8</noinclude>}}}|{{{cost<noinclude>|0.8</noinclude>}}} {{mark|fund}}/{{Unit|{{{unit|l}}}}}|{{lang|en=None|de=Keine|pl=Brak|hu=Nincs|ru=Нет|it=Nessuno}}}}|{{#ifexpr: {{{cost<noinclude>|0.8</noinclude>}}}*{{{density<noinclude>|5</noinclude>}}}|{{#expr: {{{cost<noinclude>|0.8</noinclude>}}}/{{{density<noinclude>|5</noinclude>}}} round 2}} {{mark|fund}}/{{dict|k}}{{dict|g}}}}}} | {{Infobox/Line|{{Dict|Cost}}|{{#ifexpr: {{{cost<noinclude>|0.8</noinclude>}}}|{{{cost<noinclude>|0.8</noinclude>}}} {{mark|fund}}/{{Unit|{{{unit|l}}}}}|{{lang|en=None|de=Keine|pl=Brak|hu=Nincs|ru=Нет|it=Nessuno}}}}|{{#ifexpr: {{{cost<noinclude>|0.8</noinclude>}}}*{{{density<noinclude>|5</noinclude>}}}|{{#expr: {{{cost<noinclude>|0.8</noinclude>}}}/{{{density<noinclude>|5</noinclude>}}} round 2}} {{mark|fund}}/{{dict|k}}{{dict|g}}}}}} | ||
Line 39: | Line 40: | ||
| a | | a | ||
| Adjacent | | Adjacent | ||
− | | Resources will only flow between adjacent sources and sinks, meaning that tanks can be drained unevenly. | + | | Resources will only flow between adjacent sources and sinks, meaning that tanks can be drained unevenly. |
|- | |- | ||
| e | | e | ||
Line 47: | Line 48: | ||
| i | | i | ||
| Internal | | Internal | ||
− | | The resource can only be used by the part containing it. | + | | The resource can only be used by the part containing it. |
+ | |- | ||
+ | | n | ||
+ | | None | ||
+ | | The resource won't be pumped automatically but can be manually transferred. | ||
|} | |} | ||
[[Category:Infobox templates]]</noinclude> | [[Category:Infobox templates]]</noinclude> |
Revision as of 20:42, 16 April 2018
Infobox | ||
Density | 5 kg/l | |
Transferable | Yes | |
Flow mode | Invalid flow mode | |
Cost | 0.8 /l | |
0.16 /kg | ||
Since version | Unknown |
Parameters
Name | Optional | Description | Default |
---|---|---|---|
name | Yes | Name of the resource. | {{BASEPAGENAME}} |
file | Yes | Image of the resource. | Not shown (none) |
file desc | Yes | Description of the image. | Not shown (Hidden) |
density | No | Density of the resource in kg/{{{unit}}}. Allows 0 for None and without unit. | |
transfer | Yes | No and shows style="background: #9f9; vertical-align: middle; text-align: center;" class="table-yes" | Yes for every other value. | Yes |
flow | No | The flow mode of the resource. | |
cost | No | Cost per unit of the resource. Allows 0 for None and without unit. Also calculates costs per mass if density and cost are both not zero. | |
since | Yes | The introduction of this resource. If not set shows the value unknown. | Not set (Unknown) |
unit | Yes | The unit of volume for the density. | l |
Flow modes
Code | Type | Description |
---|---|---|
a | Adjacent | Resources will only flow between adjacent sources and sinks, meaning that tanks can be drained unevenly. |
e | Everywhere | The resource is always available to all parts structurally connected to the vessel, and the same amount of resources is drained from every container. |
i | Internal | The resource can only be used by the part containing it. |
n | None | The resource won't be pumped automatically but can be manually transferred. |