Difference between revisions of "Template:DEC"
Jump to navigation
Jump to search
imported>TFOWR m (Unprotected Template:DEC: Unprotecting per consensus at Wikipedia:Administrators'_noticeboard/IncidentArchive638#HJ_Mitchell_mass_fully_protecting_templates. Discussion is ongoing at WT:HRT - I won't consider it wheel-warring if anyone re-protects usi) |
imported>Primefac m (Changed protection level for "Template:DEC": high-risk template with 4000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{{1}}}°{{#ifeq: {{{2|+}}}|{{{2|-}}}| {{{2|}}}′|}}{{#ifeq: {{{3|+}}}|{{{3|-}}}| {{{3|}}}″|}}<noinclude> | + | {{Str rep|{{{1}}}|-|−}}°{{#ifeq: {{{2|+}}}|{{{2|-}}}| {{{2|}}}′|}}{{#ifeq: {{{3|+}}}|{{{3|-}}}| {{{3|}}}″|}}<noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 16:29, 23 February 2018
{{{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}}
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
The above documentation is transcluded from Template:DEC/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |