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
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{#if:{{Data|{{PAGENAME}}|temporary|}}|{{#ifeq:{{Data|{{PAGENAME}}|temporary|}}|true|
 
<includeonly>{{#if:{{Data|{{PAGENAME}}|temporary|}}|{{#ifeq:{{Data|{{PAGENAME}}|temporary|}}|true|
 
  <tr valign="top">
 
  <tr valign="top">
   <td align="center" colspan="2">{{Temp}}[[Category:Temporary buildings]]</td>
+
   <td align="center" colspan="2">{{Temp}} [[Temporary buildings|Temporary]][[Category:Temporary buildings]]</td>
 
  </tr>
 
  </tr>
 
}}}}
 
}}}}
 
{{#if:{{Data|{{PAGENAME}}|upgradable|}}|{{#ifeq:{{Data|{{PAGENAME}}|upgradable|}}|true|
 
{{#if:{{Data|{{PAGENAME}}|upgradable|}}|{{#ifeq:{{Data|{{PAGENAME}}|upgradable|}}|true|
 
  <tr valign="top">
 
  <tr valign="top">
   <td align="center" colspan="2">{{MetaIcon|Upgradable}}[[Category:Upgradable buildings]]</td>
+
   <td align="center" colspan="2">{{MetaInline|Building upgrades|displayname=Upgradable}}[[Category:Upgradable buildings]]</td>
 
  </tr>
 
  </tr>
 
}}}}
 
}}}}
 
{{MetaInfobox/Category}}
 
{{MetaInfobox/Category}}
{{#if:{{Data|{{PAGENAME}}|blueprint|}}|
+
{{#if:{{Data|{{PAGENAME}}|blueprint|}}|{{#ifeq:{{Data|{{PAGENAME}}|blueprint|}}|false|[[Category:Non-blueprint buildings]]|
 
  <tr valign="top">
 
  <tr valign="top">
 
   <td style="white-space: nowrap; font-weight: bold;">{{MetaIcon|Blueprints}} Blueprint</td>
 
   <td style="white-space: nowrap; font-weight: bold;">{{MetaIcon|Blueprints}} Blueprint</td>
 
   <td>{{MetaIcon|Construction Blueprint ({{Data|{{PAGENAME}}|blueprint|none}})}} [[Construction Blueprint ({{Data|{{PAGENAME}}|blueprint|none}})|{{Data|{{PAGENAME}}|blueprint|none}}]][[Category:{{ucfirst:{{Data|{{PAGENAME}}|blueprint|none}}}} buildings]]</td>
 
   <td>{{MetaIcon|Construction Blueprint ({{Data|{{PAGENAME}}|blueprint|none}})}} [[Construction Blueprint ({{Data|{{PAGENAME}}|blueprint|none}})|{{Data|{{PAGENAME}}|blueprint|none}}]][[Category:{{ucfirst:{{Data|{{PAGENAME}}|blueprint|none}}}} buildings]]</td>
 
  </tr>
 
  </tr>
}}
+
}}}}
 
{{#if:{{Data|{{PAGENAME}}|parent|}}|
 
{{#if:{{Data|{{PAGENAME}}|parent|}}|
 
  <tr valign="top">
 
  <tr valign="top">
Line 22: Line 22:
 
  </tr>
 
  </tr>
 
}}
 
}}
{{#if:{{Data|{{PAGENAME}}|defence|}}|
+
{{#if:{{Data|{{PAGENAME}}|defence|}}|{{#ifeq:{{Data|{{PAGENAME}}|defence|}}|0||
 
  <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>{{DP}} {{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>

Latest revision as of 23:32, 27 October 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.