Template:George Floyd protests map/sandbox
This is the template sandbox page for Template:George Floyd protests map (diff). See also the companion subpage for test cases. |
This map displays cities with George Floyd protests with more than 100 participants. The map data is stored in Wikimedia Commons to work around software issues with the amount of data when stored locally. There is a master map data file containing all protests and jurisdiction-specific map files containing protests only within a region. The master map is located at commons:Data:George Floyd protests.map, and jurisdiction maps are located at (for example) commons:Data:George Floyd protests/California.map). All maps are listed here.
To contribute:
Preflight checklist
- Make sure the location is not yet on the map.
- Make sure there were at least 100 protestors.
- Ensure the protest is listed and cited in the US list, International list, or one of the state/location-specific articles linked from the topic template.
- Update the text of those articles—WITH SOURCES—if the location is not yet listed.
Then, and only then:
- Find the decimal representation of a locations's coordinates. For example, for Minneapolis, click the coordinates in the infobox on the Minneapolis article, and copy the decimal representation
44.981944, -93.269167
from the top of the GeoHack page. - Update the map data on Commons. The master map is located at commons:Data:George Floyd protests.map, and jurisdiction maps are located at (for example) commons:Data:George Floyd protests/California.map). On both maps, use "Edit source" and add the new point as JSON. (You can mimic the format of any city to add another city.)
Thank you!
To use: {{George Floyd protests map}}
, optionally with arguments.
You can specify these parameters that'll be passed to {{maplink}}:
- width — default:
350
- height — default:
250
- zoom — default:
3
- coords — default:
{{coord|38.828175|-96.5795}}
- text — default: (see above)
- jurisdiction — default: not set. By default, the map will show all protests, using the data from commons:Data:George Floyd protests.map. Use this parameter to show only protests for a certain jurisdiction. For example, use
|jurisdiction=California
to display only California protests from commons:Data:George Floyd protests/California.map. All jurisdictions are listed here. - infobox — default: not set. Set to
yes
(or any other value) to use formatting appropriate for infoboxes: plain frame, centered, text not displayed (appropriate text should instead be placed in the relevant caption parameter).
For example, a large world map is generated by {{George Floyd protests map|width=1000|height=680|zoom=2|coords={{coord|0|10}}|text=}}
.