Difference between revisions of "Template:Infobox dim/core"

From blackwiki
Jump to navigation Jump to search
imported>Hike395
(show source on noinclude)
imported>Hike395
(round to nearest coordinate)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#ifexpr:{{{1}}}>{{{2}}}|{{#expr:{{{1}}}*0.5}}km|{{#expr:{{{2}}}*0.5}}km }}<!--
+
<includeonly>{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#ifexpr:{{{1}}}>{{{2}}}|{{#expr:{{{1}}}*0.5 round0}}km|{{#expr:{{{2}}}*0.5 round0}}km }}<!--
               -->|{{#expr:{{{1}}}*0.5}}km }}|{{#if:{{{2|}}}|{{#expr:{{{2}}}*0.5}}km}} }}</includeonly><noinclude><pre>
+
               -->|{{#expr:{{{1}}}*0.5 round0}}km }}|{{#if:{{{2|}}}|{{#expr:{{{2}}}*0.5 round0}}km}} }}</includeonly><noinclude><pre>
 
{{#if:{{{1|}}}
 
{{#if:{{{1|}}}
 
   |{{#if:{{{2|}}}
 
   |{{#if:{{{2|}}}
 
       |{{#ifexpr:{{{1}}}>{{{2}}}
 
       |{{#ifexpr:{{{1}}}>{{{2}}}
         |{{#expr:{{{1}}}*0.5}}km
+
         |{{#expr:{{{1}}}*0.5 round0}}km
         |{{#expr:{{{2}}}*0.5}}km }}
+
         |{{#expr:{{{2}}}*0.5 round0}}km }}
       |{{#expr:{{{1}}}*0.5}}km }}
+
       |{{#expr:{{{1}}}*0.5 round0}}km }}
 
   |{{#if:{{{2|}}}
 
   |{{#if:{{{2|}}}
       |{{#expr:{{{2}}}*0.5}}km}} }}</pre></noinclude>
+
       |{{#expr:{{{2}}}*0.5 round0}}km}} }}</pre></noinclude>

Revision as of 05:31, 23 June 2012

{{#if:{{{1|}}}
   |{{#if:{{{2|}}}
      |{{#ifexpr:{{{1}}}>{{{2}}}
         |{{#expr:{{{1}}}*0.5 round0}}km
         |{{#expr:{{{2}}}*0.5 round0}}km }}
      |{{#expr:{{{1}}}*0.5 round0}}km }}
   |{{#if:{{{2|}}}
      |{{#expr:{{{2}}}*0.5 round0}}km}} }}