Template:Infobox fluid: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
m visual entry
m convert to portable infobox
Line 1: Line 1:
<includeonly>{{#invoke:infobox|infobox
<onlyinclude><infobox>
| rows =
<title source="title">
{{infobox row|label=[[Renewable resource|Renewable]]|field={{ #if: {{{renewable|}}} | {{{renewable}}} | ? }} }}
<default>{{BASEPAGENAME}}</default>
{{infobox row|label=[[Opacity|Transparent]]|field={{ #if: {{{transparent|}}} | {{{transparent}}} | ? }} }}
</title>
{{infobox row|label=[[Light|Luminance]]|field={{ #if: {{{light|}}} | {{{light}}} | ? }} }}
<image source="image" />
{{infobox row|label=[[Explosion#Blast resistance|Blast resistance]]|field={{ #if: {{{tntres|}}}
<navigation>{{#if: {{{extratext|}}} | {{{extratext}}} }}</navigation>
| {{{tntres}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden tntres}} }}
<data source="renewable"><label>[[Renewable resource|Renewable]]</label></data>
| {{Blast resistance values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
<data source="transparent"><label>[[Opacity|Transparency]]</label></data>
}} }}
<data source="light"><label>[[Light|Luminance]]</label></data>
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{
<data source="tntres">
  #switch: {{ lc: {{{tool|}}} }}
<label>[[Explosion#Blast resistance|Blast resistance]]</label>
  | bucket           = {{SlotSprite|Bucket Required|link=Bucket|This block can only be picked up using a bucket}}
<default>{{Blast resistance values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}</default>
  | n/a   | none     = None
</data>
  | all   | alltools | any | anytool = Any tool
<data source="tool">
  | #default         = ?
<label>Appropriate tool</label>
}}{{
<format>{{
  #if: {{{tool2|}}} | {{
#switch: {{lc: {{{tool}}} }}
    #switch: {{ lc: {{{tool2}}} }}
| bucket = {{SlotSprite|Bucket Required|link=Bucket|This block can only be picked up using a bucket}}
    | bucket         = {{SlotSprite|Bucket Required|link=Bucket}}
| n/a
  }}
| none = None
}} }}
| all
{{infobox row|label=Creates sources?|field={{ #if: {{{infinite|}}} | {{{infinite}}} | N/A }} }}
| any = Any tool
{{infobox row|label=Flow distance|field={{ #if: {{{flowdistance|}}} | {{{flowdistance}}} | Unspecified }} }}
| #default = ?
{{infobox row|label=Flow speed|field={{ #if: {{{flowrate|}}} | {{{flowrate}}} | Unspecified }} }}
}}{{
{{#if: {{{tags|}}} | {{infobox row | label= [[Tag]]s | field= {{flatlist|{{#replace:{{{tags}}}|#|&#x23;}} }} }} }}
#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}}}|#|&#x23;}} }}</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>
| footer =
{{{notes|}}}}}</includeonly><noinclude>
{{documentation}}
<!-- Put categories/interwiki on the documentation page -->
</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>

[view] [edit] [history] [refresh]Documentation

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
Minecraft Earth
Minecraft Dungeons
Minecraft Legends
Minecraft Story Mode
Other
Meta

es:Plantilla:Fluido pt:Predefinição:Fluido

[view] [edit] [history] [refresh]The above documentation is transcluded from Template:Infobox fluid/doc.