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:Furniture"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (Added to infobox template category)
 
(46 intermediate revisions by 12 users not shown)
Line 3: Line 3:
 
|-
 
|-
 
| colspan="6" |  
 
| colspan="6" |  
  {|
+
  {| style="margin: auto"
|-
+
   |{{tile|{{{tile|?}}}|{{{col|7:0:0}}}||2em}}
| style="width: 50%" |
 
|
 
  {|
 
   |{{tile|{{{tile|?}}}|{{color2|{{{col|7}}}}}|{{color2|{{{bak|0}}}}}|2em}}
 
 
   |}
 
   |}
| style="width: 50%" |
 
|}
 
 
|-
 
|-
 
! colspan="6" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Construction
 
! colspan="6" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Construction
Line 17: Line 11:
 
! colspan="2" style="text-align: left; padding: 0.2em 0.25em 0; width: 50%; border-right: 1px solid #aaa" | Materials
 
! colspan="2" style="text-align: left; padding: 0.2em 0.25em 0; width: 50%; border-right: 1px solid #aaa" | Materials
 
! colspan="2" style="text-align: left; padding: 0.2em 0.25em 0; width: 50%; border-right: 1px solid #aaa" | Workshops
 
! colspan="2" style="text-align: left; padding: 0.2em 0.25em 0; width: 50%; border-right: 1px solid #aaa" | Workshops
! colspan="2" style="text-align: left; padding: 0.2em 0.25em 0; width: 50%" | Jobs
+
! colspan="2" style="text-align: left; padding: 0.2em 0.25em 0; width: 50%" | Labors
 
|-
 
