Difference between revisions of "Template:Cape Cod overlay map"

From blackwiki
Jump to navigation Jump to search
imported>Grolltech
(place inside a div to float correctly in articles)
imported>Grolltech
(for some reason, overlay #2, 3 and 4 were not displaying the same color as #1)
 
Line 33: Line 33:
 
|overlay1top = {{#expr: (132 * ({{#if:{{{width|}}}|{{#expr: ({{{width}}} * 0.75) round 0}}|225}}/225)) round 0}}
 
|overlay1top = {{#expr: (132 * ({{#if:{{{width|}}}|{{#expr: ({{{width}}} * 0.75) round 0}}|225}}/225)) round 0}}
 
|overlay1left = {{#expr: (69 * ({{#if:{{{width|}}}|{{{width}}}|300}}/300)) round 0}}
 
|overlay1left = {{#expr: (69 * ({{#if:{{{width|}}}|{{{width}}}|300}}/300)) round 0}}
 +
|overlay2color = green
 
|overlay2 = Falmouth
 
|overlay2 = Falmouth
 
|overlay2link = Falmouth, Massachusetts
 
|overlay2link = Falmouth, Massachusetts
 
|overlay2top = {{#expr: (171 * ({{#if:{{{width|}}}|{{#expr: ({{{width}}} * 0.75) round 0}}|225}}/225)) round 0}}
 
|overlay2top = {{#expr: (171 * ({{#if:{{{width|}}}|{{#expr: ({{{width}}} * 0.75) round 0}}|225}}/225)) round 0}}
 
|overlay2left = {{#expr: (64 * ({{#if:{{{width|}}}|{{{width}}}|300}}/300)) round 0}}
 
|overlay2left = {{#expr: (64 * ({{#if:{{{width|}}}|{{{width}}}|300}}/300)) round 0}}
 +
|overlay3color = green
 
|overlay3 = Sandwich
 
|overlay3 = Sandwich
 
|overlay3link = Sandwich, Massachusetts
 
|overlay3link = Sandwich, Massachusetts
 
|overlay3top = {{#expr: (129 * ({{#if:{{{width|}}}|{{#expr: ({{{width}}} * 0.75) round 0}}|225}}/225)) round 0}}
 
|overlay3top = {{#expr: (129 * ({{#if:{{{width|}}}|{{#expr: ({{{width}}} * 0.75) round 0}}|225}}/225)) round 0}}
 
|overlay3left = {{#expr: (94 * ({{#if:{{{width|}}}|{{{width}}}|300}}/300)) round 0}}
 
|overlay3left = {{#expr: (94 * ({{#if:{{{width|}}}|{{{width}}}|300}}/300)) round 0}}
 +
|overlay4color = green
 
|overlay4 = Mashpee
 
|overlay4 = Mashpee
 
|overlay4link = Mashpee, Massachusetts
 
|overlay4link = Mashpee, Massachusetts

Latest revision as of 10:54, 9 May 2014

50px Template documentation[view] [edit] [history] [purge]

Usage

{{Cape Cod overlay map | width = Template:Varserif | columns = Template:Varserif | float = Template:Varserif }}

where:

|width= desired width of the map image; default is 300px. This also forms the basis of the height of the map image, which will be calculated as 75% of the width.
|columns= number of columns to display in the legend; default is 3.
|float= designates to which side of the article text the map should appear. Valid values are: left, right (default), and center.

Example

The map at the top of the page was made using all default values – that is, by using the following wikicode:

{{Cape Cod overlay map}}

Compare the map at the top of the page with the following example:

{{Cape Cod overlay map
 |width = 200
 |columns = 2
 |float = center 
}}
which produces:

See also