Template:DEC: Difference between revisions
wikademia>Spacepotato Causes column width bloat when used in infoboxes. Also fails to work with negative declinations. |
wikademia>Rursus not all surfers have prime, better use quotmark and apostrophe |
||
| Line 1: | Line 1: | ||
{{{1}}}°{{#ifeq: {{{2|+}}}|{{{2|-}}}| {{{2|}}}& | {{{1}}}°{{#ifeq: {{{2|+}}}|{{{2|-}}}| {{{2|}}}"|}}{{#ifeq: {{{3|+}}}|{{{3|-}}}| {{{3|}}}'|}}<noinclude> | ||
<nowiki>{{{2}}}</nowiki>′ <nowiki>{{{3}}}</nowiki>″<br><br> | <nowiki>{{{2}}}</nowiki>′ <nowiki>{{{3}}}</nowiki>″<br><br> | ||
| Line 6: | Line 6: | ||
:'''{{DEC|degrees|minutes|seconds}}''' | :'''{{DEC|degrees|minutes|seconds}}''' | ||
Note that the second and third arguments, '''seconds''' & '''minutes''', are optional. | Note that the second and third arguments, '''seconds''' & '''minutes''', are optional. | ||
<nowiki>{{DEC|degrees|minutes}}</nowiki> | <nowiki>{{DEC|degrees|minutes}}</nowiki> | ||