A Wiki in the Desert
Log in

Difference between revisions of "Template:Building/doc"

From A Wiki in the Desert
(Documentation page for new Building template)
 
m (Reformatted the example with HTML so the template is no longer added to the Buildings category)
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
== Template ==
 
== Template ==
 
<pre>
 
<pre>
{{Test
+
{{Building
 
| name        =  
 
| name        =  
 
| image        =  
 
| image        =  
Line 42: Line 42:
 
== Example ==
 
== Example ==
  
{{Building
+
<table class="infobox ib-building">
| name        = Carpentry Shop
+
  <tr>
| image        = carpentry_shop.png
+
      <th class="ibname">Carpentry Shop</th>
| location    = [[Compound]]
+
  </tr>
| size        = 16 × 14
+
  <tr>
| requirements  =  
+
      <td align="center" class="ibimage">[[File:carpentry_shop.png|250px|Carpentry Shop]]</td>
 +
  </tr>
 +
  <tr>
 +
      <th class="ibtype">(Building)</th>
 +
  </tr>
 +
  <tr class="ib-stacked">
 +
      <th>Location</th>
 +
  </tr>
 +
  <tr class="ib-stacked">
 +
      <td>[[Compound]]</td>
 +
  </tr>
 +
  <tr class="ib-stacked">
 +
      <th>Size</th>
 +
  </tr>
 +
  <tr class="ib-stacked">
 +
      <td>16 × 14</td>
 +
  </tr>
 +
  <tr class="ib-stacked">
 +
      <th>Requirements</th>
 +
  </tr>
 +
  <tr class="ib-stacked">
 +
      <td>
 
* [[Carpentry]]
 
* [[Carpentry]]
| material1 = [[Slate]]
+
      </td>
| qty1  = 8
+
  </tr>
| material2 = [[Rope]]
+
  <tr>
| qty2  = 2
+
      <td>
| material3 = [[Bricks]]
+
        <table class="ib-tabulated">
| qty3  = 36
+
            <tr>
| material4 = [[Board]]
+
              <th colspan="2" class="ibtype">Cost to Build</th>
| qty4  = 60
+
            </tr>
}}
+
            <tr>
 +
              <td class="ib-tabulated-left">[[Board]]</td>
 +
              <td class="ib-tabulated-right">60</td>
 +
            </tr>
 +
            <tr>
 +
              <td class="ib-tabulated-left">[[Bricks]]</td>
 +
              <td class="ib-tabulated-right">36</td>
 +
            </tr>
 +
            <tr>
 +
              <td class="ib-tabulated-left">[[Slate]]</td>
 +
              <td class="ib-tabulated-right">8</td>
 +
            </tr>
 +
            <tr>
 +
              <td class="ib-tabulated-left">[[Rope]]</td>
 +
              <td class="ib-tabulated-right">2</td>
 +
            </tr>
 +
        </table>
 +
      </td>
 +
  </tr>
 +
</table>
  
 
<pre>{{Building
 
<pre>{{Building

Latest revision as of 09:15, 29 November 2018

{{Building}} is for use in any article about an in-game "building". All parameters are optional and can be left blank, though it is preferred to include as many as possible; if undefined, these optional parameters will not appear as part of the template. The recommended image size is a width of 250px so that it will completely fill the infobox without increasing its size.

Template

{{Building
| name         = 
| image        = 
| location     = 
| size         = 
| requirements = 

| material1    = 
| qty1         = 

| material2    = 
| qty2         = 

...

}}

Usage

name
The name of the resource.
image (optional)
File name of an image for the resource. Should generally be a clean screenshot of the resource as it appears when dropped on the ground from a character's inventory. The recommended size is 250px but, if larger, the image should scale to fit the template.
location (optional)
The location or locations where the building can be constructed such as Compound, Outside, Small Construction Site, Medium Construction Site, etc.
size (optional)
The dimensions of the building when constructed inside a Compound.
requirements (optional)
A list of any skills or technologies required to construct a building.

Cost to Build Data

materialn
The name of the material required to construct the building. Each material required to construct the building should list a material parameter and corresponding qty parameter. Increment n for each such material and cost.
qtyn
The amount of material required to construct the building. Each material required to construct the building should list a material parameter and corresponding qty parameter. Increment n for each such material and cost.

Example

Carpentry Shop
Carpentry Shop
(Building)
Location
Compound
Size
16 × 14
Requirements
Cost to Build
Board 60
Bricks 36
Slate 8
Rope 2
{{Building
| name         = Carpentry Shop
| image        = carpentry_shop.png
| location     = [[Compound]]
| size         = 16 × 14
| requirements  = 
* [[Carpentry]]
| material1 = [[Slate]]
| qty1  = 8
| material2 = [[Rope]]
| qty2  = 2
| material3 = [[Bricks]]
| qty3  = 36
| material4 = [[Board]]
| qty4  = 60
}}