FANDOM




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

TO EDIT THE NEW VARIABLE, CLICK HERE


Usage
{{decorationbox | {{PAGENAME}} }}
{{decorationbox | name = lamp}} *

*Decorations with multiple names (i.e. Happy Tree) must be entered as shown below.

Example
{{decorationbox | name = happytree}}

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

Template: Decoration Variable

Purpose

This template acts as a database for storage of decoration 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 decoration information to the current list.

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

NON - LIMITED DECORATIONS > LIMITED DECORATIONS > FLAG DECORATIONS > OBSTACLES DECORATIONS > REWARD DECORATIONS

Explaination of Template

Description
This template will return the value of various decoration info.
If a decoration'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
{{db|decoration's name|variable}} or
{{Decoration Variable|decoration'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 decorationbox template.

The Variables

Parameter Info
Variable Example Code Result
Display Name disp_name {{db|aquamarinependant|disp_name}} Aquamarine Pendant
Description desc {{db|aquamarinependant|desc}} Cut to prevent table breakage.
Level level {{db|aquamarinependant|level}} 13
Buy buy {{db|aquamarinependant|buy}} 31,000
Sell sell {{db|aquamarinependant|sell}} 15,500
Placement XP placement {{db|aquamarinependant|placement}} 15,500
Size size {{db|aquamarinependant|size}} 2 X 2
Element element {{db|aquamarinependant|element}} Gemstone
Other information
Variable Example Code Result
image {{db|aquamarinependant|image}} AquamarinePendant
type1 {{db|aquamarinependant|type1}} Coin
type2 {{db|aquamarinependant|type2}} Coin
limited {{db|aquamarinependant|limited}} Yes


Example of use

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

Simple Use:

{{Decorationbox | name = aquamarinependant}}

Complex Use:

{{Decorationbox
 |name        = aquamarinependant
 |disp_name   = Aquamarine Pendant
 |level       = 13
 |buy         = 31,000
 |sell        = 15,500
 |placement   = 15,500
 |size        = 2 X 2
 |element     = Gemstone
|image       = [[File:AquamarinePendant.png|center|x175px]]
{{DecorationSwitch1}}
|type1       = coin
|type2       = coin
|limited     = Expired
}}

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 decoration 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 Decoration Names

  • Capitals don't matter.
{{db|LaMP|disp_name}} = Lamp
  • In a few cases, common nicknames have been added for ease.
{{db|StonePath|disp_name}} = Stone Path
  • This template only processes the first word of the input decoration's name. This allows {{PAGENAME}} to be used on any pages that begin with the decoration's name. Decorations such as Aquamarine Pendant must be listed as aquamarinependant, Pillar of Prophecy as pillarofprophecy, and 2nd Anniversary Statue as 2ndanniversarystatue and so on.



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