Template:Infobox municipality: Difference between revisions

From OpenCommons
Jump to navigation Jump to search
No edit summary
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 2: Line 2:
{{#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)}}
{{#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}}]]
|-
|-
Line 16: Line 17:
| colspan="2" style="text-align:center;font-size:9pt" | Seal
| colspan="2" style="text-align:center;font-size:9pt" | Seal
|-
|-
| colspan="2" | [[File:{{{image_map}}}|center|450px|x250px|link={{{website}}}]] {{#set: Has map=File:{{{image_map}}} }}
| colspan="2" style="text-align:center;" | {{#display_map: {{PAGENAME}}~{{PAGENAME}}~{{PAGENAME}} | zoom=10 |width=450|height=250}}
|-
|-
| colspan="2" style="text-align:center;font-size:9pt" | {{{map_caption}}}
| colspan="2" style="text-align:center;font-size:9pt" | {{PAGENAME}} Map {{#set: Has coordinates={{#Geocode:{{PAGENAME}}}}}}
|-
|-
! Type of Municipality
! Type of Municipality
Line 41: Line 42:
{{#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 52: Line 54:
{{{description}}} {{#set: Has description={{{description}}} }}
{{{description}}} {{#set: Has description={{{description}}} }}
=Activities=
=Activities=
;Projects
{{#ask:  
{{#ask:  
  [[Category:Activity]]
  [[Category:Activity]]
  [[Has municipalities::{{PAGENAME}}]]
  [[In municipality::{{PAGENAME}}]]
  |?=
  |?=#
  |?Has image#=2
  |?Has image#=2
  |?Has description#=3
  |?Has description#=3
Line 64: 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 81: 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.