Template:Coords: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Created page with "<includeonly>( X:{{{1}}} Y:{{{2}}} )</includeonly><noinclude> Usage: {{code|<nowiki>{{coords|25|-10}}</nowiki>}} Result: {{coords|25|-10}} </noinclude>")
 
(Undo revision 232611 by Hawkeye (talk))
Tag: Undo
 
(14 intermediate revisions by 5 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).
 
This template accepts three parameters. In order, the X coordinate, the Y coordinate, and (optionally) the map/location.
 
== Examples ==
{{Template demo
| <nowiki>{{Coords|25|-10}}</nowiki>
| <nowiki>{{Coords|25|-10|Ravaged Beach}}</nowiki>
}}
 
== Template data ==
<templatedata>
{
"params": {
"1": {
"description": "An X coordinate, as seen on the Minimap.",
"example": "-312",
            "type": "number",
"required": true
},
"2": {
"description": "A Y coordinate, as seen on the minimap.",
"example": "750",
            "type": "number",
"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>
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 23:27, 25 September 2024

An example of a minimap. The coordinates X: -456 Y: -22 can be seen near the bottom.

The 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).

This template accepts three parameters. In order, the X coordinate, the Y coordinate, and (optionally) the map/location.

Examples

Markup Renders as
{{Coords|25|-10}}
X: 25 Y: -10
{{Coords|25|-10|Ravaged Beach}}
Ravaged BeachX: 25 Y: -10

Template data

Formats a pair of X, Y coords and an optional Location.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

An X coordinate, as seen on the Minimap.

Example
-312
Numberrequired
22

A Y coordinate, as seen on the minimap.

Example
750
Numberrequired
33

The name of a Location

Example
Ravaged Beach
Page nameoptional