FANDOM



The Island Variable Is Part of the Building Variable



THIS PAGE IS FOR ARTICLE PAGES ONLY
THIS IS NOT FOR PROFILE USAGE


Usage
{{buildingbox | {{PAGENAME}} }}
{{buildingbox | name = fireshrine}} *

*Buildings with multiple names (i.e. Water Shrine) must be entered as shown below.

Example
{{buildingbox | name = watershrine}}

Template documentation (for the above template, sometimes hidden or invisible)


Template: Building Variable


Island Variables Are Included With The Building Variables


Purpose

This template acts as a database for storage of building information. All the information can be seen by going to Edit and scrolling down the list. Use the Find tool (CTRL+V) for easier navigation.

There is a blank template in the edit source for adding new building information to the current list.

This Master Building List uses the following method for listing all decorations.

SHRINES > BOOSTS > TREAT FARMS > OTHER BUILDINGS

Explaination of Template

Description
This template will return the value of various building info.
If a building's info is updated here, all pages that use this template will automatically be updated, making it easy to keep multiple pages accurate and up-to-date.
Syntax
{{bv|building's name|variable}} or
{{Building Variable|building's name|variable}}
(The output will be the variable's value.)
Note
All of the following code samples may be used on any page to display the desired information, it is not restricted to just the buildingbox template.

The Variables

Parameter Info
Variable Example Code Result
Display Name disp_name {{bv|fountainofyouth|disp_name}} Fountain of Youth
Description desc {{bv|fountainofyouth|desc}} Cut to prevent table breakage.
Level level {{bv|fountainofyouth|level}} 12
Buy buy {{bv|fountainofyouth|buy}} 250,000
Sell sell {{bv|fountainofyouth|sell}} 125,000
Placement XP placement {{bv|fountainofyouth|placement}} 125,000
Size size {{bv|fountainofyouth|size}} 4 X 4
Other information
Variable Example Code Result
image {{bv|fountainofyouth|image}} FountainOfYouth
type1 {{bv|fountainofyouth|type1}} Coin
type2 {{bv|fountainofyouth|type2}} Coin


Example of use

Here are examples of it being used inside the buildingbox template.

Simple Use:

{{Buildingbox | name = fountainofyouth}}

Complex Use:

{{Buildingbox
  | name                  = fountainofyouth
  | disp_name             = Fountain of Youth
  | level                 = 12
  | buy                   = 250,000
  | sell                  = 125,000
  | placement             = 125,000
  | size                  = 4 X 4
  | buildtime             = 4 H
  | dmax                  = 1
|image                    = [[File:FountainOfYouth.png|center|x175px]]
{{BuildingSwitch1}}
|upgrade1                 = 
|upgrade2                 = 
|type1                    = Coin
|type2                    = Coin
  }}

Important Both examples would result in the same format, the Simple Use method would provide all information pulled from this page, while the Complex Use method would display the information designated and fill in any blanks with the information on this page.

Update The Complex Use method is ideal for new building pages that have not been fully added to the master list, on this page. Once all the information is added here, the page may be edited to only use the Simple Use method in order to keep the source code small and cleaner.


Multiple Building Names

  • Capitals don't matter.
{{bv|MeTaLSHrInE|disp_name}} = Metal Shrine
  • In a few cases, common nicknames have been added for ease.
{{bv|AirShrine|disp_name}} = Air Shrine


  • This template only processes the first word of the input building's name. This allows {{PAGENAME}} to be used on any pages that begin with the building's name. Buildings such as Breeding Cave must be listed as "breedingcave", Fountain of Youth as "fountainofyouth", and Water Shrine as "watershrine" and so on.



Template:Building Variable/doc|Buildings Template:Island Variable/doc|Islands </tabview> -->

Community content is available under CC-BY-SA unless otherwise noted.