Template:Coords/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(page parameter) |
||
Line 4: | Line 4: | ||
This template uses {{tl|nobr}} to make sure that no line breaks occur in the middle of a [[coordinates]] string. It also puts the numbers in parentheses and separates them with commas. | This template uses {{tl|nobr}} to make sure that no line breaks occur in the middle of a [[coordinates]] string. It also puts the numbers in parentheses and separates them with commas. | ||
If no numbers are provided, the data is taken from the | If no numbers are provided, the data is taken from the "Has coordinates" properties of the same page, or the page given as the "page" parameter. | ||
==Examples== | ==Examples== | ||
Line 13: | Line 13: | ||
;<nowiki>{{coords}}</nowiki> | ;<nowiki>{{coords}}</nowiki> | ||
:output based on "Has coordinates" properties defined on the page | :output based on "Has coordinates" properties defined on the page | ||
;<nowiki>{{coords|page=Top Dog Badge}}</nowiki> | |||
:{{coords|page=Top Dog Badge}} | |||
<includeonly><!-- | <includeonly><!-- |
Revision as of 07:24, 18 May 2022
Usage
This template uses {{nobr}} to make sure that no line breaks occur in the middle of a coordinates string. It also puts the numbers in parentheses and separates them with commas.
If no numbers are provided, the data is taken from the "Has coordinates" properties of the same page, or the page given as the "page" parameter.
Examples
- {{coords|10.0|20.0|30.0}}
- (10.0, 20.0, 30.0)
- {{coords|x=10.0|y=20.0|z=30.0}}
- (10.0, 20.0, 30.0)
- {{coords}}
- output based on "Has coordinates" properties defined on the page
- {{coords|page=Top Dog Badge}}
- (131.0, 319.7, -319.5)