Oh0kaYthen86 (talk | contribs) (gave input fields temp names) |
Oh0kaYthen86 (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#if:{{{ | {{#if:{{{filename|}}}|{{#subobject: | ||
|Is map in location = {{NAMESPACE}}:{{PAGENAME}} | |Is map in location = {{NAMESPACE}}:{{PAGENAME}} | ||
|Is map part of game = {{NAMESPACE}} | |Is map part of game = {{NAMESPACE}} | ||
|Location Map/Image = File:{{{ | |Location Map/Image = File:{{{filename}}} | ||
|Location Map/Caption = {{{ | |Location Map/Caption = {{{caption|}}} | ||
|Has image path = {{filepath:{{{ | |Has image path = {{filepath:{{{filename}}}}} | ||
}}[[File:{{{ | }}[[File:{{{filename}}}|thumb|{{{customsize|275px}}}|right|{{{caption}}}]]|Please specify a file name for this map.}} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 22:52, 29 November 2022
Documentation (for the above template, sometimes hidden or invisible)
Description
This template is used to display individual map(s) of a world/area on its article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Filename | filename | The map's file name, inclusive of file type.
| String | required |
Caption | caption | A caption describing the map. | String | suggested |
Custom size | customsize | A custom size for displaying the map, measured in pixels.
| String | optional |
Syntax
{{LocationMap | filename = [e.g. "Example.png"] | caption = | customsize = [e.g. 20px, 270px if left blank] }}
Note: most maps should use both filename and caption. customsize is optional.
Sample
{{LocationMap | filename = Forestpier mapwork.png | caption = Annotated map of the area | customsize = 200px }}
Visit Template:LocationMap/doc to edit this text! (How does this work?)