Template:Location Card/doc

From CrossCode Wiki
Jump to navigation Jump to search
File:Template-info.svg Template Documentation

This template is for use at the top of every location article to provide basic stats and info, as well as a location navbox.

Usage

Here is the basic code for the template which can be copied into the editor:

{{Location Card
| name =
| color = {{Loc color|???}}
| image = File:???.png
| description = 
| room_count =
| trader_count =
| quest_count =
| treasure_default =
| treasure_bronze =
| treasure_silver =
| treasure_gold =
| treasure_key =
| treasure_masterkey =
}}

Below is the code for the location card seen on this page:

{{Location Card
| name = Name Goes Here
| color = {{Loc color|orange}}
| image = File:Autumn's Rise.png
| description = Description goes here.
| room_count = 16
| trader_count = 10
| quest_count = 
| treasure_default = 4
| treasure_bronze = 7
| treasure_silver = 0
| treasure_gold = 2
}}

TemplateData

Do not use named parameter for 1 ... x. The first Parameter will be automatically marked as 1, the second as 2 and so on.

Parameter Description Type Status
Name name

Name of the location

Default:
NULL
Example:
no example
String Required
Color color

value of the background color for the header. Can be done using either {{Loc color}} or HTML syntax.

Default:
NULL
Example:
#00FF00, {{Loc color|green}}
String Required
Image image

Filename of a representative image of the location.

Default:
NULL
Example:
File:Autumn's Rise.png
String Required
Description description

Description of the location shown on the in-game world map.

Default:
NULL
Example:
no example
String Required
Room count room_count

Number of rooms in the location.

Default:
???
Example:
no example
Number Recommended
Trader count trader_count

Number of traders in the location. Hidden if no value is assigned.

Default:
NULL
Example:
no example
Number Optional
Quest count quest_count

Number of quests that are started in the location. Hidden if no value is assigned.

Default:
NULL
Example:
no example
Number Optional
Normal chest count treasure_default

Number of regular chests in the location. Hidden if no value is assigned.

Default:
NULL
Example:
no example
Number Optional
Bronze chest count treasure_bronze

Number of bronze chests in the location. Hidden if no value is assigned.

Default:
NULL
Example:
no example
Number Optional
Silver chest count treasure_silver

Number of silver chests in the location. Hidden if no value is assigned.

Default:
NULL
Example:
no example
Number Optional
Gold chest count treasure_gold

Number of gold chests in the location. Hidden if no value is assigned.

Default:
NULL
Example:
no example
Number Optional
Key chest count treasure_key

Number of Key chests in the location. Hidden if no value is assigned.

Default:
NULL
Example:
no example
Number Optional
Master Key chest count treasure_masterkey

Number of Master Key chests in the location. Hidden if no value is assigned.

Default:
NULL
Example:
no example
Number Optional
Format:
Block

See Template:TemplateData and Template:TemplateData/entry for more information about the parameter list and DDNCode for more information about types and the DDN Notation

Test of raw TemplateData output:

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Name of the location

Stringrequired
Colorcolor

value of the background color for the header. Can be done using either <code>{{[[Template:Loc color|Loc color]]}}</code> or HTML syntax.

Example
<code>#00FF00</code>, <code>{{Loc color|green}}</code>
Stringrequired
Imageimage

Filename of a representative image of the location.

Example
File:Autumn's Rise.png
Stringrequired
Descriptiondescription

Description of the location shown on the in-game world map.

Stringrequired
Room countroom_count

Number of rooms in the location.

Default
???
Numbersuggested
Trader counttrader_count

Number of traders in the location. Hidden if no value is assigned.

Numberoptional
Quest countquest_count

Number of quests that are started in the location. Hidden if no value is assigned.

Numberoptional
Normal chest counttreasure_default

Number of regular chests in the location. Hidden if no value is assigned.

Numberoptional
Bronze chest counttreasure_bronze

Number of bronze chests in the location. Hidden if no value is assigned.

Numberoptional
Silver chest counttreasure_silver

Number of silver chests in the location. Hidden if no value is assigned.

Numberoptional
Gold chest counttreasure_gold

Number of gold chests in the location. Hidden if no value is assigned.

Numberoptional
Key chest counttreasure_key

Number of Key chests in the location. Hidden if no value is assigned.

Numberoptional
Master Key chest counttreasure_masterkey

Number of Master Key chests in the location. Hidden if no value is assigned.

Numberoptional