Difference between revisions of "Template:DEC"

From blackwiki
Jump to navigation Jump to search
imported>AGK
m (Protected Template:DEC: Highly-visible template (between 1900 and 4000 transclusions) (‎[edit=autoconfirmed] (indefinite) ‎[move=sysop] (indefinite)))
imported>Mr. Stradivarius
(replace hyphens with minus signs per semi-protected edit request)
Line 1: Line 1:
{{{1}}}&deg;{{#ifeq: {{{2|+}}}|{{{2|-}}}|&nbsp;{{{2|}}}&prime;|}}{{#ifeq: {{{3|+}}}|{{{3|-}}}|&nbsp;{{{3|}}}&Prime;|}}<noinclude>
+
{{Str rep|{{{1}}}|-|−}}&deg;{{#ifeq: {{{2|+}}}|{{{2|-}}}|&nbsp;{{{2|}}}&prime;|}}{{#ifeq: {{{3|+}}}|{{{3|-}}}|&nbsp;{{{3|}}}&Prime;|}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 13:51, 11 August 2013

Template:Str rep°

Template documentation[view] [edit] [history] [purge]

{{{1}}}° {{{2}}}′ {{{3}}}″

Usage

{{DEC|degrees|minutes|seconds}}

Template:Str rep° minutes′ seconds″

Note that the second and third arguments, seconds & minutes, are optional.

{{DEC|degrees|minutes}}

Template:Str rep° minutes′

{{DEC|degrees}}

Template:Str rep°

When using in tables, leave a space between the | and the {{DEC}}, or else the table will break if the degrees begin with "+".

See also