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:V50 furniture"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (Added to infobox templates)
(Hyperlinked headers. Added switch statement to display value/size/capacity in one line, currently WIP.)
Line 55: Line 55:
 
| colspan="6" style="padding: 0.25em" |
 
| colspan="6" style="padding: 0.25em" |
 
{{{rooms|''None''}}}
 
{{{rooms|''None''}}}
{{ #if: {{{value|}}} |  
+
{{ #if: {{{value|}}}{{{size|}}}{{{capacity|}}} |  
 
{{!}}-
 
{{!}}-
! 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="border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; background: #eee; padding: 0.1em 0.25em" {{!}} {{ #if: {{{value}}} |
 +
[[Value|Base value]] |}} {{ #if: {{{size}}} | {{!}} [[Size]] |}} {{ #if: {{{capacity}}} | {{!}} [[Storage|Capacity]] |}}
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="6" style="padding: 0.25em" {{!}}
 
{{!}} colspan="6" style="padding: 0.25em" {{!}}
{{{value}}}☼ | }}
+
{{ #if: {{{value|}}} |{{{value}}}☼ |}} {{ #if: {{{size|}}} | / {{{size}}} cm³ |}} {{ #if: {{{capacity|}}} | / {{{capacity}}} cm³ |}}
 +
}}
 
|}{{#switch:{{NAMESPACE}}|Template = |#default={{Category|Furniture}}}}</includeonly><noinclude>
 
|}{{#switch:{{NAMESPACE}}|Template = |#default={{Category|Furniture}}}}</includeonly><noinclude>
 
{{v50_furniture|name=Bed
 
{{v50_furniture|name=Bed
 +
|graphic=[[File:bed_sprite_prototype.png]]
 +
|tile=Θ|col=6:0:0
 +
|wood=y
 +
|rooms=
 +
* [[Bedroom]]
 +
* [[Barracks]]
 +
* [[Dormitory]]
 +
|value=10
 +
|size=20
 +
|capacity=30
 +
}}
 +
 +
{{v50_furniture|name=Bed
 +
|graphic=[[File:bed_sprite_prototype.png]]
 +
|tile=Θ|col=6:0:0
 +
|wood=y
 +
|rooms=
 +
* [[Bedroom]]
 +
* [[Barracks]]
 +
* [[Dormitory]]
 +
}}
 +
 +
{{v50_furniture|name=Bed
 +
|graphic=[[File:bed_sprite_prototype.png]]
 
|tile=Θ|col=6:0:0
 
|tile=Θ|col=6:0:0
 
|wood=y
 
|wood=y
Line 71: Line 97:
 
|value=10
 
|value=10
 
}}
 
}}
 +
 
==Usage==
 
==Usage==
 
<pre>{{v50_furniture|name=Bed
 
<pre>{{v50_furniture|name=Bed
 +
|graphic=[[File:bed_sprite_prototype.png]]
 
|tile=Θ|col=6:0:0
 
|tile=Θ|col=6:0:0
 
|wood=y
 
|wood=y
Line 80: Line 108:
 
* [[Dormitory]]
 
* [[Dormitory]]
 
|value=10
 
|value=10
 +
|size=10
 +
|capacity=10
 
}}</pre>
 
}}</pre>
 
Adds <nowiki>[[Category:Furniture]]</nowiki> to the article.
 
Adds <nowiki>[[Category:Furniture]]</nowiki> to the article.
 
[[Category:Templates]]
 
[[Category:Templates]]
 
[[Category:Infobox templates]]</noinclude>
 
[[Category:Infobox templates]]</noinclude>

Revision as of 06:18, 21 February 2024

Bed
Bed sprite prototype.png
/ Θ
Construction
Materials Workshops Labors
Rooms
Base value | Size | Capacity

10☼ / 20 cm³ / 30 cm³

Bed
Bed sprite prototype.png
/ Θ
Construction
Materials Workshops Labors
Rooms
Bed
Bed sprite prototype.png
/ Θ
Construction
Materials Workshops Labors
Rooms
Base value | Size | Capacity

10☼

Usage

{{v50_furniture|name=Bed
|graphic=[[File:bed_sprite_prototype.png]]
|tile=Θ|col=6:0:0
|wood=y
|rooms=
* [[Bedroom]]
* [[Barracks]]
* [[Dormitory]]
|value=10
|size=10
|capacity=10
}}

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