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
(update the buildings sub template, everything should work now except resources)
Line 17: Line 17:
 
  <td>[[:Category:{{Data|{{PAGENAME}}|subcategory|Unknown subcategory}}|{{Data|{{PAGENAME}}|subcategory|Unknown subcategory}}]]</td>
 
  <td>[[:Category:{{Data|{{PAGENAME}}|subcategory|Unknown subcategory}}|{{Data|{{PAGENAME}}|subcategory|Unknown subcategory}}]]</td>
 
</tr>
 
</tr>
{{Item/row|label=Defense {{VP}}|field={{{defense|-}}}}}
+
{{#if:{{Data|{{PAGENAME}}|blueprint|}}|
{{Item/row|label=Action points {{AP}}|field={{{base_ap|?}}}}}
+
<tr valign="top">
{{Item/row|label=Buildings required|field={{{need_buildings|?}}}}}
+
  <td style="white-space: nowrap; font-weight: bold;">{{MetaIcon|Blueprints}}</td>
 +
  <td>{{MetaIcon|Construction Blueprint ({{Data|{{PAGENAME}}|blueprint|none}}}})[[Category:{{ucfirst:{{Data|{{PAGENAME}}|blueprint|none}}}} buildings]]</td>
 +
</tr>
 +
}}
 +
{{#if:{{Data|{{PAGENAME}}|parent|}}|
 +
<tr valign="top">
 +
  <td style="white-space: nowrap; font-weight: bold;">Parent building</td>
 +
  <td>{{MetaInline|{{Data|{{PAGENAME}}|parent|none}}}}[[Category:Buildings unlocked by {{Data|{{PAGENAME}}|parent|none}}]]</td>
 +
</tr>
 +
}}
 +
{{#if:{{Data|{{PAGENAME}}|defence|}}|
 +
<tr valign="top">
 +
  <td style="white-space: nowrap; font-weight: bold;">{{DP}}[[Category:Defence buildings]]</td>
 +
  <td>{{Data|{{PAGENAME}}|defence|0}}</td>
 +
</tr>
 +
}}
 +
<tr valign="top">
 +
  <td style="white-space: nowrap; font-weight: bold;">{{AP}}</td>
 +
  <td>{{Data|{{PAGENAME}}|ap|0}}</td>
 +
</tr>
 
{{Item/row|label=Materials required|field={{{need_items|?}}}}}
 
{{Item/row|label=Materials required|field={{{need_items|?}}}}}
{{Item/row|label=Unlocks|field={{{opens|nothing}}}}}
+
{{#ifexist:Category:Buildings unlocked by {{PAGENAME}}|
 +
<tr valign="top">
 +
  <td style="white-space: nowrap; font-weight: bold;">Unlocks</td>
 +
  <td>[[:Category:Buildings unlocked by {{PAGENAME}}|See list]]</td>
 +
</tr>
 +
}}

Revision as of 12:53, 28 July 2011

<tr valign="top">

 <td align="left" colspan="2">[[Image:Data:Temporary|top|link=Temporary]][[Image:Data:Temporary|top]]Temporary [[Temporary|Data:Temporary]]</td>
</tr>

<tr valign="top">

 <td align="left" colspan="2">Small city up.gifSmall city up.gifUpgradable Building upgrades</td>
</tr>

<tr valign="top">

<td style="white-space: nowrap; font-weight: bold;">Category</td>
<td>Buildings</td>

</tr> <tr valign="top">

<td style="white-space: nowrap; font-weight: bold;">Sub Category</td>
<td>Workshop</td>

</tr> <tr valign="top">

 <td style="white-space: nowrap; font-weight: bold;">Item bplan u.gifItem bplan u.gifBlueprints</td>
 <td>[[Image:Data:Construction Blueprint (common|top|link=Construction Blueprint (common]][[Image:Data:Construction Blueprint (common|top]]Construction Blueprint (common)</td>
</tr>

<tr valign="top">

 <td style="white-space: nowrap; font-weight: bold;">Parent building</td>
 <td>Small refine.gifSmall refine.gifWorkshop Workshop</td>
</tr>

<tr valign="top">

 <td style="white-space: nowrap; font-weight: bold;">Small def.gif</td>
 <td>9000</td>
</tr>
<tr valign="top">
 <td style="white-space: nowrap; font-weight: bold;">Small pa.gif</td>
 <td>13</td>
</tr>

<tr valign="top">

<td style="white-space: nowrap; font-weight: bold;">Materials required</td>
<td>?</td>

</tr>