Template:Infobox fluid: Difference between revisions

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

Latest revision as of 07:39, 4 July 2024

Infobox fluid
Renewable

?

Transparent

?

Luminance

?

Blast resistance

?

Tool

?

Creates sources?

N/A

Flow distance

Unspecified

Flow speed

Unspecified

[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.