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
(and herein lies the problem (and the fix))
(switch this to using the various info templates to construct the table for us)
Line 1: Line 1:
<includeonly>{| class="infobox" style="float: right; border: 1px solid #aaa; margin: 0; border-spacing: 0; width: 240px"
+
<includeonly>{{infostart|{{{name}}}}}
|+ style="font-weight: bold" |{{{name}}}
+
{{infocell|{{Mineral/picture|tile={{{tile|?}}}|icon={{{icon|•}}}|color={{{color}}}|itemcolor={{#ifeq:{{{itemcolor|}}}||{{{color}}}|{{{itemcolor}}}}}}}}}
|-
+
{{#if:{{{uses|}}}|{{infoheader|Uses}}
| colspan="2" |
+
{{infocell|{{{uses|}}}}}}}
{{Mineral/picture|tile={{{tile|?}}}|icon={{{icon|•}}}|color={{{color}}}|itemcolor={{#ifeq:{{{itemcolor|}}}||{{{color}}}|{{{itemcolor}}}}}}}
+
{{#if:{{{location|}}}|{{infoheader|Location}}
|-
+
{{infocell|{{{location|}}}}}}}
{{#if: {{{uses|}}}|! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" {{!}} Uses
+
{{#if:{{{properties|}}}|{{infoheader|Properties}}
{{!-}}
+
{{infocell|{{{properties|}}}}}}}
{{!}} colspan="2" style="padding: 0.25em" {{!}}
+
{{#if:{{{contains|}}}|{{infoheader|Contains}}
{{{uses|}}}
+
{{infocell|{{{contains|}}}}}}}
{{!-}}}}
+
{{#ifeq:{{{wiki}}}|no||{{infocell|style=text-align:center; background-color: #eee; border-top: 1px solid #aaa|1={{wp|{{#if:{{{wiki|}}}| {{{wiki}}}|{{{name}}}}}|Wikipedia article}}}}|{{!-}}}}
{{#if: {{{location|}}}|! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" {{!}} Location
+
{{infoend}}</includeonly><noinclude>
{{!-}}
 
{{!}} colspan="2" style="padding: 0.25em" {{!}}
 
{{{location}}}
 
{{!-}}}}
 
{{#if: {{{properties|}}}|! 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}}}
 
{{!-}}}}
 
{{#if: {{{contains|}}}|! colspan="2" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" {{!}} Contains
 
{{!-}}
 
{{!}} colspan="2" style="padding: 0.25em" {{!}}
 
{{{contains}}}
 
{{!-}}}}
 
{{#ifeq: {{{wiki}}}|no||
 
{{!}} colspan="2" style="border-top: 1px solid #aaa; border-bottom: 0px solid #aaa; background: #eee; font-size:90%; text-align:center;" {{!}} {{wp|{{#if:{{{wiki|}}}| {{{wiki}}}|{{{name}}}}}|Wikipedia article}}}}
 
|}</includeonly><noinclude>
 
  
 
Usage:
 
Usage:
Line 58: Line 41:
 
* [[Economic stone]]
 
* [[Economic stone]]
 
* [[Material value]] 1}}
 
* [[Material value]] 1}}
 +
 
[[Category:materials templates]]
 
[[Category:materials templates]]
 
 
</noinclude>
 
</noinclude>

Revision as of 17:34, 21 May 2010


Usage:

{{Mineral|name=Bituminous coal|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
= = =
= = =
= =
=
Uses
Location
Properties

Template:Wp