Open main menu

UESPWiki β

Template:Perk Tree

(Redirected from Template:Map Markers)

SummaryEdit

This template is for creating images of Skyrim perk trees, with superimposed labels for the individual perk names. It is derived from Location map on wikipedia.

The labels are not actually created by this template,but rather by Image Mark. This template is necessary, however, to create a "fake" thumbnail image so that the label markup can be inserted inside the thumbnail's <div>...</div>.

One peculiarity of the interaction between Perk Tree and Image Mark is that any parameters that are shared by all of the templates must be set before calling Perk Tree, using Perk Tree Setup. In particular, to change the size of the image, use the following syntax:

{{Perk Tree Setup|width=400}}{{Perk Tree...}}

Other settings that apply to all of the Image Mark calls can be set the same way, e.g., {{Perk Tree Setup|background=#CCCCCC|mark_size=44}}.

ParametersEdit

Perk Tree
Parameter Scope Description
STANDARD PARAMETERS
1 or image optional Name of the image that should be displayed. Defaults to SR-perktree-{{PAGENAME}}.jpg.
label optional Text to be displayed under the image. Defaults to {{PAGENAME}} Perk Tree.
float optional Specifies the position of the image on the page. Valid values are left, right, center and none. The default is left.
alt optional Alt text for image. Defaults to label.
perks optional The perks to be superimposed on the image. Although technically optional, if perks isn't being set, you probably don't want to be using this template. Perks should be the output of one or more calls to Template:Image Mark; each call generates a separate perk marker and label. There is no limit to the number of times Image Mark can be called.
DEPRECATED PARAMETERS
border optional Specifies the color of the 1px image border. The default is lightgrey. If set to none, no border will be generated. This parameter is seldom used.
caption optional Basically an obsolete parameter in this version of the template. In the original wikipedia template, leaving caption empty would create a non-thumbnail image. However, in Perk Tree the caption is never empty.
width optional Determines the width of the map in pixels. The default is 240. Do not include px. This parameter should never be set in the Perk Tree call. Instead, it should be set by using a call such as {{Perk Tree Setup|width=400}} before the template (see comments in Summary).

ExamplesEdit

For a live example, see Skyrim:Block.

{{Perk Tree Setup|width=400|background=#EE8866|mark_width=12|mark_color=White}}{{Perk Tree
|float=left
|perks=
{{Image Mark|x=565|y=865|label=Shield Wall|mark_alt=Shield Wall (5 ranks): 20 Block|position=bottom}}
{{Image Mark|x=175|y=670|label=Deflect Arrows|mark_alt=Deflect Arrows: 30 Block|position=bottom}}
{{Image Mark|x=265|y=340|label=Riposte|position=bottom}}
{{Image Mark|x=465|y=240|label=Elemental Protection|position=left}}
}}