https://heald.nga.gov/mediawiki/index.php?title=Template:Coord/sub_doc&feed=atom&action=historyTemplate:Coord/sub doc - Revision history2024-03-28T12:18:38ZRevision history for this page on the wikiMediaWiki 1.35.2https://heald.nga.gov/mediawiki/index.php?title=Template:Coord/sub_doc&diff=2745&oldid=prevEmily Pugh: 1 revision2013-09-10T20:39:12Z<p>1 revision</p>
<p><b>New page</b></p><div>The following templates are "subroutines" of {{tl|Coord}}. Separating them out drastically reduces the pre-expand size of {{tl|Coord}}. They shouldn't be invoked directly.<br />
{|<br />
|-<br />
! name<br />
! function<br />
|-<br />
| {{tl|Coord/display/inline}}<br />
| displays coordinates inline<br />
|-<br />
| {{tl|Coord/display/inline,title}}<br />
| displays coordinates inline and above the article<br />
|-<br />
| {{tl|Coord/display/title}}<br />
| displays coordinates above the article (generally to the right of the article's title)<br />
|-<br />
| {{tl|Coord/link}}<br />
| generates microformats and link to [[tswiki:GeoHack|GeoHack]]<br />
|-<br />
| {{tl|Coord/input/dec}}<br />
| reads coordinates in decimal degrees <nowiki>{{coord|12|-12}}</nowiki><br />
|-<br />
| {{tl|Coord/input/d}}<br />
| reads coordinates in decimal degrees with directional letters <nowiki>{{coord|12|N|12|W}}</nowiki><br />
|-<br />
| {{tl|Coord/input/dm}}<br />
| reads coordinates in degrees/minutes format <nowiki>{{coord|12|12|N|12|12|W}}</nowiki><br />
|-<br />
| {{tl|Coord/input/dms}}<br />
| reads coordinates in degrees/minutes/seconds format <nowiki>{{coord|12|12|12|N|12|12|12|W}}</nowiki><br />
|-<br />
| {{tl|Coord/input/ERROR}}<br />
| generates error message if the inputs do not match any of the above formats<br />
|-<br />
| {{tl|Coord/input/error2}}<br />
| generates error message for range checks and such<br />
|-<br />
| {{tl|Coord/input/nolat}}<br />
| generates error message for missing latitude<br />
|-<br />
| {{tl|Coord/negzeropad}}<br />
| pads a positive number with trailing zeroes until it matches the precision of a negative number<br />
|-<br />
| {{tl|Coord/prec dec}}<br />
| selects a format for converting decimal degrees, based on the precision of the inputs<br />
|}<br />
<noinclude>[[ar:Template:Coord/sub doc]]<br />
[[bn:টেমপ্লেট:Coord/display/inline,title]] <br />
[[cy:Nodyn:Coord/sub doc]]<br />
[[ur:سانچہ:Coord/display/inline,title]]<br />
</noinclude></div>Emily Pughhttps://heald.nga.gov/mediawiki/index.php?title=Template:Coord/sub_doc&diff=1345&oldid=prevEmily Pugh: 1 revision2012-04-18T18:05:15Z<p>1 revision</p>
<p><b>New page</b></p><div>The following templates are "subroutines" of {{tl|Coord}}. Separating them out drastically reduces the pre-expand size of {{tl|Coord}}. They shouldn't be invoked directly.<br />
{|<br />
|-<br />
! name<br />
! function<br />
|-<br />
| {{tl|Coord/display/inline}}<br />
| displays coordinates inline<br />
|-<br />
| {{tl|Coord/display/inline,title}}<br />
| displays coordinates inline and above the article<br />
|-<br />
| {{tl|Coord/display/title}}<br />
| displays coordinates above the article (generally to the right of the article's title)<br />
|-<br />
| {{tl|Coord/link}}<br />
| generates microformats and link to [[tswiki:GeoHack|GeoHack]]<br />
|-<br />
| {{tl|Coord/input/dec}}<br />
| reads coordinates in decimal degrees <nowiki>{{coord|12|-12}}</nowiki><br />
|-<br />
| {{tl|Coord/input/d}}<br />
| reads coordinates in decimal degrees with directional letters <nowiki>{{coord|12|N|12|W}}</nowiki><br />
|-<br />
| {{tl|Coord/input/dm}}<br />
| reads coordinates in degrees/minutes format <nowiki>{{coord|12|12|N|12|12|W}}</nowiki><br />
|-<br />
| {{tl|Coord/input/dms}}<br />
| reads coordinates in degrees/minutes/seconds format <nowiki>{{coord|12|12|12|N|12|12|12|W}}</nowiki><br />
|-<br />
| {{tl|Coord/input/ERROR}}<br />
| generates error message if the inputs do not match any of the above formats<br />
|-<br />
| {{tl|Coord/input/error2}}<br />
| generates error message for range checks and such<br />
|-<br />
| {{tl|Coord/input/nolat}}<br />
| generates error message for missing latitude<br />
|-<br />
| {{tl|Coord/negzeropad}}<br />
| pads a positive number with trailing zeroes until it matches the precision of a negative number<br />
|-<br />
| {{tl|Coord/prec dec}}<br />
| selects a format for converting decimal degrees, based on the precision of the inputs<br />
|}<br />
<noinclude>[[ar:Template:Coord/sub doc]]<br />
[[bn:টেমপ্লেট:Coord/display/inline,title]] <br />
[[cy:Nodyn:Coord/sub doc]]<br />
</noinclude></div>Emily Pugh