Template:Coords: Difference between revisions

Jump to navigation Jump to search
m
remove a space
(Created page with "<includeonly>( X:{{{1}}} Y:{{{2}}} )</includeonly><noinclude> Usage: {{code|<nowiki>{{coords|25|-10}}</nowiki>}} Result: {{coords|25|-10}} </noinclude>")
 
m (remove a space)
Tags: Mobile edit Mobile web edit
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>(&nbsp;X:{{{1}}}&nbsp;Y:{{{2}}}&nbsp;)</includeonly><noinclude>
<includeonly><onlyinclude>{{#if: {{{3|}}} | [[{{{3}}}]] }}<span class="bg3wiki-coordinates">X:&nbsp;{{{1}}}&nbsp;Y:&nbsp;{{{2}}}</span></onlyinclude></includeonly><noinclude>__NOTOC__
Usage: {{code|<nowiki>{{coords|25|-10}}</nowiki>}}
[[File:Minimap Example.png|thumb|An example of a minimap. The coordinates {{coords|-456|-22}} can be seen near the bottom.]]


Result: {{coords|25|-10}}
The {{InfoBlob|Coords}} template is for generating a preformatted coordinates block for a character, item, point of interest, or anything else noteworthy. Coordinates can be found in-game at the bottom of the minimap (see example).
</noinclude>
 
This template accepts three parameters. In order, the X coordinate, the Y coordinate, and (optionally) the map/location.
 
<h2>Usage Example 1: Basic Coordinates</h2>
<pre><nowiki>{{Coords|25|-10}}</nowiki></pre>
 
Result:<br>{{coords|25|-10}}
 
<h2>Usage Example 2: Coordinates & Location</h2>
<pre><nowiki>{{Coords|25|-10|Ravaged Beach}}</nowiki></pre>
 
Result:<br>{{coords|25|-10|Ravaged Beach}}
 
[[Category:Templates]]
 
=== Template Data Documentation ===
<templatedata>
{
"params": {
"1": {
"description": "An X coordinate, as seen on the Minimap.",
"example": "-312",
"required": true
},
"2": {
"description": "A Y coordinate, as seen on the minimap.",
"example": "750",
"required": true
},
"3": {
"description": "The name of a Location",
"example": "Ravaged Beach",
"type": "wiki-page-name"
}
},
"description": "Formats a pair of X, Y coords and an optional Location.",
"paramOrder": [
"1",
"2",
"3"
],
"format": "inline"
}
</templatedata></noinclude>

Navigation menu