Template:Infobox fluid: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
mNo edit summary
m rebase dev changes onto prod
Line 1: Line 1:
<onlyinclude><infobox>
<includeonly>{{#invoke:infobox|infobox
<title source="title"><default>{{BASEPAGENAME}}</default></title>
| rows =
<image source="image" />
{{infobox row|label=[[Renewable resource|Renewable]]|field={{ #if: {{{renewable|}}} | {{{renewable}}} | ? }} }}
<navigation>{{{extratext|}}}</navigation>
{{infobox row|label=[[Opacity|Transparent]]|field={{ #if: {{{transparent|}}} | {{{transparent}}} | ? }} }}
<data source="renewable"><label>[[Renewable resource|Renewable]]</label></data>
{{infobox row|label=[[Light|Luminance]]|field={{ #if: {{{light|}}} | {{{light}}} | ? }} }}
<data source="transparent"><label>[[Opacity|Transparency]]</label></data>
{{infobox row|label=[[Explosion#Blast resistance|Blast resistance]]|field={{ #if: {{{tntres|}}}
<data source="light"><label>[[Light|Luminance]]</label></data>
| {{{tntres}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden tntres}} }}
<data source="tntres">
| {{Blast resistance values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
<label>[[Explosion#Blast resistance|Blast resistance]]</label>
}} }}
<default>{{Blast resistance values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}</default>
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{
</data>
  #switch: {{ lc: {{{tool|}}} }}
<data source="tool">
  | bucket           = {{SlotSprite|Bucket Required|link=Bucket|This block can only be picked up using a bucket}}
<label>Appropriate tool</label>
  | n/a   | none     = None
<format>{{
  | all   | alltools | any | anytool = Any tool
#switch: {{lc: {{{tool}}} }}
  | #default         = ?
| bucket = {{SlotSprite|Bucket Required|link=Bucket|This block can only be picked up using a bucket}}
}}{{
| n/a
  #if: {{{tool2|}}} | {{
| none = None
    #switch: {{ lc: {{{tool2}}} }}
| all
    | bucket         = {{SlotSprite|Bucket Required|link=Bucket}}
| any = Any tool
  }}
| #default = ?
}} }}
}}{{
{{infobox row|label=Creates sources?|field={{ #if: {{{infinite|}}} | {{{infinite}}} | N/A }} }}
#if: {{{tool2|}}}
{{infobox row|label=Flow distance|field={{ #if: {{{flowdistance|}}} | {{{flowdistance}}} | Unspecified }} }}
| {{
{{infobox row|label=Flow speed|field={{ #if: {{{flowrate|}}} | {{{flowrate}}} | Unspecified }} }}
#switch: {{lc: {{{tool2}}} }}
{{#if: {{{tags|}}} | {{infobox row | label= [[Tag]]s | field= {{flatlist|{{#replace:{{{tags}}}|#|&#x23;}} }} }} }}
| bucket = {{SlotSprite|Bucket Required|link=Bucket}}
{{#if: {{NAMESPACE}} ||
}}
}}</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 44: Line 31:
   | 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 16:27, 24 September 2023

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