This site is not maintained anymore. Please move to MHWiki.org
Difference between revisions of "Template:MetaInfobox/Buildings"
From Die2Nite Wiki
(Undo revision 15546 by Discordance (talk)) |
|||
| (4 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
{{#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">{{ | + | <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
| Gallows |
|
| 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. | |
| Category | Buildings |
| Sub Category | Workshop |
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.