Difference between revisions of "Template:Decdeg/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Droll
(test)
imported>Droll
(test)
Line 1: Line 1:
<includeonly>{{#expr:
+
{{#expr: (
    {{#switch: {{{hem|{{{4|}}}}}}
+
  {{#switch: {{{hem|{{{4|}}}}}}
      | W|w|S|s = -1
+
    | W|w|S|s = -1
      | E|e|N|n = 1
+
    | E|e|N|n = 1
      | {{#ifeq: {{str left|{{{deg|{{{1|}}}}}}|1}} | - | -1 | 1}}
+
    | {{#ifeq: {{str left|{{{deg|{{{1|}}}}}}|1}} | - | -1 | 1 }}
    }}
+
  }}
    * (
+
  *
      {{#if:{{{deg|{{{1|}}}}}}|abs{{{deg|{{{1}}}}}}|0}}
+
  {{#if:{{{deg|{{{1|}}}}}}|abs{{{deg|{{{1}}}}}}|0}}
      +
+
  +
      {{#if:{{{min|{{{2|}}}}}}|{{{min|{{{2}}}}}}/60|0}}
+
  {{#if:{{{min|{{{2|}}}}}}|{{{min|{{{2}}}}}}/60|0}}
      +
+
  +
      {{#if:{{{sec|{{{3|}}}}}}|{{{sec|{{{3}}}}}}/3600|0}}
+
  {{#if:{{{sec|{{{3|}}}}}}|{{{sec|{{{3}}}}}}/3600|0}}
    )
+
) round {{#if: {{{rnd|{{{5|}}}}}} | {{{rnd|{{{5|}}}}}} | 7 }}
round {{#if: {{{rnd|{{{5|}}}}}}
+
}}
            | {{{rnd|{{{5|7}}}}}}
 
            | 7
 
          }}
 
}}</includeonly><noinclude>
 
<!--{{Documentation}}-->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS. -->
 
</noinclude>
 

Revision as of 20:57, 17 May 2010

0