|-
| colspan="2" style="padding: 0.1em 0.25em 0.25em; width: 50%; vertical-align: top; border-right: 1px solid #aaa" |{{#switch:{{{wood}}}|#default=|y=
+
| colspan="2" style="padding: 0.1em 0.25em 0.25em; width: 50%; vertical-align: top; border-right: 1px solid #aaa" |{{{materials|{{#switch:{{{wood|{{{woodcraft}}}}}}|#default=|y|yes=
* {{L|log|Wood}}<br /><br />|yes=
+
* [[Wood]]<br /><br />}}{{#switch:{{{stone|{{{stonecraft|{{{stonecarve|}}}}}}}}}|#default=|y|yes=
* {{L|log|Wood}}<br /><br />}}{{#switch:{{{stone}}}|#default=|y=
+
* [[Stone]]<br /><br />}}{{#switch:{{{metal|{{{metalcraft}}}}}}|#default=|y|yes=
* {{L|Stone}}<br /><br />|yes=
+
* [[Metal]]<br /><br />}}{{#switch:{{{glass}}}|#default=|y|yes=
* {{L|Stone}}<br /><br />}}{{#switch:{{{metal}}}|#default=|y=
+
* [[Glass]]<br /><br />}}{{#switch:{{{cloth}}}|#default=|y|yes=
* {{L|metal bar|Metal}}<br /><br />|yes=
+
* [[Cloth]]<br /><br />}}{{#switch:{{{leather|{{{cloth|}}}}}}|#default=|y|yes=
* {{L|metal bar|Metal}}<br /><br />}}{{#switch:{{{glass}}}|#default=|y=
+
* [[Leather]]<br /><br />}}{{#switch:{{{slab|{{{slabv50|}}}}}}|#default=|y|yes=
* {{L|Glass}}<br /><br />|yes=
+
* [[Slab]]<br /><br />}}{{#switch:{{{ceramic}}}|#default=|y|yes=
* {{L|Glass}}<br /><br />}}{{#switch:{{{cloth}}}|#default=|y=
+
* [[Ceramic]]<br /><br />}}}}}
* {{L|Cloth}}<br /><br />
+
| colspan="2" style="padding: 0.1em 0.25em 0.25em; width: 50%; vertical-align: top; border-right: 1px solid #aaa" |{{{workshops|{{#switch:{{{wood}}}|#default=|y|yes=
* {{L|Leather}}<br /><br />|yes=
+
* [[Carpenter's workshop]]}}{{#switch:{{{woodcraft}}}|#default=|y|yes=
* {{L|Cloth}}<br /><br />
+
* [[Craftsdwarf's workshop]]}}{{#switch:{{{stone}}}|#default=|y|yes=
* {{L|Leather}}<br /><br />}}
+
* [[Mason's workshop]]}}{{#switch:{{{stonecarve}}}|#default=|y|yes=
| colspan="2" style="padding: 0.1em 0.25em 0.25em; width: 50%; vertical-align: top; border-right: 1px solid #aaa" |{{#switch:{{{wood}}}|#default=|y=
+
* [[Stoneworker's workshop]]}}{{#switch:{{{stonecraft}}}|#default=|y|yes=
* {{L|Carpenter's workshop}}|yes=
+
* [[Craftsdwarf's workshop]]}}{{#switch:{{{metal}}}|#default=|y|yes=
* {{L|Carpenter's workshop}}}}{{#switch:{{{stone}}}|#default=|y=
+
* [[Metalsmith's forge]]}}{{#switch:{{{metalcraft}}}|#default=|y|yes=
* {{L|Mason's workshop}}|yes=
+
* [[Metalsmith's forge]]}}{{#switch:{{{glass}}}|#default=|y|yes=
* {{L|Mason's workshop}}}}{{#switch:{{{metal}}}|#default=|y=
+
* [[Glass furnace]]}}{{#switch:{{{cloth}}}|#default=|y|yes=
* {{L|Metalsmith's forge}}|yes=
+
* [[Clothier's shop]]}}{{#switch:{{{leather|{{{cloth|}}}}}}|#default=|y|yes=
* {{L|Metalsmith's forge}}}}{{#switch:{{{glass}}}|#default=|y=
+
* [[Leather works]]}}{{#switch:{{{slab}}}|#default=|y|yes=
* {{L|Glass furnace}}|yes=
+
* [[Craftsdwarf's workshop]]}}{{#switch:{{{slabv50}}}|#default=|y|yes=
* {{L|Glass furnace}}}}{{#switch:{{{cloth}}}|#default=|y=
+
* [[Stoneworker's workshop]]}}{{#switch:{{{ceramic}}}|#default=|y|yes=
* {{L|Clothier's shop}}
+
* [[Kiln]] or [[Magma kiln]]<br /><br />}}}}}
* {{L|Leather works}}|yes=
+
| colspan="2" style="padding: 0.1em 0.25em 0.25em; width: 50%; vertical-align: top" |{{{labors|{{#switch:{{{wood}}}|#default=|y|yes=
* {{L|Clothier's shop}}
+
* [[Carpentry]]<br /><br />}}{{#switch:{{{woodcraft}}}|#default=|y|yes=
* {{L|Leather works}}}}
+
* [[Woodcrafting]]<br /><br />}}{{#switch:{{{stone}}}|#default=|y|yes=
| colspan="2" style="padding: 0.1em 0.25em 0.25em; width: 50%; vertical-align: top" |{{#switch:{{{wood}}}|#default=|y=
+
* [[Masonry]]<br /><br />}}{{#switch:{{{stonecarve}}}|#default=|y|yes=
* {{L|Carpentry}}<br /><br />|yes=
+
* [[Stone carving]]<br /><br />}}{{#switch:{{{stonecraft}}}|#default=|y|yes=
* {{L|Carpentry}}<br /><br />}}{{#switch:{{{stone}}}|#default=|y=
+
* [[Stonecrafting]]<br /><br />}}{{#switch:{{{metal}}}|#default=|y|yes=
* {{L|Masonry}}<br /><br />|yes=
+
* [[Blacksmithing]]<br /><br />}}{{#switch:{{{metalcraft}}}|#default=|y|yes=
* {{L|Masonry}}<br /><br />}}{{#switch:{{{metal}}}|#default=|y=
+
* [[Metalcrafting]]<br /><br />}}{{#switch:{{{glass}}}|#default=|y|yes=
* {{L|Blacksmithing}}<br /><br />|yes=
+
* [[Glassmaking]]<br /><br />}}{{#switch:{{{cloth}}}|#default=|y|yes=
* {{L|Blacksmithing}}<br /><br />}}{{#switch:{{{glass}}}|#default=|y=
+
* [[Clothesmaking]]<br /><br />}}{{#switch:{{{leather|{{{cloth|}}}}}}|#default=|y|yes=
* {{L|Glassmaking}}<br /><br />|yes=
+
* [[Leatherworking]]<br /><br />}}{{#switch:{{{slab}}}|#default=|y|yes=
* {{L|Glassmaking}}<br /><br />}}{{#switch:{{{cloth}}}|#default=|y=
+
* [[Engraving]]<br /><br />}}{{#switch:{{{slabv50}}}|#default=|y|yes=
* {{L|Clothesmaking}}<br /><br />
+
* [[Stone engraving]]<br /><br />}}{{#switch:{{{ceramic}}}|#default=|y|yes=
* {{L|Leatherworking}}<br /><br />|yes=
+
* [[Pottery]]<br /><br />}}}}}
* {{L|Clothesmaking}}<br /><br />
 
* {{L|Leatherworking}}<br /><br />}}
 
 
|-
 
|-
 
! colspan="6" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Rooms
 
! colspan="6" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" | Rooms
Line 63: Line 55:
 
| colspan="6" style="padding: 0.25em" |
 
| colspan="6" style="padding: 0.25em" |
 
{{{rooms|''None''}}}
 
{{{rooms|''None''}}}
|}
+
{{ #if: {{{value|}}} |
{{#switch:{{NAMESPACE}}|#default=[[Category:Furniture]]|Templage=}}</includeonly><noinclude>
+
{{!}}-
 +
! colspan="6" style="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" {{!}} Base value
 +
{{!}}-
 +
{{!}} colspan="6" style="padding: 0.25em" {{!}}
 +
{{{value}}}☼ | }}
 +
|}{{#switch:{{NAMESPACE}}|Template = |#default={{Category|Furniture}}}}</includeonly><noinclude>
 
{{furniture|name=Bed
 
{{furniture|name=Bed
|tile=Θ|col=6
+
|tile=Θ|col=6:0:0
 
|wood=y
 
|wood=y
 
|rooms=
 
|rooms=
* {{L|Bedroom}}
+
* [[Bedroom]]
* {{L|Barracks}}
+
* [[Barracks]]
* {{L|Dormitory}}
+
* [[Dormitory]]
 +
|value=10
 
}}
 
}}
 
==Usage==
 
==Usage==
 
<pre>{{furniture|name=Bed
 
<pre>{{furniture|name=Bed
|tile=Θ|col=6
+
|tile=Θ|col=6:0:0
 
|wood=y
 
|wood=y
 
|rooms=
 
|rooms=
* {{L|Bedroom}}
+
* [[Bedroom]]
* {{L|Barracks}}
+
* [[Barracks]]
* {{L|Dormitory}}
+
* [[Dormitory]]
 +
|value=10
 
}}</pre>
 
}}</pre>
 
Adds <nowiki>[[Category:Furniture]]</nowiki> to the article.
 
Adds <nowiki>[[Category:Furniture]]</nowiki> to the article.
</noinclude>
+
[[Category:Templates]][[Category:Infobox templates]]</noinclude>

Latest revision as of 22:21, 21 January 2023

Bed
Θ
Construction
Materials Workshops Labors
Rooms
Base value

10☼

Usage[edit]

{{furniture|name=Bed
|tile=Θ|col=6:0:0
|wood=y
|rooms=
* [[Bedroom]]
* [[Barracks]]
* [[Dormitory]]
|value=10
}}

Adds [[Category:Furniture]] to the article.