Vorlage:Block

Aus 1,5 Liter Flasche - Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „<div class="infobox" style="width: 22em; font-size: 90%; background: #FFFFFF; float: right; border: 1px solid #CCCCCC; margin-left:0.5em; padding: 2px;"> <div…“)
 
Zeile 1: Zeile 1:
<div class="infobox" style="width: 22em; font-size: 90%; background: #FFFFFF; float: right; border: 1px solid #CCCCCC; margin-left:0.5em; padding: 2px;">
+
<includeonly>{{infobox common
<div class="mcwiki-header" style="font-weight: bold; text-align: center; font-size: 120%">{{{title|{{BASEPAGENAME}}}}}</div>
+
| title = {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}
{{#if:{{{imagearea|}}}|<div style="text-align: center; padding: 4px;">{{{imagearea|}}}</div>}}
+
| imagearea = [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{BASEPAGENAME}}_ig.png | {{BASEPAGENAME}}_ig.png | No block image.png{{!}}link=File:{{BASEPAGENAME}}.png}} }}|150px|center]]{{
{| cellspacing="1px" cellpadding="4px" style="width: 100%;"
+
  #if: {{{image2|}}} | <div style="padding-top: 1em">[[File:{{{image2}}}|150px|center]]</div>
{{{rows}}}
+
}}{{
{{#if:{{{footer|}}}|
+
  #if: {{{image3|}}} | <div style="padding-top: 1em">[[File:{{{image3}}}|150px|center]]</div>
{{!}}- class="alternatecells"
+
}}{{
{{!}} colspan="2" style="text-align: center" {{!}}{{{footer|}}}}}
+
  #ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="display: table-row"><div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:{{ucfirst: {{{invimage}}} }}.png]]<span class="grid-input">[[File:{{ucfirst: {{{invimage}}} }}.png|32px]]</span></div></div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="display: table-row"><div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{BASEPAGENAME}}.png]]<span class="grid-input">[[File:Grid {{BASEPAGENAME}}.png]]</span></div></div> }} }}
|}
+
  }}{{
</div><noinclude>
+
  #ifeq: {{lc: {{{invimage2}}} }} | none | | {{#if: {{{invimage2|}}} | <div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage2}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage2}}} }}.png]]</span></div></div> }}
{{/doc}}
+
  }}{{
 
+
  #ifeq: {{lc: {{{invimage3}}} }} | none | | {{#if: {{{invimage3|}}} | <div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage3}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage3}}} }}.png]]</span></div></div> }}
[[Category:Infobox templates|I]]</noinclude>
+
  }}{{
 +
  #ifeq: {{lc: {{{invimage4}}} }} | none | | {{#if: {{{invimage4|}}} | <div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage4}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage4}}} }}.png]]</span></div></div> }}
 +
  }}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div></div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | </div></div> }} }} }}
 +
| rows =
 +
{{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }}
 +
{{
 +
  #switch: {{ lc: {{{type|solid}}} }}
 +
  | solid block | solid | block = {{infobox row|label=Requirements|field={{
 +
    #switch: {{ lc: {{{dirt}}} }}
 +
    | yes = Sunlight and dirt
 +
    | no = None
 +
    | sand = Sunlight and sand
 +
    | #default = {{ #if: {{{dirt|}}} | {{{dirt}}} | ? }}
 +
  }} }}
 +
}}
 +
{{ #if: {{{maxeu|}}} | {{infobox row|label=Max Input|field=<b>{{ #ifexpr: {{{maxeu}}}=32 |<span style="color:blue">32 (LV)</span>|{{#ifexpr: {{{maxeu}}}=128 |<span style="color:green">128 (MV)</span>|{{#ifexpr: {{{maxeu}}}=512 |<span style="color:orange">512 (HV)</span>|{{#ifexpr: {{{maxeu}}}=2048 |<span style="color:red">2048 (EXV)</span>|{{{maxeu}}} (??)}}}}}}}}</b>}}}}
 +
{{ #if: {{{eu_use|}}} | {{infobox row|label=EU Use|field={{{eu_use}}} EU/t{{#if: {{{eu_use2|}}} | <br/>''{{{eu_use2}}}''}}}}}}
 +
{{ #if: {{{storage|}}} | {{infobox row|label=EU Storage|field={{{storage}}} EU}}}}
 +
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|field={{
 +
  #switch: {{ lc: {{{tool|}}} }}
 +
  | wpick  | WoodPick = [[File:Grid_Wooden_Pickaxe.png|32px|link=Non-IC Items|Wooden Pickaxe]]
 +
  | spick  | StonePick = [[File:Grid_Stone_Pickaxe.png|32px|link=Non-IC Items|Stone Pickaxe]]
 +
  | ipick  | IronPick = [[File:Grid_Iron_Pickaxe.png|32px|link=Non-IC Items|Iron Pickaxe]]
 +
  | dpick  | DiamondPick = [[File:Grid_Diamon_Pickaxe.png|32px|link=Non-IC Items|Diamond Pickaxe]]
 +
  | bwrench  | BronzeWrench = [[File:Grid_Wrench.png|32px|link=Bronze Wrench]]
 +
  | spade  | shovel  = [[File:spade.png|32px|link=Shovel]]
 +
  | axe              = [[File:axe.png|32px|link=Axe]]
 +
  | hoe              = [[File:hoe.png|32px|link=Hoe]]
 +
  | bucket | pail    = [[File:bucket.png|32px|link=Bucket]]
 +
  | sword            = [[File:sword.png|32px|link=Sword]]
 +
  | n/a    | none    = None
 +
  | all    | alltools | any | anytool = Any tool
 +
  | #default          = ?
 +
}}{{
 +
  #if: {{{tool2|}}} | {{
 +
    #switch: {{ lc: {{{tool2}}} }}
 +
    | pick  | pickaxe = [[File:pickaxe.png|32px|link=Tools#Pickaxe|Pickaxe]]
 +
    | spade | shovel  = [[File:spade.png|32px|link=Tools#Shovel|Shovel]]
 +
    | axe            = [[File:axe.png|32px|link=Tools#Axe|Axe]]
 +
    | hoe            = [[File:hoe.png|32px|link=Tools#Hoe|Hoe]]
 +
  }}
 +
}} }}
 +
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | N/A }} }}
 +
{{
 +
  #switch: {{ lc: {{{type|fluid}}} }}
 +
  | fluid =
 +
{{infobox row|label=Speed of fluid movement|field={{ #if: {{{fluidspeed|}}} | {{{fluidspeed}}} | ? }} }}
 +
{{infobox row|label=Speed of walking through|field={{ #if: {{{movespeed|}}} | {{{movespeed}}} | ? }} }}
 +
}}
 +
{{#if: {{{data|}}} | {{infobox row|label=[[Data values|Data value]]|field={{dv|{{{data}}} }} }} }}{{#if: {{{multipledata|}}} | {{infobox row|label=[[Data values]]|field={{{multipledata}}} }} }}
 +
}}{{#if:{{NAMESPACE}}||[[Category:Blocks]]}}</includeonly><noinclude>
 +
{{Documentation}}
 +
[[Category:Infobox templates|B]]</noinclude>

Version vom 6. Juli 2013, 18:01 Uhr

[create] 50px Template documentation
[create] 50px Template documentation
Meine Werkzeuge