Template:Calendar/event: Difference between revisions

From OpenStreetMap Wiki
Jump to navigation Jump to search
Content deleted Content added
Minh Nguyen (talk | contribs)
No edit summary
Minh Nguyen (talk | contribs)
File:Flag of .svg exists, throwing off the #ifexist: logic when a city, region, or country is unspecified
Line 37: Line 37:
| {{{country<noinclude>|Antarctica</noinclude>}}}
| {{{country<noinclude>|Antarctica</noinclude>}}}
}}
}}
}}</span>{{#ifexist: Media:{{{countryemblem|Flag of {{{country|<noinclude>Antarctica</noinclude>}}}.svg}}}
}}</span>{{#ifexist: Media:{{{countryemblem|Flag of {{{country|<includeonly>-</includeonly><noinclude>Antarctica</noinclude>}}}.svg}}}
| &#32;{{SmallFlag|{{{country<noinclude>|Antarctica</noinclude>}}}|{{{countryemblem|}}}}}
| &#32;{{SmallFlag|{{{country<noinclude>|Antarctica</noinclude>}}}|{{{countryemblem|}}}}}
}}{{#ifexist: Media:{{{regionemblem|Flag of {{{region|<noinclude>British Antarctic Territory</noinclude>}}}.svg}}}
}}{{#ifexist: Media:{{{regionemblem|Flag of {{{region|<includeonly>-</includeonly><noinclude>British Antarctic Territory</noinclude>}}}.svg}}}
| &#32;{{SmallFlag|{{{region<noinclude>|British Antarctic Territory</noinclude>}}}|{{{regionemblem|}}}}}
| &#32;{{SmallFlag|{{{region<noinclude>|British Antarctic Territory</noinclude>}}}|{{{regionemblem|}}}}}
}}{{#ifexist: Media:{{{cityemblem|Flag of {{{city|<noinclude>South Pole</noinclude>}}}.svg}}}
}}{{#ifexist: Media:{{{cityemblem|Flag of {{{city|<includeonly>-</includeonly><noinclude>South Pole</noinclude>}}}.svg}}}
| &#32;{{SmallFlag|{{{city<noinclude>|South Pole</noinclude>}}}|{{{cityemblem|}}}}}
| &#32;{{SmallFlag|{{{city<noinclude>|South Pole</noinclude>}}}|{{{cityemblem|}}}}}
}}
}}

Revision as of 22:32, 27 April 2019

Mapping party 21–24 Dec.2025-12-212025-12-25 State of the Wiki [1] State of the Wiki, international wiki-fiddler convention, South Pole, British Antarctic Territory, Antarctica Antarctica British Antarctic Territory

Inserts a table row into the event calendar at Template:Calendar containing basic information about a single event.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Typetype

Nature of the event

Example
mapevent
Stringrequired
Datedate

Date of a single-day event

Example
2019-04-01
Datesuggested
Start datestart

First day of a multiday event

Example
2019-03-14
Dateoptional
End dateend

Last day of a multiday event

Example
2019-04-01
Dateoptional
Major eventmajor

Is it a major event, the highlight of everyone’s year?

Booleanoptional
Namename

Name of the event

Example
State of the Map 2019
Stringrequired
Wiki pagelink

Name of the wiki page describing the event

Example
State of the Map 2019
Page namesuggested
Official websiteurl

URL of the event’s official website

Example
https://2019.stateofthemap.org/
URLsuggested
Logologo

File name of the event’s logo; must be uploaded locally or to Wikimedia Commons

Example
SotM-2019-logo.svg
Fileoptional
Descriptiondescription

Very short description of the event; use sparingly, i.e., for major events

Example
international conference
Contentoptional
Citycity

Host city or nearest city; will be linked if an article exists by this name; displays a flag if known

Example
San Francisco
Stringsuggested
City page namecitylink

Name of the host city’s WikiProject page, if it differs from the city’s name (e.g., due to disambiguation)

Example
San Francisco, California
Page nameoptional
City emblemcityemblem

File name of the host city’s flag, seal, or coat of arms; if omitted, a flag based on the city’s name will be used if available; to disable, specify “-”

Example
Wappen Basel-Stadt matt.svg
Fileoptional
Regionregion

State, province, or other subnational region hosting the event, especially if the city and country are ambiguous on their own; displays a flag or shield if known

Example
Georgia
Stringoptional
Region page nameregionlink

Name of the state, province, or other subnational region’s WikiProject page, if it differs from the region’s name

Example
Georgia (U.S. state)
Page nameoptional
Region emblemregionemblem

File name of the flag, seal, or coat of arms of the state, province, or other subnational region; if omitted, a flag based on the region’s name will be used if available; to disable, specify “-”

Example
Flag of Georgia (U.S. state).svg
Fileoptional
Countrycountry

Host country; displays a flag if known

Example
United States
Stringsuggested
Country page namecountrylink

Name of the host country’s WikiProject page, if it differs from the country’s name

Example
WikiProject Georgia Abkhazia South-Ossetia
Page nameoptional
Country emblemcountryemblem

File name of the host country’s flag, seal, or coat of arms; if omitted, a flag based on the country’s name will be used if available; to disable, specify “-”

Example
24pxlinneighborhood.png
Fileoptional