Difference between revisions of "Template:Village"

From Electromagnetic Field
Jump to navigation Jump to search
(Created page with "<noinclude> This is the "Village" template. It should be called in the following format: <pre> {{Village |Picture= |Name= |Description= |Contact= |URL= |Activities= |Location=...")
 
(I am the idiot who doesn't know the difference between true and false)
 
(68 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the "Village" template.
+
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:
 
It should be called in the following format:
 
<pre>
 
<pre>
 
{{Village
 
{{Village
|Picture=
 
|Name=
 
 
|Description=
 
|Description=
 
|Contact=
 
|Contact=
|URL=
+
|WebAddress=
 
|Activities=
 
|Activities=
 
|Location=
 
|Location=
 
}}
 
}}
 
</pre>
 
</pre>
Edit the page to see the template text.
+
To not include the list of village members, add |HideList=true before the }}
 +
 
 
</noinclude><includeonly>{| style="float: right; margin: 0 0 10px 10px; width: 269px; border-radius: 8px; background-color: #F9F9F9;border: 1px solid #AAAAAA;font-size: 95%;padding: 5px;"
 
</noinclude><includeonly>{| style="float: right; margin: 0 0 10px 10px; width: 269px; border-radius: 8px; background-color: #F9F9F9;border: 1px solid #AAAAAA;font-size: 95%;padding: 5px;"
! style="text-align: center; background-color:#5E93CE; color: white;" colspan="2" |<big>Village: [[Name::{{{Name|}}}]]</big>
+
! style="text-align: center; background-color:#5E93CE; color: white;" colspan="2" |<big>[[Name::{{#explode:{{PAGENAME}}|:|1}}]]</big>
{{#ifexist:File:{{{Picture}}}|{{!}}-[[Picture::{{filepath:{{{Picture}}}}}|]]|}}
+
|-
{{#ifexist:File:{{{Picture}}}|! colspan="2"{{!}}[[File:{{{Picture}}}|300px]]|}}
+
! colspan="2" |
 +
{{GetImage|Village-{{#explode:{{PAGENAME}}|:|1}}}}
 +
{{#ifeq:{{ImageExists|Village-{{#explode:{{PAGENAME}}|:|1}}}}|1|[[Picture::{{filepath:{{GetImageFilename|Village-{{#explode:{{PAGENAME}}|:|1}}}}}}| ]]|}}
 
|-
 
|-
 
! Description
 
! Description
| [[Description::{{{Description|}}}]]  
+
| [[Description::{{{Description|}}}|]] {{{Description|}}}
 
|-
 
|-
 
! Contact
 
! Contact
 
| [[Contact::User:{{{Contact|}}}]]  
 
| [[Contact::User:{{{Contact|}}}]]  
|-
+
{{#ifeq:|{{{WebAddress|}}}||
 +
{{!}}-
 
! Web Site
 
! Web Site
| [[URL::{{{URL|}}}]]
+
{{!}} {{{WebAddress|}}} }}
 
|-
 
|-
 
! Activities
 
! Activities
| [[Activities::{{{Activities|}}}]]  
+
| [[Activities::{{{Activities|}}}|]]{{{Activities|}}}
{{#if:{{{Location|}}}|{{!}}-|}}
+
{{#ifeq:|{{{Location|}}}||
{{#if:{{{Location|}}}|[[MapFix::{{{Location}}}~{{{Name}}}~{{{Description}}}~{{#ifexist:File:{{{Picture}}}|{{{Picture}}}|EMF-blue.png}}|]]|}}
+
{{!}}-
{{#if:{{{Location|}}}|! style="text-align: center;; background-color:#5E93CE; color: white;" colspan="2" {{!}}<big>Location</big>[[Location::{{{Location}}}| ]]<span style='color:#000000'>{{#display_map:{{{Location}}}~{{{Name}}}~{{{Description}}}~{{#ifexist:File:{{{Picture}}}|{{{Picture}}}|EMF-blue.png}}|width=300|height=300|service=openlayers|layers=emf,osm-mapnik|zoom=2}}</span>|}}
+
{{#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}}|]]|}}
[[Has default form::Village| ]]
+
! 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}} }}
 
|-
 
|-
 
!colspan="2"|[[Villages|View all Villages]]
 
!colspan="2"|[[Villages|View all Villages]]
|}
+
|}{{#ifeq: {{{HideList|false}}}|true||{{inhabitants}}}}
 
+
[[Category:Villages]]
 
 
[[Category:Village]]
 
 
</includeonly>
 
</includeonly>

Latest revision as of 23:46, 2 August 2016

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