Portugal/Map
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
This template is copied and modified from Vi:Main Page/Map and Philippines/Map. This template embeds a map onto the very top of various Portugal-related pages.
The map displays a given location and zoom level, specified by a template (see below). To integrate the map more into the portal's design, the map is trimmed to hide the standard OpenLayers controls. (Hiding the attribution line is usually unacceptable, but it just happens that the map's attribution matches this wiki's.)
Usage
{{/Map|Place template|w=1000|h=350}}
The unnamed first parameter should be the name of a location template of the form:
{{#switch: {{{1}}} | lat = 3.14159 | lon = 3.14159 | z = 12 }}
Some existing location templates are listed below:
- Portugal/Map/Aveiro
- Portugal/Map/Açores
- Portugal/Map/Beja
- Portugal/Map/Braga
- Portugal/Map/Bragança
- Portugal/Map/Castelo Branco
- Portugal/Map/Coimbra
- Portugal/Map/Faro
- Portugal/Map/Guarda
- Portugal/Map/Leiria
- Portugal/Map/Lisboa
- Portugal/Map/Madeira
- Portugal/Map/Portalegre
- Portugal/Map/Porto
- Portugal/Map/Portugal
- Portugal/Map/Santarém
- Portugal/Map/Setúbal
- Portugal/Map/Viana do Castelo
- Portugal/Map/Vila Real
- Portugal/Map/Viseu
- Portugal/Map/doc
- Portugal/Map/Évora
To make the portal appear slightly more dynamic, you can predicate the parameter's value on the day of the week or time of day. The locations can be well-mapped areas, places that have been in the news lately, or simply the world map.