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



YumeWiki
3,033Articles

Template:LocationMap: Difference between revisions

(Created page with "<includeonly> {{#if:{{{1|}}}|{{#subobject: |Is map in location = {{NAMESPACE}}:{{PAGENAME}} |Is map part of game = {{NAMESPACE}} |Location Map/Image = File:{{{1}}} |Location M...")
 
(gave input fields temp names)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#if:{{{1|}}}|{{#subobject:
{{#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:{{{1}}}
|Location Map/Image = File:{{{FileName}}}
|Location Map/Caption = {{{2|}}}
|Location Map/Caption = {{{Caption|}}}
|Has image path = {{filepath:{{{1}}}}}
|Has image path = {{filepath:{{{FileName}}}}}
}}[[File:{{{1}}}|thumb|{{{3|275px}}}|right|{{{2}}}]]|Please specify a file name for this map.}}
}}[[File:{{{FileName}}}|thumb|{{{3|275px}}}|right|{{{Caption}}}]]|Please specify a file name for this map.}}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 22:47, 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.

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
}}

Please specify a file name for this map.




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