Difference between revisions of "Template:HMS2Deg/doc"
Jump to navigation
Jump to search
imported>DePiep (→See also: Rename category, from deprecated name, removed: HMS2Deg using AWB) |
imported>Tom.Reding (Not a good choice for {{tlc}}; it doesn't display the value of p used. Replaced with <code><nowiki> etc.) |
||
| Line 8: | Line 8: | ||
This template converts an [[hour angle]], given in hours|minutes|seconds, to decimal degrees. | This template converts an [[hour angle]], given in hours|minutes|seconds, to decimal degrees. | ||
| − | So {{ | + | So <code><nowiki>{{Deg2HMS|HMS2Deg|12|29|06.7|p=5}}</nowiki></code> returns {{HMS2Deg|12|29|06.7|p=5}}. |
| + | |||
Only parameter '''p''' is optional (defaults to 6). | Only parameter '''p''' is optional (defaults to 6). | ||
Revision as of 03:29, 21 November 2014
| 40px | This is a documentation subpage for Template:HMS2Deg. It contains usage information, categories and other content that is not part of the original template page. |
Usage
Usage: {{HMS2Deg|hours|minutes|seconds|p=precision}}.
This template converts an hour angle, given in hours|minutes|seconds, to decimal degrees.
So {{Deg2HMS|HMS2Deg|12|29|06.7|p=5}} returns 187.27792.
Only parameter p is optional (defaults to 6).