Help Wikitravel grow by contributing to an article! Learn how.

Difference between revisions of "Template:Regionlist"

From Wikitravel
Jump to: navigation, search
(made it so it will go up to region 20)
Line 16: Line 16:
 
{{ #if: {{{region14name|}}} | {{Regionlistitem|{{{region14color}}}|{{{region14name}}}|{{{region14items}}}|{{{region14description}}} }} }}
 
{{ #if: {{{region14name|}}} | {{Regionlistitem|{{{region14color}}}|{{{region14name}}}|{{{region14items}}}|{{{region14description}}} }} }}
 
{{ #if: {{{region15name|}}} | {{Regionlistitem|{{{region15color}}}|{{{region15name}}}|{{{region15items}}}|{{{region15description}}} }} }}
 
{{ #if: {{{region15name|}}} | {{Regionlistitem|{{{region15color}}}|{{{region15name}}}|{{{region15items}}}|{{{region15description}}} }} }}
 +
{{ #if: {{{region16name|}}} | {{Regionlistitem|{{{region16color}}}|{{{region16name}}}|{{{region16items}}}|{{{region16description}}} }} }}
 +
{{ #if: {{{region17name|}}} | {{Regionlistitem|{{{region17color}}}|{{{region17name}}}|{{{region17items}}}|{{{region17description}}} }} }}
 +
{{ #if: {{{region18name|}}} | {{Regionlistitem|{{{region18color}}}|{{{region18name}}}|{{{region18items}}}|{{{region18description}}} }} }}
 +
{{ #if: {{{region19name|}}} | {{Regionlistitem|{{{region19color}}}|{{{region19name}}}|{{{region19items}}}|{{{region19description}}} }} }}
 +
{{ #if: {{{region20name|}}} | {{Regionlistitem|{{{region20color}}}|{{{region20name}}}|{{{region20items}}}|{{{region20description}}} }} }}
 
</div>
 
</div>
  

Revision as of 23:10, 31 May 2011












This template is used to display a color-coded map of regions and a legend with the region color, name and description. Use of this template is as follows:

{{Regionlist
| regionmap=The name of the region map
| regionmaptext=Text to display under the map image
| regionmapsize=The size of the map in px. Defaults to 350px if not passed
| region1name=The name of the first region
| region1color=The HTML color code to use in the legend for the first region
| region1items=An optional list of items to appear in parentheses next to the region name
| region1description=A description of the region
}}

The parameters above should be repeated for additional regions, but replace "region1" with "region2", "region3", etc. An example usage of this template with real data follows (descriptions have been truncated for readability):

{{Regionlist
| regionmap=Map-USA-Regions01.png
| regionmaptext=Regions of the USA
| regionmapsize=300px
| region1name=[[California]]
| region1color=#e0fa92
| region1items=
| region1description=In some ways quintessentially American, and in...
| region2name=[[Pacific Northwest (United States of America)|Pacific Northwest]]
| region2color=#38911c
| region2items=[[Washington (state)|Washington]], [[Oregon]]
| region2description=The pleasantly mild Pacific Northwest offers...
}}

Variants

Actions

Destination Docents

In other languages