Template:Infobox block: Difference between revisions

only ever seen this on item and itementity, but chances are i'll just copy and paste this over to all the infobox templates anyway
No edit summary
 
(93 intermediate revisions by 30 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:infobox|infobox
{{#invoke:infobox|infobox
| invimage = title
| rows =
| rows =
{{#if: {{{gravity|}}} | {{infobox row|label=THIS INFOBOX IS LIKELY OUTDATED[[Category:Infobox uses deprecated parameters]]|field={{{gravity}}} }} }}
{{#if: {{{rarity|}}} | {{infobox row|class=list-style-none|label=[[minecraft:Rarity|Rarity color]]|field={{ucfirst:{{{rarity|}}}}} }} | }}
{{#if: {{{dirt|}}} | {{infobox row|label=THIS INFOBOX IS LIKELY OUTDATED[[Category:Infobox uses deprecated parameters]]|field={{{dirt}}} }} }}
{{#if: {{{renewable|}}} | {{infobox row|label=[[minecraft:Renewable resource|Renewable]]|field={{{renewable}}} }} }}
{{#if: {{{sunlight|}}} | {{infobox row|label=THIS INFOBOX IS LIKELY OUTDATED[[Category:Infobox uses deprecated parameters]]|field={{{sunlight}}} }} }}
{{#if: {{{stackable|}}} | {{infobox row|label=Stackable|field={{{stackable}}} {{#if: {{{maxStack|}}} | &nbsp;({{{maxStack}}}) }} }} |<!-- {{{stackable}}} not provided => --->{{#if: {{NAMESPACE}} || {{translation category|project=0|Missing stackability}}}} }}
{{#if: {{{firstver|}}} | {{infobox row|label=THIS INFOBOX IS LIKELY OUTDATED[[Category:Infobox uses deprecated parameters]]|field={{{firstver}}} }} }}
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{{tool|}}}{{
{{#if: {{{firstdev|}}} | {{infobox row|label=THIS INFOBOX IS LIKELY OUTDATED[[Category:Infobox uses deprecated parameters]]|field={{{firstdev}}} }} }}
  #if: {{{tool2|}}} | {{{tool2|}}}
{{#if: {{{multiplevers|}}} | {{infobox row|label=THIS INFOBOX IS LIKELY OUTDATED[[Category:Infobox uses deprecated parameters]]|field={{{multiplevers}}} }} }}
}}{{
{{#if: {{{sounds|}}} | {{infobox row|label=THIS INFOBOX IS LIKELY OUTDATED[[Category:Infobox uses deprecated parameters]]|field={{{sounds}}} }} }}
  #if: {{{tool3|}}} | {{{tool3|}}}
{{#if: {{{drops|}}} | {{infobox row|label=THIS INFOBOX IS LIKELY OUTDATED[[Category:Infobox uses deprecated parameters]]|field={{{drops}}} }} }}
}} }}
{{#if: {{{experience|}}} | {{infobox row|label=THIS INFOBOX IS LIKELY OUTDATED[[Category:Infobox uses deprecated parameters]]|field={{{experience}}} }} }}
{{infobox row|label=[[minecraft:Explosion#Blast resistance|Blast resistance]]|field={{ #if: {{{tntres|}}}
{{#if: {{{availability|}}} | {{infobox row|label=THIS INFOBOX IS LIKELY OUTDATED[[Category:Infobox uses deprecated parameters]]|field={{{availability}}} }} }}
{{#if: {{{otherosonly|}}} | {{infobox row|label=THIS INFOBOX IS LIKELY OUTDATED[[Category:Infobox uses deprecated parameters]]|field={{{otherosonly}}} }} }}
{{#if: {{{fluidspeed|}}} | {{infobox row|label=THIS INFOBOX IS LIKELY OUTDATED[[Category:Infobox uses deprecated parameters]]|field={{{fluidspeed}}} }} }}
{{#if: {{{movespeed|}}} | {{infobox row|label=THIS INFOBOX IS LIKELY OUTDATED[[Category:Infobox uses deprecated parameters]]|field={{{movespeed}}} }} }}
{{#if: {{{type|}}} | {{infobox row|label=THIS INFOBOX IS LIKELY OUTDATED[[Category:Infobox uses deprecated parameters]]|field={{{type}}} }} }}
{{#if: {{{rarity|}}} | {{infobox row|class=list-style-none|label=[[Rarity]]|field={{ucfirst:{{{rarity|}}}}} }} | }}
{{infobox row|label=[[Opacity|Transparent]]|field={{ #if: {{{transparent|}}} | {{{transparent}}} | ? [[Category:Missing transparency]] }} }}
{{infobox row|label=[[Light|Luminance]]|field={{ #if: {{{light|}}} | {{{light}}} | ? [[Category:Missing luminance]] }} }}
{{infobox row|label=[[Explosion#Blast resistance|Blast resistance]]|field={{ #if: {{{tntres|}}}
| {{{tntres}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden tntres}} }}
| {{{tntres}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden tntres}} }}
| {{Blast resistance values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
| {{Blast resistance values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
}} }}
}} }}
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{#vardefineecho: correct-tool | {{
{{infobox row|label=[[minecraft:Breaking#Blocks by hardness|Hardness]]|field={{ #if: {{{hardness|}}}
  #switch: {{ lc: {{{tool|}}} }}
| {{{hardness}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden hardness}} }}
  | pick  | pickaxe  = {{SlotSprite|Pickaxe Required|link=Pickaxe|This block can be broken with any tool, but a pickaxe is the quickest}}
| {{Hardness values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
  | wooden pickaxe    = {{InvSprite|Wooden Pickaxe|link=Pickaxe|title=A wooden pickaxe or better is required to mine this block}}
  | stone pickaxe    = {{InvSprite|Stone Pickaxe|link=Pickaxe|title=A stone pickaxe or better is required to mine this block}}
  | iron pickaxe      = {{InvSprite|Iron Pickaxe|link=Pickaxe|title=An iron pickaxe or better is required to mine this block}}
  | diamond pickaxe  = {{InvSprite|Diamond Pickaxe|link=Pickaxe|title=A diamond pickaxe or better is required to mine this block}}
  | gold pickaxe      = {{InvSprite|Gold Pickaxe|link=Pickaxe|title=A gold pickaxe or better is required to mine this block}}
  | netherite pickaxe  = {{InvSprite|Netherite Pickaxe|link=Pickaxe|title=A netherite pickaxe or better is required to mine this block}}
  | spade  | shovel  = {{SlotSprite|Shovel Required|link=Shovel|This block can be broken with any tool, but a shovel is the quickest}}
  | wooden shovel    = {{InvSprite|Wooden Shovel|link=Shovel|title=A wooden shovel or better is required to mine this block}}
  | axe              = {{SlotSprite|Axe Required|link=Axe|This block can be broken with any tool, but an axe is the quickest}}
  | hoe              = {{SlotSprite|Hoe Required|link=Hoe|This block can be broken with any tool, but a hoe is the quickest}}
  | bucket            = {{SlotSprite|Bucket Required|link=Bucket|This block can only be picked up using a bucket}}
  | sword            = {{SlotSprite|Sword Required|link=Sword|This block can be broken with any tool, but a sword is the quickest; however it still takes double damage}}
  | shears            = {{InvSprite|Shears|link=Shears|title=This block can be broken with any tool, but shears are the quickest}}
  | n/a    | none    = None
  | all    | alltools | any | anytool = Any tool
  | #default          = ?
}}
}}{{
  #if: {{{tool2|}}} | {{
    #switch: {{ lc: {{{tool2}}} }}
    | pick  | pickaxe = {{SlotSprite|Pickaxe Required|link=Pickaxe}}
    | wooden pickaxe  = {{InvSprite|Wooden Pickaxe|link=Pickaxe}}
    | stone pickaxe  = {{InvSprite|Stone Pickaxe|link=Pickaxe}}
    | iron pickaxe    = {{InvSprite|Iron Pickaxe|link=Pickaxe}}
    | diamond pickaxe = {{InvSprite|Diamond Pickaxe|link=Pickaxe}}
    | gold pickaxe    = {{InvSprite|Gold Pickaxe|link=Pickaxe}}
    | spade | shovel  = {{SlotSprite|Shovel Required|link=Shovel}}
    | axe            = {{SlotSprite|Axe Required|link=Axe}}
    | hoe            = {{SlotSprite|Hoe Required|link=Hoe}}
    | shears          = {{InvSprite|Shears|link=Shears}}
  }}
}} }}
}} }}
{{infobox row|label=[[Renewable resource|Renewable]]|field={{ #if: {{{renewable|}}} | {{{renewable}}} | ? }} }}
{{#if: {{{durability|}}} |{{infobox row|Durability|{{{durability|}}}}}}}
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | N/A [[Category:Missing stackability]] }} }}
{{infobox row|label=[[minecraft:Light|Luminous]]|field={{ #if: {{{light|}}} | {{{light}}} {{#if: {{{lightLevel|}}} | &nbsp;({{{lightLevel}}}) }} | ? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing luminance}}}} }} }}
{{infobox row|label=[[Flammable|Flammability]]|field={{ #if: {{{flammable|}}} | {{{flammable}}} | ?[[Category:Missing flammability]] }} }}
{{infobox row|label=[[minecraft:Opacity|Transparent]]|field={{ #if: {{{transparent|}}} | {{{transparent}}} | ? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing transparency}}}} }} }}
{{infobox row|label=Catches fire from [[lava]]?|field={{ #if: {{{lavasusceptible|}}} | {{{lavasusceptible}}} | ?[[Category:Missing lava susceptibility]] }} }}
{{ #if: {{{waterloggable|}}} | {{infobox row|label=[[minecraft:Waterlogging|Waterloggable]]|field={{{waterloggable}}} }} }}
{{#if: {{{data|}}} | {{infobox row|label=[[Data values|Data value]] delet <abbr title="Transfer to ID table">*</abbr>|field={{data value|{{{data}}} }} }} }}
{{ #if: {{{heals|}}} | {{infobox row|label=[[minecraft:Food|Restores]]|field={{{heals}}} }} }}
{{#if: {{{multipledata|}}} | {{infobox row|label=[[Data values]] delet <abbr title="Transfer to ID table">*</abbr>|field={{{multipledata}}} }} }}
{{infobox row|label=[[minecraft:Flammable|Flammable]]|field={{ #if: {{{flammable|}}} | {{{flammable}}} | ?{{#if: {{NAMESPACE}} || {{translation category|project=0|Missing flammability}}}} }} }}
{{#if: {{{nameid|}}} | {{infobox row|label=[[Namespaced ID]] delet <abbr title="Transfer to ID table">*</abbr>|field={{{nameid|}}} }} }}
{{infobox row|label=Catches fire from [https://minecraft.wiki/w/Lava Lava]|field={{ #if: {{{lavasusceptible|}}} | {{{lavasusceptible}}} | ?{{#if: {{NAMESPACE}} || {{translation category|project=0|Missing lava susceptibility}}}} }} }} }}
{{#if: {{{tags|}}} | {{infobox row | label= [[Tag]]s delet <abbr title="Transfer to ID table">*</abbr>| field= {{flatlist|{{#replace:{{{tags}}}|#|&#x23;}} }} }} }}
{{#if: {{NAMESPACE}} ||
{{#if: {{NAMESPACE}} ||
{{translation category|project=0|{{
{{translation category|project=0|{{
Line 72: Line 32:
   | Resources with invalid renewability
   | Resources with invalid renewability
}}}}
}}}}
}}
}}<noinclude>
| footer =
{{{notes|}}}}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
<!-- Put categories/interwiki on the documentation page -->
<!-- Put categories/interwiki on the documentation page -->
</noinclude>
</noinclude>