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

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m
(Add optional key2 and key3 parameters as all buildings but the trade depot have a two-key shortcut. Shouldn't break the other versions.)
Line 1: Line 1:
 
<includeonly>{{infostart|{{{name}}}}}
 
<includeonly>{{infostart|{{{name}}}}}
{{infocell|{{key|b}}-{{key|{{{key}}}}}|style=text-align:center}}
+
{{infocell|{{key|b}}-{{key|{{{key}}}}}{{#if:{{{key2|}}}|-{{key|{{{key2}}}}}{{#if:{{{key3|}}}|-{{key|{{{key3}}}}}}}}}|style=text-align:center}}
 
{{infocell|{{Building/picture|name={{{name}}}}}}}
 
{{infocell|{{Building/picture|name={{{name}}}}}}}
 
{{#if:{{{job|}}}|{{infoheader|Job Requirement}}
 
{{#if:{{{job|}}}|{{infoheader|Job Requirement}}
Line 22: Line 22:
  
 
<pre><nowiki>
 
<pre><nowiki>
{{Building|name=Kennel|key=k
+
{{Building|name=Vermin Catcher's Shop|key=o|key2=f|key3=v
|job=
+
|job=  
[[Animal training]]
+
1 of
 +
* [[Animal training]]
 +
* [[Trapping]]
 
|construction=
 
|construction=
 +
* [[Building material]] (non-[[economic]])
 +
|construction_job=
 
1 of
 
1 of
* [[Block]]
 
* [[Stone]]
 
* [[Wood]]
 
|construction_job=
 
1 of:
 
 
* [[Animal training]]
 
* [[Animal training]]
 
* [[Small animal dissection]]
 
* [[Small animal dissection]]
 
* [[Trapping]]
 
* [[Trapping]]
 
|purpose=
 
|purpose=
* Train [[Hunting dog]]s
 
* Train [[War dog]]s
 
 
* Capture [[Vermin]]
 
* Capture [[Vermin]]
 
* [[Tame]] [[Vermin]]
 
* [[Tame]] [[Vermin]]
* [[Tame]] [[cage]]d wild creatures
 
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>

Revision as of 20:56, 30 December 2022


Usage

This automatically includes the page in Category:Buildings.

{{Building|name=Vermin Catcher's Shop|key=o|key2=f|key3=v
|job= 
1 of
* [[Animal training]]
* [[Trapping]]
|construction=
* [[Building material]] (non-[[economic]])
|construction_job=
1 of
* [[Animal training]]
* [[Small animal dissection]]
* [[Trapping]]
|purpose=
* Capture [[Vermin]]
* [[Tame]] [[Vermin]]
}}