Abrir menu principal

UESPWiki β

Utilizador:SarthesArai/Map/Doc

< Utilizador:SarthesArai‎ | Map

Summary

This template is for creating maps in Skyrim namespace. It is derived from Location map on wikipedia.

The labels are not actually created by this template,but rather by MapMarker. 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 Map and MapMarker is that any parameters that are shared by all of the templates must be set before calling Map, using MapSetup. In particular, to change the size of the image, use the following syntax:

{{MapSetup|width=400}}{{Map...}}

Parameters

SarthesArai/Map
Parâmetero Escopo Descrição
STANDARD PARAMETERS
1 or name optional Name of the region, if not equal to {{PAGENAME}}. Defaults to {{PAGENAME}}.
image optional Name of the image that should be displayed. Defaults to SR-map-{{{name}}}.jpg.
label optional Text to be displayed under the image. Defaults to {{{name}}}.
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 MapMarker; each call generates a separate perk marker and label. There is no limit to the number of times MapMarker can be called.
DEPRECATED PARAMETERS
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 256. 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 {{MapSetup|width=400}} before the template (see comments in Summary).

Examples

For a live example, see User:SarthesArai/MapExamples.

{{User:SarthesArai/MapSetup|width=256}}{{User:SarthesArai/Map
|name=Azura, my name is Azura and noone knows! :-P
|image=SR-map-Fellglow Keep Ritual Chamber.jpg
|label=Azura is my name
|caption=Test - [[:Image:SR-map-Fellglow Keep Ritual Chamber.jpg|SR-map-Fellglow Keep Ritual Chamber.jpg]]
|perks=
{{Image Mark|5000|5000|mark=User-SarthesArai-Grid.png|mark_width=275|position=on}} 
{{User:SarthesArai/MapMarker|940|350|doorext|Skyrim|}} 
{{User:SarthesArai/MapMarker|640|710|doorint|Alftand Glacial Ruins|}} 
{{User:SarthesArai/MapMarker|240|260|forge||link_alt=Skyrim:With Friends Like These...}} 
{{User:SarthesArai/MapMarker|810|640|enchanter||}} 
{{User:SarthesArai/MapMarker|640|160|grindstone||}} 
{{User:SarthesArai/MapMarker|640|320|cooking pot||}} 
{{User:SarthesArai/MapMarker|470|290|vein|Daedric|}} 
{{User:SarthesArai/MapMarker|050|730|treas|Cat|}} 
{{User:SarthesArai/MapMarker|500|870|npc|Helena|link_alt=User:Helenaannevalentine}} 

}}