Template:Village: Difference between revisions

From Electromagnetic Field
Jump to navigation Jump to search
No edit summary
(make a map div)
Line 31: Line 31:
! Activities
! Activities
{{!}} [[Activities::{{{Activities|}}}|]]{{{Activities|}}} |}}
{{!}} [[Activities::{{{Activities|}}}|]]{{{Activities|}}} |}}
{{#ifeq:|{{{Location|}}}||
{{!}}-
{{#if:{{{Location|}}}|
{{InfoboxSubtitle|SubTitle=Location}}
{{InfoboxSubtitle|SubTitle=Location}}
{{!}}-
{{!}}- <div id="villageMap">Map is loading.</div>
[[Location::{{{Location}}}|]][[MapFix::{{{Location}}}~{{#explode:{{PAGENAME}}|:|1}}~{{{Description}}}~{{#ifeq:{{ImageExists|Village-{{#explode:{{PAGENAME}}|:|1}}}}|1|{{GetImageFilename|Village-{{#explode:{{PAGENAME}}|:|1}}}}|EMF-blue.png}}|]]|}}
{{#if:{{{Interests|}}}|<nowiki></nowiki>
! 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|layers=emf,osm-mapnik|zoom=18}} }}{{#if:{{{Interests|}}}|<nowiki></nowiki>
{{InfoboxSubtitle|SubTitle=Relevant interests}}
{{InfoboxSubtitle|SubTitle=Relevant interests}}
{{!}}-
{{!}}-

Revision as of 12:44, 13 August 2018

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 }}