Key:flag:wikidata

From OpenStreetMap Wiki
Jump to navigation Jump to search
Public-images-osm logo.svg flag:wikidata
Osm element key.svg
Description
ID of the Wikidata item about each of the flags hoisted on the flagpole Edit or translate this description.
Group: Annotations
URL pattern
https://www.wikidata.org/wiki/$1
Used on these elements
may be used on nodesshould not be used on waysshould not be used on areasshould not be used on relations
Requires

man_made=flagpole

Useful combination
Wikidata
Status: in use

A flagpole can be tagged with a Wikidata item identifier to specifically and unambiguously identify each of the flags hoisted on the flagpole.

How to tag

The value should be a Wikidata item identifier, including the "Q" prefix.

The Wikidata item should have a claim of being an instance of a flag (either directly or indirectly). In other words, it should be the item for the flag, not the government or organization that the flag represents.

A few very tall flagpoles are notable enough for their own Wikipedia articles and thus their own Wikidata items. The Wikidata QID representing the flagpole itself goes in wikidata=*.

Rationale

This key is especially useful when other tags like flag:type=* and country=* are ambiguous. For example:

  • For flag:type=regional, flag:type=organisation, etc., the specific flag cannot be inferred from the flag:type=* and country=* tags alone. A renderer might guess a flag based on the flagpole's location, but a flag for one region may fly in a neighboring region for many reasons.
  • The flag of South Vietnam is still commonly flown in some regions with large overseas Vietnamese communities. The flag would be tagged flag:type=national country=VN, because South Vietnam had the ISO 3166-1 alpha-2 code VN before it was repurposed for a unified Vietnam. But a renderer that only considers country=* would draw the present-day flag of Vietnam, which is politically incorrect and highly sensitive in some regions. So flag:wikidata=Q1740429 allows renderers to render the correct flag.
  • At some monuments in the United States, the flag flown has fewer than 50 stars or more than 13 stripes. A Wikidata QID for the Betsy Ross flag or any of its successors allows renderers to render a historically accurate flag.

Creating a Wikidata item

Sometimes you may need to create a Wikidata item to represent the flag you're mapping. Note that Wikidata items are subject to the Wikidata notability policy, which is stricter than OpenStreetMap's inclusion standards. A flag can be mapped in OSM as long as it exists on the ground – even if it's a one-off, such as the logo of an obscure secondary school athletic team on a white field, or a vanity flag. But such flags are unlikely to be considered notable for Wikidata.

Even if the flag is commonplace, you should take one or more of these steps to ensure that the Wikidata item looks notable enough so it doesn't get deleted:

If the flag is too obscure to meet any of these requirements, use flag:name=* and flag:colour=* instead of flag:wikidata=*.

Beyond the bare minimum, a good Wikidata flag item can also have image (P18), color (P462), and aspect ratio (P2061) statements, which allow the renderer to display the correct design and can help a future mapper verify that the same flag is still flying at a particular flagpole.