Template:Coords/doc: Difference between revisions
Jump to navigation
Jump to search
(badge template too (exploration etc)) |
No edit summary |
||
Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
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 current page's "Has coordinates" properties. | |||
==Examples== | ==Examples== | ||
Line 9: | Line 11: | ||
;<nowiki>{{coords|x=10.0|y=20.0|z=30.0}}</nowiki> | ;<nowiki>{{coords|x=10.0|y=20.0|z=30.0}}</nowiki> | ||
:{{coords|x=10.0|y=20.0|z=30.0}} | :{{coords|x=10.0|y=20.0|z=30.0}} | ||
;<nowiki>{{coords}}</nowiki> | |||
:output based on "Has coordinates" properties defined on the page | |||
<includeonly><!-- | <includeonly><!-- |
Revision as of 06:58, 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 current page's "Has coordinates" properties.
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