Template:Coords: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
m (remove a space)
Tags: Mobile edit Mobile web edit
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><span class="bg3wiki-coordinates>&nbsp;X:&nbsp;{{{1}}}&nbsp;Y:&nbsp;{{{2}}}</span></includeonly><noinclude>
<includeonly><onlyinclude>{{#if: {{{3|}}} | [[{{{3}}}]] }}<span class="bg3wiki-coordinates">X:&nbsp;{{{1}}}&nbsp;Y:&nbsp;{{{2}}}</span></onlyinclude></includeonly><noinclude>__NOTOC__
[[File:Minimap Example.png|thumb|An example of a minimap. The coordinates {{coords|-456|-22}} can be seen near the bottom.]]
[[File:Minimap Example.png|thumb|An example of a minimap. The coordinates {{coords|-456|-22}} can be seen near the bottom.]]


This template includes coordinates into a page. Coordinates can be found in-game at the bottom of the minimap. If you also want to include the [[Location]], consider using [[Template:Position]].
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).


Usage: {{code|<nowiki>{{coords|25|-10}}</nowiki>}}
This template accepts three parameters. In order, the X coordinate, the Y coordinate, and (optionally) the map/location.


Result: {{coords|25|-10}}
<h2>Usage Example 1: Basic Coordinates</h2>
</noinclude>
<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>

Latest revision as of 19:51, 21 October 2023

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.

Usage Example 1: Basic Coordinates

{{Coords|25|-10}}

Result:
X: 25 Y: -10

Usage Example 2: Coordinates & Location

{{Coords|25|-10|Ravaged Beach}}

Result:
Ravaged BeachX: 25 Y: -10

Template Data Documentation

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
Unknownrequired
22

A Y coordinate, as seen on the minimap.

Example
750
Unknownrequired
33

The name of a Location

Example
Ravaged Beach
Page nameoptional