Familypedia
(Created page with "{{#if: {{{width|}}} | {{#invoke:String|replace|source={{{width}}}|px|}} | {{#expr: {{#if: {{{default_width|}}} | {{{default_width}}} | 240 }} * {{#iferror: {{#expr: {{Lo...")
 
m (simplify it)
 
Line 1: Line 1:
 
{{#if: {{{width|}}}
 
{{#if: {{{width|}}}
| {{#invoke:String|replace|source={{{width}}}|px|}}
+
| {{{width}}}
 
| {{#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: {{Location map {{{1}}}|defaultscale}} * 1}} | 1 }} round0 }}
 
}}<noinclude>
 
}}<noinclude>

Latest revision as of 03:39, 24 April 2014

240

[edit] [purge] Template documentation

The following documentation is transcluded from Template:Location map+/width/doc.

This subtemplate generates the default width for {{Location map+}}. It is called by a parent template, and should not usually be used directly. The template returns a default result of 240.

Usage

Full usage:

{{Location map+/width | 1={{{1|}}} | width={{{width|}}} | default_width={{{default_width|}}} }}

Usually all the parameters should be passed through from the template that calls this subtemplate. See the documentation for {{Location map+}} for details about the parameters.