Bruger:PHansen/Location map+/width

Fra Wikipedia, den frie encyklopædi

240

Kode
{{#if: {{{width|}}}
   | {{{width}}}
   | {{#expr: {{#if: {{{default_width|}}} | {{{default_width}}} | 240 }} * {{#iferror: {{#expr: {{Location map {{{1}}}|defaultscale}} * 1}} | 1 }} round0 }}
}
Baggrund
Grønland: Bruger:PHansen/Location map Grønland_gl - Bruger:PHansen/Location map Grønland_eqcp
Antarktis: Bruger:PHansen/Location map Antarktis2 (se også Skabelon:Kortpositioner Grønland2 med sammenligning )

This subtemplate generates the default width for {{Location map+}} (Bruger:PHansen/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+}} (Bruger:PHansen/Location map+) for details about the parameters.