Template:Coords: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Konoko
(+cat +desc)
imported>Sekoia
(updating to use {{nobr}}. also trying to add support for x=|y=|z=; also updating documentation some)
Line 1: Line 1:
({{{1}}},&nbsp;{{{2}}},&nbsp;{{{3}}})<noinclude>[[Category:Standardized Text Templates]] {{tl|coords}} uses non breaking spaces (&amp;nbsp;)to join all three parameters preventing them from being separated if they get close to the end of a line.</noinclude>
{{nobr|({{{x|{{{1}}}}}}, {{{y|{{{2}}}}}}, {{{z|{{{3}}}}}})}}<noinclude>
==Overview==
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.
 
==Examples==
;<nowiki>{{coords|10.0|20.0|30.0}}</nowiki>
:{{coords|10.0|20.0|30.0}}
 
;<nowiki>{{coords|x=10.0|y=20.0|z=30.0}}</nowiki>
:{{coords|x=10.0|y=20.0|z=30.0}}
 
[[Category:Standardized Text Templates]]</noinclude>

Revision as of 09:47, 5 August 2007

({{{1}}}, {{{2}}}, {{{3}}})

Overview

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.

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)