Template:Infobox municipality: Difference between revisions

From OpenCommons
Jump to navigation Jump to search
(Created page with "<noinclude> {{#template_params:type (label=Municipality;property=Has type)|image (label=Skyline;property=Has image)|image_caption (label=Caption;property=Has caption)|image_se...")
 
No edit summary
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:type (label=Municipality;property=Has type)|image (label=Skyline;property=Has image)|image_caption (label=Caption;property=Has caption)|image_seal (label=Seal;property=Has seal)|image_map (property=Has map)|map_caption (property=Map caption)|established (label=Date Established;property=Has date)|area (property=Has area)|elevation (label=Elevation;property=Has elevation)|population (label=Population;property=Has population)|website (label=Website;property=Has website)|timezone (label=Timezone;property=Has timezone)}}
{{#template_params:municipality (label=Municipality;property=Municipality type)|image (label=Skyline;property=Has image)|image_caption (label=Caption;property=Has caption)|image_seal (label=Seal;property=Has seal)|image_map (property=Has map)|map_caption (property=Map caption)|established (label=Date Established;property=Founded)|area (property=Has area)|elevation (label=Elevation;property=Has elevation)|population (label=Population;property=Has population)|website (label=Website;property=Has website)|timezone (label=Timezone;property=Has timezone)}}
</noinclude><includeonly>
</noinclude><includeonly>
__NOEDITSECTION__
{{#default_form:Municipality}}
{{#default_form:Municipality}}
{| class="wikitable" style="float:right;width:450px;border-spacing: 10px;"
{| class="wikitable" style="float:right;width:450px;border-spacing: 10px;margin-left: 40px"
! colspan="2" style="background:ltgrey;font-size:10pt" | [[Property:Has name | ]] [[Has name::{{PAGENAME}}]]
! colspan="2" style="background:ltgrey;font-size:10pt" | [[Property:Has name | ]] [[Has name::{{PAGENAME}}]]
|-
|-
| colspan="2" style="text-align:center;font-size:9pt" | [[File:{{{image}}}|center|450px|x250px|link={{{website}}}]]
| colspan="2" style="text-align:center;font-size:9pt" | [[File:{{{image}}}|center|450px|x150px|link={{{website}}}]]
|-
|-
| colspan="2" | {{{image_caption}}}
| colspan="2" style="text-align:center;font-size:9pt" | {{{image_caption}}}
|-
|-
| colspan="2" style="background:ltgrey;text-align:left;font-size:9pt" |
| colspan="2" style="background:ltgrey;text-align:left;font-size:9pt" |
|-
|-
| colspan="2" | [[Has image::{{{image_seal}}}]]
| colspan="2" | [[File:{{{image_seal}}}|center|450px|x150px|link={{{website}}}]] {{#set: Has image=File:{{{image_seal}}} }}
|-
|-
| colspan="2" | Seal
| colspan="2" style="text-align:center;font-size:9pt" | Seal
|-
|-
| colspan="2" | [[Has map::{{{image_map}}}]]
| colspan="2" style="text-align:center;" | {{#display_map: {{PAGENAME}}~{{PAGENAME}}~{{PAGENAME}} | zoom=10 |width=450|height=250}}
|-
|-
| colspan="2" | {{{map_caption}}}
| colspan="2" style="text-align:center;font-size:9pt" | {{PAGENAME}} Map {{#set: Has coordinates={{#Geocode:{{PAGENAME}}}}}}
|-
|-
! Type of Municipality
! Type of Municipality
| [[Has type::{{{type|}}}]]
| [[Municipality type::{{{municipality|}}}]]
|-
|-
! Date Established
! Date Established
| [[Has type::{{{established|}}}]]
| [[Founded::{{{established|}}}]]
|-
|-
! Area
! Area
| [[Has type::{{{area|}}}]]
| [[Has area::{{{area|}}}]]
|-
|-
! Elevation
! Elevation
| [[Has type::{{{elevation|}}}]]
| [[Has elevation::{{{elevation|}}}]]
|-
|-
! Population
! Population
Line 38: Line 38:
! Timezone
! Timezone
| [[Has timezone::{{{timezone|}}}]]
| [[Has timezone::{{{timezone|}}}]]
|-
|}
! Elevation
| [[Has type::{{{elevation|}}}]]
}}
;Members
;Members
{{#ask:  
{{#ask:  
  [[Category:Person]]
  [[Category:Person]]
  [[Has company::{{PAGENAME}}]]
  [[From location::{{PAGENAME}}]]
  |?=#
  |?=#
  |?Has firstname#=2
  |?Has firstname#=2
  |?Has lastname#=3
  |?Has lastname#=3
|limit=100
  |format=plainlist
  |format=plainlist
  |named args=yes
  |named args=yes
Line 56: Line 54:
{{{description}}} {{#set: Has description={{{description}}} }}
{{{description}}} {{#set: Has description={{{description}}} }}
=Activities=
=Activities=
;Projects
{{#ask:  
{{#ask:  
  [[Category:Activity]]
  [[Category:Activity]]
  [[Has team members::{{PAGENAME}}]]
  [[In municipality::{{PAGENAME}}]]
  |?=
  |?=#
  |?Has image#=2
  |?Has image#=2
  |?Has description#=3
  |?Has description#=3
Line 68: Line 65:
  |template=Show image
  |template=Show image
  |outrotemplate=Show link Footer
  |outrotemplate=Show link Footer
}}
}}{{#ask:  
;News
{{#ask:  
  [[Category:News]]
  [[Category:News]]
  [[Has team members::{{PAGENAME}}]]
  [[From location::{{PAGENAME}}]]
  |sort=Has date published
  |sort=Has date published
  |order=descending
  |order=descending
Line 84: Line 79:
  |template=Show image link
  |template=Show image link
  |outrotemplate=Show link Footer
  |outrotemplate=Show link Footer
}}
}} {{#ask:  
{{#ask:  
  [[Category:Webinar]]
  [[Category:Webinar]]
  [[Has team members::{{PAGENAME}}]]
  [[Has team members::{{PAGENAME}}]]

Latest revision as of 15:47, August 22, 2022

This is the "Infobox municipality" template.

It should be called in the following format:

{{Infobox municipality
|municipality=
|image=
|image_caption=
|image_seal=
|image_map=
|map_caption=
|established=
|area=
|elevation=
|population=
|website=
|timezone=
}}

Edit the page to see the template text.