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

From blackwiki
Jump to navigation Jump to search
imported>Grolltech
(cat sort)
imported>Grolltech
(minor tweak to example)
Line 14: Line 14:
 
<pre style="width:15em;float:left;">{{Cape Cod overlay map}}</pre>
 
<pre style="width:15em;float:left;">{{Cape Cod overlay map}}</pre>
 
{{clear}}
 
{{clear}}
Compare that with the following:
+
 
 +
Compare the map at the top of the page with the following example:
 
<pre style="width:15em;float:left;">{{Cape Cod overlay map
 
<pre style="width:15em;float:left;">{{Cape Cod overlay map
  |width = 250
+
  |width = 200
 
  |columns = 2
 
  |columns = 2
 
  |float = center  
 
  |float = center  
 
}}</pre>
 
}}</pre>
 +
{{clear}}which produces:
 
{{Cape Cod overlay map
 
{{Cape Cod overlay map
  |width = 250
+
  |width = 200
 
  |columns = 2
 
  |columns = 2
 
  |float = center  
 
  |float = center  

Revision as of 12:37, 7 June 2013

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