Template:Village: Difference between revisions

From Electromagnetic Field 2024
No edit summary
No edit summary
Β 
(12 intermediate revisions by the same user not shown)
Line 14: Line 14:
To not include the list of village members, add |HideList=true before the }}
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: 20px; background-color: #eeeeee;font-size: 95%;padding: 12px;"
! style="text-align: center; background-color:#5E93CE; color: white;" colspan="2" |<big>[[Name::{{PAGENAME}}|{{PAGENAME}}]]</big>
! style="text-align: center; background-color:#afc944; color: black;font-size:120%" colspan="2" |{{PAGENAME}}
|-
|-
! colspan="2" |
! colspan="2" |
{{GetVillageImage|Village-{{#explode:{{PAGENAME}}|:|1}}}}
{{GetVillageImage|Village-{{PAGENAME}}}}
{{#ifeq:{{ImageExists|Village-{{#explode:{{PAGENAME}}|:|1}}}}|1|[[Picture::{{filepath:{{GetImageFilename|Village-{{#explode:{{PAGENAME}}|:|1}}}}}}|Β  ]]|}}
|-
|-
! Description
! Description
| [[Description::{{{Description|}}}|]] {{{Description|}}}
| {{{Description|}}}
|-
|-
! Contact
! Contact
| [[Contact::User:{{{Contact|}}}]] Β 
| [[User:{{{Contact|}}}]] Β 
{{#ifeq:|{{{WebAddress|}}}||
{{#ifeq:|{{{WebAddress|}}}||
{{!}}-
{{!}}-
Line 32: Line 31:
|-
|-
! Activities
! Activities
| [[Activities::{{{Activities|}}}|]]{{{Activities|}}}
| {{{Activities|}}}
{{#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}}|]]|}}
! 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"|[[:Category:Villages|View all Villages]]
!colspan="2"|[[:Category:Villages|View all Villages]]
Line 43: Line 38:
</includeonly>
</includeonly>
<noinclude>
<noinclude>
<templatedata>
{
"params": {
"Description": {
"description": "A brief description of the village",
"type": "string",
"suggested": true
},
"Contact": {
"description": "User to contact about the village",
"type": "wiki-user-name",
"suggested": true
},
"WebAddress": {
"description": "A URL to more info about the village",
"example": "https://example.com",
"type": "url",
"suggested": true
},
"Activities": {},
"Location": {},
"HideList": {}
},
"description": "Used to annotate villages",
"format": "block"
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 13:13, 3 May 2024

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