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
(few more images)
Line 32: Line 32:
 
  <tr valign="top">
 
  <tr valign="top">
 
   <td style="white-space: nowrap; font-weight: bold;">{{DP}} Defence[[Category:Defence buildings]]</td>
 
   <td style="white-space: nowrap; font-weight: bold;">{{DP}} Defence[[Category:Defence buildings]]</td>
   <td>{{Data|{{PAGENAME}}|defence|0}}</td>
+
   <td>{{DP}} {{Data|{{PAGENAME}}|defence|0}}</td>
 
  </tr>
 
  </tr>
 
}}
 
}}
 
  <tr valign="top">
 
  <tr valign="top">
 
   <td style="white-space: nowrap; font-weight: bold;">{{AP}} Action Points cost</td>
 
   <td style="white-space: nowrap; font-weight: bold;">{{AP}} Action Points cost</td>
   <td>{{Data|{{PAGENAME}}|ap|0}}</td>
+
   <td>{{AP}} {{Data|{{PAGENAME}}|ap|0}}</td>
 
  </tr>
 
  </tr>
 
  <tr valign="top">
 
  <tr valign="top">
Line 45: Line 45:
 
{{#ifexist:Category:Buildings unlocked by {{PAGENAME}}|
 
{{#ifexist:Category:Buildings unlocked by {{PAGENAME}}|
 
  <tr valign="top">
 
  <tr valign="top">
   <td style="white-space: nowrap; font-weight: bold;">Unlocks</td>
+
   <td style="white-space: nowrap; font-weight: bold;">[[Image:item_lock.gif|link=Category:Building Tree]] Unlocks</td>
   <td>[[:Category:Buildings unlocked by {{PAGENAME}}|See list]]</td>
+
   <td>[[Image:small_parent.gif|link=Category:Building Tree]] [[:Category:Buildings unlocked by {{PAGENAME}}|See list]]</td>
 
  </tr>
 
  </tr>
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>

Revision as of 16:43, 31 July 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.