×
Create a new article
Write your page title here:
We currently have 3,036 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
3,036Articles

Template:LocationMap: Difference between revisions

mNo edit summary
m (format)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#if: {{{filename|}}} |
{{#if:{{{filename|}}}|{{#subobject:
{{#set: Has location map = File:{{{filename}}};{{{caption|}}};{{filepath:{{{filename}}}}}}}<!---->[[File:{{{filename}}}|thumb|{{{customsize|275px}}}|right|{{{caption}}}]]
|Is map in location = {{NAMESPACE}}:{{PAGENAME}}
|Please specify a file name for this map.
|Is map part of game = {{NAMESPACE}}
}}</includeonly><noinclude>
|Location Map/Image = File:{{{filename}}}
|Location Map/Caption = {{{caption|}}}
|Has image path = {{filepath:{{{filename}}}}}
}}[[File:{{{filename}}}|thumb|{{{customsize|275px}}}|right|{{{caption}}}]]|Please specify a file name for this map.}}
</includeonly>
<noinclude>
{{Documentation}}
{{Documentation}}
[[Category:Location templates]]
</noinclude>
</noinclude>

Latest revision as of 05:08, 20 June 2024

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.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Filenamefilename

The map's file name, inclusive of file type.

Example
Example.png
Stringrequired
Captioncaption

A caption describing the map.

Stringsuggested
Custom sizecustomsize

A custom size for displaying the map, measured in pixels.

Default
270px
Example
20px
Stringoptional

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
}}
Annotated map of the area



Visit Template:LocationMap/doc to edit this text! (How does this work?)