This site is not maintained anymore. Please move to MHWiki.org

Difference between revisions of "Template:MetaInfobox/Buildings"

From Die2Nite Wiki
Jump to: navigation, search
Line 18: Line 18:
 
{{#if:{{Data|{{PAGENAME}}|parent|}}|
 
{{#if:{{Data|{{PAGENAME}}|parent|}}|
 
  <tr valign="top">
 
  <tr valign="top">
   <td style="white-space: nowrap; font-weight: bold;">[[Image:small_parent.gif|link=Category:Building Tree]] Parent building</td>
+
   <td style="white-space: nowrap; font-weight: bold;">{{Parent}} Parent building</td>
 
   <td>{{MetaInline|{{Data|{{PAGENAME}}|parent|none}}}}[[Category:Buildings unlocked by {{Data|{{PAGENAME}}|parent|none}}]]</td>
 
   <td>{{MetaInline|{{Data|{{PAGENAME}}|parent|none}}}}[[Category:Buildings unlocked by {{Data|{{PAGENAME}}|parent|none}}]]</td>
 
  </tr>
 
  </tr>
Line 33: Line 33:
 
  </tr>
 
  </tr>
 
  <tr valign="top">
 
  <tr valign="top">
   <td style="white-space: nowrap; font-weight: bold;">[[Image:tag_2.gif|link=Resources]] Resource cost</td>
+
   <td style="white-space: nowrap; font-weight: bold;">{{Res}} Resource cost</td>
 
   <td>{{DataResourceLoop|{{PAGENAME}}|{{Data|{{PAGENAME}}|resources|0}}}}</td>
 
   <td>{{DataResourceLoop|{{PAGENAME}}|{{Data|{{PAGENAME}}|resources|0}}}}</td>
 
  </tr>
 
  </tr>

Revision as of 10:01, 8 August 2011

[v·e] 1079 Gallows R dhang.gif
A cracking gallows for hanging undesirable types when you'd rather go a little further than just banishing them from the community... True craftsmanship is what your're looking at here - this gallows isn't going anywhere.
Small warning.gif Temporary
Small city up.gifSmall city up.gifBuilding upgrades Upgradable
Category Buildings
Sub Category Workshop
Item bplan u.gifItem bplan u.gifBlueprints Blueprint Item bplan c.gifItem bplan c.gifConstruction Blueprint (common) common
Small parent.gif Parent building Small refine.gifSmall refine.gifWorkshop Workshop
Small def.gif Defence Small def.gif 9000
Small pa.gif Action Points cost Small pa.gif 13
Tag 2.gif Resource cost Item wood beam.gifItem wood beam.gifPatchwork Beam×1 Item chain.gifItem chain.gifRusty Chain×1

This template is a component of Template:MetaInfobox used automatically when the category is set to buildings. The examples on this page focus on using MetaInfobox on Building pages this template should not be used directly. To add meta data to a page first add metainfobox to the page with the following:

{{MetaInfobox}}

There should now be an infobox stub on the right of the page. Click the small 'c' to create the meta data, this will preload the correct data page with an outline for the basic data. Fill in the basics, you will then need to fill in extra fields depending on the category. For buildings see Data:MetaInfobox/Buildings for examples of the extra fields that are displayed on this page in the infobox example on the right.