v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Mineral"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(New page: <includeonly>{| class="infobox" style="float: right; border: 1px solid #aaa; margin: 0 0 0.5em 0.5em; border-spacing: 0; width: 17em" |+ style="font-weight: bold" |{{{name}}} |- | colspan=...)
 
(Should probably edit the usage example as well.)
 
(100 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<includeonly>{| class="infobox" style="float: right; border: 1px solid #aaa; margin: 0 0 0.5em 0.5em; border-spacing: 0; width: 17em"
+
<includeonly>{{infostart|{{{name}}}}}
|+ style="font-weight: bold" |{{{name}}}
+
{{#ifeq:{{NAMESPACE}}| |
|-
+
{{infocell|{{{sample|}}}}}{{{sprite|}}}}}
| colspan="2" |
+
{{infocell|{{Mineral/picture|tile={{{tile|?}}}|icon={{{icon|}}}|color={{{color}}}|itemcolor={{#ifeq:{{{itemcolor|}}}||{{{color}}}|{{{itemcolor}}}}}}}}}
{| style="border-spacing: 0; background: black; padding: 0.2em; border: 1px solid white; margin: 0.5em auto"
+
{{#if:{{{graphic|}}}|{{infoheader|Graphic}}
|-
+
{{infocell|[[File:{{{graphic}}}|center]]}}|{{!-}}}}
|style="padding: 0"|{{Raw Tile|{{{tile}}}|{{{color}}}|#CCC}}
+
{{#if:{{{uses|}}}|{{infoheader|Uses}}
|style="padding: 0"|{{Raw Tile|{{{tile}}}|{{{color}}}|#CCC}}
+
{{infocell|{{{uses|}}}}}|{{!-}}}}
|style="padding: 0"|{{Raw Tile|{{{tile}}}|{{{color}}}|#CCC}}
+
{{#if:{{{location|}}}|{{infoheader|Location}}
|style="padding: 0"|{{Raw Tile|{{{tile}}}|{{{color}}}|#CCC}}
+
{{infocell|{{{location|}}}}}|{{!-}}}}
|style="padding: 0"|{{Raw Tile|{{{tile}}}|{{{color}}}|#CCC}}
+
{{#if:{{{properties|}}}|{{infoheader|Properties}}
|style="padding: 0"|{{Raw Tile|{{{tile}}}|{{{color}}}|#CCC}}
+
{{#if:{{{graphic2|}}}|{{infocell|*Rough gem: [[File:{{{graphic2}}}]]|}}|{{!-}}}}
|style="padding: 0"|{{Raw Tile|{{{tile}}}|{{{color}}}|#CCC}}
+
{{infocell|{{{properties|}}}}}|{{!-}}}}
|-
+
{{#if:{{{contains|}}}|{{infoheader|Contains}}
|style="padding: 0"|{{Raw Tile|{{{icon}}}|{{{color}}}|black}}
+
{{infocell|{{{contains|}}}}}|{{!-}}}}
|style="padding: 0"|{{Raw Tile|&#x3D;|#444|black}}
+
{{#ifeq:{{{wiki}}}|no||{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|1=[[wikipedia:{{#if:{{{wiki|}}}| {{{wiki}}}|{{{name}}}}}|Wikipedia article]]}}|{{!-}}}}
|style="padding: 0"|{{Raw Tile|&#x3D;|#444|black}}
+
{{infoend}}</includeonly><noinclude>
|style="padding: 0"|{{Raw Tile|&#x3D;|#444|black}}
 
|style="padding: 0"|{{Raw Tile|{{{tile}}}|{{{color}}}|#CCC}}
 
|style="padding: 0"|{{Raw Tile|{{{tile}}}|{{{color}}}|#CCC}}
 
|style="padding: 0"|{{Raw Tile|{{{tile}}}|{{{color}}}|#CCC}}
 
|-
 
|style="padding: 0"|{{Raw Tile|{{{icon}}}|{{{color}}}|black}}
 
|style="padding: 0"|{{Raw Tile|{{{icon}}}|{{{color}}}|black}}
 
|style="padding: 0"|{{Raw Tile|&#x3D;|#444|black}}
 
|style="padding: 0"|{{Raw Tile|&#x3D;|#444|black}}
 
|style="padding: 0"|{{Raw Tile|&#x3D;|#444|black}}
 
|style="padding: 0"|{{Raw Tile|{{{tile}}}|{{{color}}}|#CCC}}
 
|style="padding: 0"|{{Raw Tile|{{{tile}}}|{{{color}}}|#CCC}}
 
|-
 
|style="padding: 0"|{{Raw Tile|{{{icon}}}|{{{color}}}|black}}
 
|style="padding: 0"|{{Raw Tile|{{{icon}}}|{{{color}}}|black}}
 
|style="padding: 0"|{{Raw Tile|{{{icon}}}|{{{color}}}|black}}
 
|style="padding: 0"|{{Raw Tile|{{{icon}}}|{{{color}}}|black}}
 
|style="padding: 0"|{{Raw Tile|&#x3D;|#444|black}}
 
|style="padding: 0"|{{Raw Tile|&#x3D;|#444|black}}
 
|style="padding: 0"|{{Raw Tile|{{{tile}}}|{{{color}}}|#CCC}}
 
|-
 
|style="padding: 0"|{{Raw Tile|{{{icon}}}|{{{color}}}|black}}
 
|style="padding: 0"|{{Raw Tile|{{{icon}}}|{{{color}}}|black}}
 
|style="padding: 0"|{{Raw Tile|{{{icon}}}|{{{color}}}|black}}
 
|style="padding: 0"|{{Raw Tile|{{{icon}}}|{{{color}}}|black}}
 
|style="padding: 0"|{{Raw Tile|{{{icon}}}|{{{color}}}|black}}
 
|style="padding: 0"|{{Raw Tile|{{{icon}}}|{{{color}}}|black}}
 
|style="padding: 0"|{{Raw Tile|&#x3D;|#444|black}}
 
|}
 
 
 
|-
 
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Uses
 
|-
 
| colspan="2" style="padding: 0.25em" |
 
{{{uses|}}}
 
|-
 
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Location
 
|-
 
| colspan="2" style="padding: 0.25em" |
 
{{{location}}}
 
|-
 
! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Properties
 
|-
 
| colspan="2" style="padding: 0.25em" |
 
{{{properties}}}
 
|}</includeonly>
 
<noinclude>
 
  
 
Usage:
 
Usage:
 
<pre><nowiki>
 
<pre><nowiki>
{{Mineral|name=Bituminous Coal|tile=☼|color=#888
+
{{Mineral|name=Bituminous coal|
 +
|sample=
 +
[[File:Bituminous coalSample.png|200px|right]]
 +
|sprite=[[File:Bituminous coal sprite.png|left]]
 +
|graphic2=(filename.png) (This is used for gems only!)
 +
|tile=☼|icon=☼|color=0:7:1
 
|uses =
 
|uses =
 
* 3 coke at [[smelter]]
 
* 3 coke at [[smelter]]
Line 80: Line 38:
 
* [[Material value]] 1}}
 
* [[Material value]] 1}}
 
</nowiki></pre>
 
</nowiki></pre>
{{Mineral|name=Bituminous Coal|tile=☼|color=#888
+
{{Mineral|name=Bituminous coal|
 +
|sample=[[File:Bituminous coalSample.png|256px|center]]
 +
|graphic=Bituminous coal sprite.png
 +
|tile=☼|icon=☼|color=0:7:1
 
|uses =
 
|uses =
 
* 3 coke at [[smelter]]
 
* 3 coke at [[smelter]]
Line 93: Line 54:
 
* [[Economic stone]]
 
* [[Economic stone]]
 
* [[Material value]] 1}}
 
* [[Material value]] 1}}
 +
 
[[Category:materials templates]]
 
[[Category:materials templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 15:14, 9 May 2024


Usage:

{{Mineral|name=Bituminous coal|
|sample=
[[File:Bituminous coalSample.png|200px|right]]
|sprite=[[File:Bituminous coal sprite.png|left]]
|graphic2=(filename.png) (This is used for gems only!)
|tile=☼|icon=☼|color=0:7:1
|uses =
* 3 coke at [[smelter]]
* [[mason's workshop|Masonry]]
* [[craftsdwarf's workshop|Stone crafting]]
* [[Construction]]
|location =
* [[Sedimentary layer]]s
* Found as veins
|properties =
* Can [[ignite]]
* [[Economic stone]]
* [[Material value]] 1}}
Bituminous coal
= = =
= = =
= =
=
Graphic
Bituminous coal sprite.png
Uses
Location
Properties

Wikipedia article