Difference between revisions of "Template:Metal"

From TerraFirmaCraft Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
<includeonly>{{infobox common
+
{{infobox common
 
| title = {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}
 
| title = {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}
 
| imagearea = {{
 
| imagearea = {{
Line 81: Line 81:
 
   }}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div> | {{#ifexist: File:Grid {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | </div> }} }} }}
 
   }}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div> | {{#ifexist: File:Grid {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | </div> }} }} }}
 
| rows =
 
| rows =
 +
{{infobox row|label=Tier|field={{ #if: {{{tier|}}} | {{{tier}}} | 0 }} }}
 +
{{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | Metal }} }}
 +
{{infobox row|label=Source{{ #if: {{{tool2|}}} | s }}|field={{
 +
  #switch: {{ lc: {{{tool|}}} }}
 +
  | bismuth        = {{GridImage|Bismuthinite|Bismuth}}
 +
  | tin            = {{GridImage|Cassiterite|Tin}}
 +
  | zinc          = {{GridImage|Sphalerite|Zinc}}
 +
  | copper        = {{GridImage|Malachite|Copper}}{{GridImage|Native Copper|Copper}}{{GridImage|Tetrahedrite|Copper}}
 +
  | lead          = {{GridImage|Galena|Lead}}
 +
  | gold          = {{GridImage|Native Gold|Gold}}
 +
  | silver        = {{GridImage|Native Silver|Silver}}
 +
  | platinum      = {{GridImage|Native Platinum|Platinum}}
 +
  | wroughtiron    = {{GridImage|Raw Iron Bloom|Wrought Iron}}
 +
  | nickel        = {{GridImage|Garnierite|Nickel}}
 +
  | pigiron        = {{GridImage|Hematite|Pig Iron}}{{GridImage|Limonite|Pig Iron}}{{GridImage|Magnetite|Pig Iron}}
 +
  | alloy          = [[Alloy]]
 +
  | #default      = ?
 +
}}{{
 +
  #if: {{{tool2|}}} | {{
 +
  #switch: {{ lc: {{{tool|}}} }}
 +
  | bismuth        = {{GridImage|Bismuthinite|Bismuth}}
 +
  | tin            = {{GridImage|Cassiterite|Tin}}
 +
  | zinc          = {{GridImage|Sphalerite|Zinc}}
 +
  | copper        = {{GridImage|Malachite|Copper}}{{GridImage|Native Copper|Copper}}{{GridImage|Tetrahedrite|Copper}}
 +
  | lead          = {{GridImage|Galena|Lead}}
 +
  | gold          = {{GridImage|Native Gold|Gold}}
 +
  | silver        = {{GridImage|Native Silver|Silver}}
 +
  | platinum      = {{GridImage|Native Platinum|Platinum}}
 +
  | wroughtiron    = {{GridImage|Raw Iron Bloom|Wrought Iron}}
 +
  | nickel        = {{GridImage|Garnierite|Nickel}}
 +
  | pigiron        = {{GridImage|Hematite|Pig Iron}}{{GridImage|Limonite|Pig Iron}}{{GridImage|Magnetite|Pig Iron}}
 +
  | alloy          = [[Alloy]]
 +
  | #default      = ?
 +
  }}
 +
}}{{
 +
  #if: {{{tool3|}}} | {{
 +
  #switch: {{ lc: {{{tool|}}} }}
 +
  | bismuth        = {{GridImage|Bismuthinite|Bismuth}}
 +
  | tin            = {{GridImage|Cassiterite|Tin}}
 +
  | zinc          = {{GridImage|Sphalerite|Zinc}}
 +
  | copper        = {{GridImage|Malachite|Copper}}{{GridImage|Native Copper|Copper}}{{GridImage|Tetrahedrite|Copper}}
 +
  | lead          = {{GridImage|Galena|Lead}}
 +
  | gold          = {{GridImage|Native Gold|Gold}}
 +
  | silver        = {{GridImage|Native Silver|Silver}}
 +
  | platinum      = {{GridImage|Native Platinum|Platinum}}
 +
  | wroughtiron    = {{GridImage|Raw Iron Bloom|Wrought Iron}}
 +
  | nickel        = {{GridImage|Garnierite|Nickel}}
 +
  | pigiron        = {{GridImage|Hematite|Pig Iron}}{{GridImage|Limonite|Pig Iron}}{{GridImage|Magnetite|Pig Iron}}
 +
  | alloy          = [[Alloy]]
 +
  | #default      = ?
 +
  }}
 +
}} }}
 +
{{infobox row|label=Anvil|field={{ #if: {{{anvil|}}} | {{{anvil}}} | None }} }}
 +
{{infobox row|label=Tuyere|field={{ #if: {{{tuyere|}}} | {{{tuyere}}} | None }} }}
 +
{{infobox row|label=Tool Casting|field={{ #if: {{{casting|}}} | {{{casting}}} | No }} }}
 +
{{infobox row|label=Tool Forging|field={{ #if: {{{forging|}}} | {{{forging}}} | No }} }}
 +
{{infobox row|label=Armor|field={{ #if: {{{armor|}}} | {{{armor}}} | None }} }}
 
| footer =
 
| footer =
 
{{{notes|}}}
 
{{{notes|}}}
}}</includeonly><noinclude>
+
}}<noinclude>
 
{{doc}}
 
{{doc}}
 
</noinclude>
 
</noinclude>

Revision as of 23:16, 18 April 2015

Metal
No image.png
Tier

0

Type

Metal

Source

?

Anvil

None

Tuyere

None

Tool Casting

No

Tool Forging

No

Armor

None

Template documentation (for the above template, sometimes hidden or invisible)

Template:Protected

Metal
No image.png
Tier

0

Type

Metal

Source

?

Anvil

None

Tuyere

None

Tool Casting

No

Tool Forging

No

Armor

None

This template provides a uniform design for metal pages.

{{Metal
|title=
|image=
|image2=
|image3=
|invimage=
|invimage2=
|invimage3=
|invimage4=
|invimage5=
|invimage6=
|invimage7=
|invimage8=
|invimage9=
|invimage10=
|invimage11=
|invimage12=
|invimage13=
|invimage14=
|invimage15=
|invimage16=
|invimage17=
|invimage18=
|invimage19=
|invimage20=
|invimage21=
|invimage22=
|invimage23=
|invimage24=
|invimage25=
|tier=
|type=
|source=
|source2=
|source3=
|anvil=
|tuyere=
|casting=
|forging=
|armor=
|notes=
}}

Please note the unusual markup at the beginning and end; copy it verbatim if you are creating a new block page.

Parameter Function Default value
title Only needed to change the title from the page name {{BASEPAGENAME}}
image Image of the metal materials (Unshaped, ingot, double ingot, etc) (should be approx. 150x150px). Rotate through multiple images by separating them with ; {{{title}}}.png if it exists, otherwise No image.png (linking to the page where to upload the missing image)
imageN Other images for multi-state blocks (also approx. 150x150px). Should only be used when the second state is very dissimilar from the first (e.g. fence gates open & closed) None
invimage Image for object in inventory. Can use None to force no invimage. Uses Template:Grid. Grid {{{title}}}.png if it exists, otherwise None
invimageN Other images for multi-state objects in inventory. Uses Template:Grid. None
tier Tier # 0
type Metal or Alloy? Metal
source Material source. Input "raw" metal names such as copper, tin, zinc, etc to show ore images. Input alloy to just display a link to alloy page.  ?
anvil Is there an anvil made out of this metal? If yes, put "Yes {{GridImage|Anvil_(Metal)}}" None
tuyere Is there a tuyere made out of this metal? If yes, put "Yes {{GridImage|Metal_Tuyere}}" None
casting Can this metal be casted into tools? If Yes, put "Yes {{GridImage|Ceramic_Mold_Pick_(Metal)}}" No
forging Can this metal be forged into tools? If Yes, put "Yes {{GridImage|Metal_Pickaxe}}" No
armor Is there armor made out of this metal? If Yes, put "Yes {{GridImage|Metal_Helmet}}" No
notes Adds a centred column spanning across both rows at the bottom of the box None



Visit Template:Metal/doc to edit this text! (How does this work?)