Template:Infobox fluid: Difference between revisions
m visual entry |
m convert to portable infobox |
||
| Line 1: | Line 1: | ||
< | <onlyinclude><infobox> | ||
<title source="title"> | |||
{{ | <default>{{BASEPAGENAME}}</default> | ||
</title> | |||
<image source="image" /> | |||
<navigation>{{#if: {{{extratext|}}} | {{{extratext}}} }}</navigation> | |||
<data source="renewable"><label>[[Renewable resource|Renewable]]</label></data> | |||
<data source="transparent"><label>[[Opacity|Transparency]]</label></data> | |||
<data source="light"><label>[[Light|Luminance]]</label></data> | |||
<data source="tntres"> | |||
<label>[[Explosion#Blast resistance|Blast resistance]]</label> | |||
<default>{{Blast resistance values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}</default> | |||
</data> | |||
<data source="tool"> | |||
<label>Appropriate tool</label> | |||
}}{{ | <format>{{ | ||
#switch: {{lc: {{{tool}}} }} | |||
| bucket = {{SlotSprite|Bucket Required|link=Bucket|This block can only be picked up using a bucket}} | |||
| n/a | |||
| none = None | |||
}} | | all | ||
| any = Any tool | |||
| #default = ? | |||
}}{{ | |||
#if: {{{tool2|}}} | |||
{{#if: {{NAMESPACE}} || | | {{ | ||
#switch: {{lc: {{{tool2}}} }} | |||
| bucket = {{SlotSprite|Bucket Required|link=Bucket}} | |||
}} | |||
}}</format> | |||
</data> | |||
<data source="infinite"><label>Creates sources?</label></data> | |||
<data source="flowdistance"><label>Flow distance</label></data> | |||
<data source="flowrate"><label>Flow speed</label></data> | |||
<data source="tags"> | |||
<label>[[Tag]]s</label> | |||
<format>{{flatlist|{{#replace:{{{tags}}}|#|#}} }}</format> | |||
</data> | |||
<navigation>{{#if: {{{notes|}}} | {{{notes}}} }}</navigation> | |||
</infobox>{{ | |||
#if: {{NAMESPACE}} || | |||
{{translation category|project=0|{{ | {{translation category|project=0|{{ | ||
#switch: {{lc: {{{renewable|}}} }} | #switch: {{lc: {{{renewable|}}} }} | ||
| Line 31: | Line 46: | ||
| Resources with invalid renewability | | Resources with invalid renewability | ||
}}}} | }}}} | ||
}}</onlyinclude><noinclude>{{Documentation}}</noinclude> | |||
{{ | |||
</noinclude> | |||
Revision as of 18:13, 18 February 2023
<infobox> <title source="title"> <default>Infobox fluid</default> </title> <image source="image" /> <navigation></navigation> <label>Renewable</label> <label>Transparency</label> <label>Luminance</label> <label>Blast resistance</label> <default>?</default> <label>Appropriate tool</label> <format>?</format> <label>Creates sources?</label> <label>Flow distance</label> <label>Flow speed</label> <label>Tags</label> <format>Template:Flatlist</format> <navigation></navigation>
</infobox>
Usage
This template is used on pages which contain information about a fluid, such as water or lava.
{{Fluid
| renewable=
| transparent=
| light=
| tool=
| infinite=
| flowdistance=
| flowrate=
}}
| Parameter | Function | Default value |
|---|---|---|
renewable |
Whether the fluid is renewable or not | ? |
transparent |
Whether the fluid is transparent or not | ? |
light |
Whether the fluid gives off light or not | ? |
tool |
The tool that can be used to obtain the fluid | ? |
infinite |
Whether the fluid can be used to create an infinite source | N/A |
flowdistance |
How long the fluid travels on a flat surface | Unspecified |
flowrate |
How many ticks it takes for the fluid to reach the next block | Unspecified |
Blast resistance values are automatically obtained from Module:Blast resistance values when applicable.
See also
- Minecraft
{{Infobox biome}}{{Infobox block}}{{Infobox command}}{{Infobox development phase}}{{Infobox enchantment}}{{Infobox effect}}{{Infobox entity}}{{Infobox fluid}}{{Infobox item}}{{Infobox item entity}}{{Infobox structure}}
- Minecraft Earth
- Minecraft Dungeons
{{Infobox Dungeons cosmetic}}{{Infobox Dungeons enchantment}}{{Infobox Dungeons entity}}{{Infobox Dungeons item}}{{Infobox Dungeons mission}}
- Minecraft Legends
{{Infobox Legends biome}}{{Infobox Legends entity}}{{Infobox Legends resource}}{{Infobox Legends mode}}{{Infobox Legends skin}}{{Infobox Legends structure}}
- Minecraft Story Mode
{{Infobox episode}}
- Other
{{Infobox album}}{{Infobox book}}{{Infobox board game}}{{Infobox company}}{{Fallback infobox}}{{Infobox guide}}{{Infobox mash-up}}{{Infobox music}}{{Infobox person}}{{Infobox profile}}{{Infobox program}}{{Infobox screen effect}}{{Infobox server}}{{Infobox skin pack}}{{Infobox theme}}{{Infobox version}}{{Infobox video}}{{Infobox website}}{{Infobox world}}
- Meta
{{Infobox}}{{Infobox row}}{{Infobox header}}- Module:Infobox
es:Plantilla:Fluido pt:Predefinição:Fluido