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 4: Line 4:
 
  </tr>
 
  </tr>
 
}}}}
 
}}}}
  {{Item/row|label=Category|field={{{category|?}}}}}
+
{{#if:{{Data|{{PAGENAME}}|upgradable|}}|{{#ifeq:{{Data|{{PAGENAME}}|upgradable|}}|true|
{{Item/row|label=Defense {{VP}}|field={{{defense|-}}}}}
+
  <tr valign="top">
{{Item/row|label=Action points {{AP}}|field={{{base_ap|?}}}}}
+
  <td align="left" colspan="2">{{MetaInline|Upgradable}}[[Category:Upgradable buildings]]</td>
{{Item/row|label=Buildings required|field={{{need_buildings|?}}}}}
+
</tr>
{{Item/row|label=Materials required|field={{{need_items|?}}}}}
+
}}}}
{{Item/row|label=Unlocks|field={{{opens|nothing}}}}}
+
<tr valign="top">
{{Item/row|label=Upgradable|field={{#if:{{{upgrades|}}}|yes<includeonly>[[Category:Upgradable buildings]]</includeonly>|no}}}}
+
<td style="white-space: nowrap; font-weight: bold;">Category</td>
 +
<td>[[:Category:{{Data|{{PAGENAME}}|category|Uncategorised}}|{{Data|{{PAGENAME}}|category|Uncategorised}}]]</td>
 +
</tr>
 +
<tr valign="top">
 +
<td style="white-space: nowrap; font-weight: bold;">{{ucfirst:Sub Category}}</td>
 +
<td>[[:Category:{{Data|{{PAGENAME}}|subcategory|Unknown subcategory}}|{{Data|{{PAGENAME}}|subcategory|Unknown subcategory}}]]</td>
 +
</tr>
 +
{{Item/row|label=Defense {{VP}}|field={{{defense|-}}}}}
 +
{{Item/row|label=Action points {{AP}}|field={{{base_ap|?}}}}}
 +
{{Item/row|label=Buildings required|field={{{need_buildings|?}}}}}
 +
{{Item/row|label=Materials required|field={{{need_items|?}}}}}
 +
{{Item/row|label=Unlocks|field={{{opens|nothing}}}}}

Revision as of 23:10, 9 May 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;">Defense Item shield.gif</td>
<td>-</td>

</tr>

<tr valign="top">

<td style="white-space: nowrap; font-weight: bold;">Action points Small pa.gif</td>
<td>?</td>

</tr>

<tr valign="top">

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

</tr>

<tr valign="top">

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

</tr>

<tr valign="top">

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

</tr>