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