Difference between revisions of "Template:Deg2DMS/doc"
imported>Tom.Reding m (3k) |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| Line 24: | Line 24: | ||
{{Math templates|conversion}} | {{Math templates|conversion}} | ||
| − | <includeonly>{{ | + | <includeonly>{{Sandbox other|| |
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Numerical conversion templates|{{PAGENAME}}]] | [[Category:Numerical conversion templates|{{PAGENAME}}]] | ||
[[Category:Convert-like templates|{{SUBPAGENAME}}]] | [[Category:Convert-like templates|{{SUBPAGENAME}}]] | ||
}}</includeonly> | }}</includeonly> | ||
Revision as of 23:12, 24 April 2020
| This is a documentation subpage for Template:Deg2DMS. It contains usage information, categories and other content that is not part of the original template page. |
| This template is used on approximately 3,200 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
Description
This template converts a positive decimal degree value to degrees° minutes' seconds'' format or to degrees° minutesm secondss format (the degree symbol ° is invariant between the two formats).
Usage
{{Deg2DMS|positive decimal degrees|p=precision|sup=ms}}.
Parameter p is optional and defaults to 3.
Parameter sup is optional and defaults to not-used, <blank>, or <null>, which produces the apostrophe-format for arcminutes and arcseconds, by default (1° 2′ 3″). It may be activated by "ms", or any text, to produce the m-s-format for arcminutes and arcseconds (1° 2m 3s).
For example:
{{Deg2DMS|266.416837|p=4}} returns 266° 25′ 0.6132″.
{{Deg2DMS|266.416837|p=4|sup= }} returns 266° 25′ 0.6132″.
{{Deg2DMS|266.416837|p=4|sup=ms}} returns 266° 25m 0.6132s.
{{Deg2DMS|266.416837|p=4|sup=no}} returns 266° 25m 0.6132s.
{{Deg2DMS|266.416837|p=4|sup=10}} returns 266° 25m 0.6132s.
See also