Difference between revisions of "Template:Village"

From Electromagnetic Field 2022
Jump to navigation Jump to search
(neither emf nor osm-mapnik layers currently exist, so removing them makes the maps actually render.)
(EMF-blue.png is not available, so allow the default map marker to show)
Line 35: Line 35:
 
{{#ifeq:|{{{Location|}}}||
 
{{#ifeq:|{{{Location|}}}||
 
{{!}}-
 
{{!}}-
{{#if:{{{Location|}}}|[[Location::{{{Location}}}|]][[MapFix::{{{Location}}}~{{#explode:{{PAGENAME}}|:|1}}~{{{Description}}}~{{#ifeq:{{ImageExists|Village-{{#explode:{{PAGENAME}}|:|1}}}}|1|{{GetImageFilename|Village-{{#explode:{{PAGENAME}}|:|1}}}}|EMF-blue.png}}|]]|}}
+
{{#if:{{{Location|}}}|[[Location::{{{Location}}}|]][[MapFix::{{{Location}}}~{{#explode:{{PAGENAME}}|:|1}}~{{{Description}}}~{{#ifeq:{{ImageExists|Village-{{#explode:{{PAGENAME}}|:|1}}}}|1|{{GetImageFilename|Village-{{#explode:{{PAGENAME}}|:|1}}}}|}}|]]|}}
! colspan="2"{{!}} {{#display_map:{{{Location}}}~{{#explode:{{PAGENAME}}|:|1}}~{{{Description}}}~{{#ifeq:{{ImageExists|Village-{{#explode:{{PAGENAME}}|:|1}}}}|1|{{GetImageFilename|Village-{{#explode:{{PAGENAME}}|:|1}}}}|EMF-blue.png}}|width=300|height=300|service=openlayers|zoom=18}} }}
+
! colspan="2"{{!}} {{#display_map:{{{Location}}}~{{#explode:{{PAGENAME}}|:|1}}~{{{Description}}}~{{#ifeq:{{ImageExists|Village-{{#explode:{{PAGENAME}}|:|1}}}}|1|{{GetImageFilename|Village-{{#explode:{{PAGENAME}}|:|1}}}}|}}|width=300|height=300|service=openlayers|zoom=18}} }}
 
|-
 
|-
 
!colspan="2"|[[Villages|View all Villages]]
 
!colspan="2"|[[Villages|View all Villages]]

Revision as of 07:01, 28 May 2022

This is the "Village" template. The easiest way to use this template is to visit the Villages page and use the form to create a village.

It should be called in the following format:

{{Village
|Description=
|Contact=
|WebAddress=
|Activities=
|Location=
}}

To not include the list of village members, add |HideList=true before the }}


Used to annotate villages

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
DescriptionDescription

A breif description of the village

Stringsuggested
ContactContact

User to contact about the village

Usersuggested
WebAddressWebAddress

A URL to more info about the village

Example
https://example.com
URLsuggested
ActivitiesActivities

no description

Unknownoptional
LocationLocation

no description

Unknownoptional
HideListHideList

no description

Unknownoptional