Difference between revisions of "Template:Location map+/old/width"

From blackwiki
Jump to navigation Jump to search
imported>Sphilbrick
m (Sphilbrick moved page Template:Location map+/width to Template:Location map+/old/width: per request at User_talk:Sphilbrick#Template:Location_map.2Fdecdeg)
imported>Jackmcbarn
m (includeonly)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{db-g6|rationale=it is a meta-template that was formerly used by [[Template:Location map]], but is no longer useful due to a Lua rewrite}}</noinclude>
+
<includeonly>{{#if: {{{width|}}}
{{#if: {{{width|}}}
 
 
   | {{#invoke:String|replace|source={{{width}}}|px|}}
 
   | {{#invoke:String|replace|source={{{width}}}|px|}}
   | {{#expr: {{#if: {{{default_width|}}} | {{{default_width}}} | 240 }} * {{#iferror: {{#expr: {{Location map {{{1}}}|defaultscale}} * 1}} | 1 }} round0 }}
+
   | {{#expr: {{#if: {{{default_width|}}} | {{{default_width}}} | 240 }} * {{#iferror: {{#expr: {{#invoke:Location map|data|{{{1}}}|defaultscale}} * 1}} | 1 }} round0 }}
}}<noinclude>
+
}}</includeonly><noinclude>
  
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 17:28, 7 September 2014


Template documentation[create]