Difference between revisions of "Template:George Floyd protests map/sandbox"
Jump to navigation
Jump to search
imported>Davidwr (test) |
imported>Davidwr (fixup logic so {{{frame}}}=yes only if {{{content|}}} is empty) |
||
| Line 1: | Line 1: | ||
{{{content|no content}}} | {{{content|no content}}} | ||
| − | {{maplink/simplestatic|content={{{content|}}}|frame=yes|plain={{#if:{{{infobox|}}}|yes}}|frame-align={{#if:{{{infobox|}}}|center}}|frame-width={{{width|350}}}|frame-height={{{height|250}}}|zoom={{{zoom|3}}}|frame-coord={{{coords|{{coord|38.828175|-96.5795}} }}} | + | {{maplink/simplestatic|content={{{content|}}}|frame={{#if:{{{content|}}}||yes}}|plain={{#if:{{{infobox|}}}|yes}}|frame-align={{#if:{{{infobox|}}}|center}}|frame-width={{{width|350}}}|frame-height={{{height|250}}}|zoom={{{zoom|3}}}|frame-coord={{{coords|{{coord|38.828175|-96.5795}} }}} |
|text={{{text|Cities in North America with [[List of George Floyd protests in the United States|George Floyd protests]] with more than 100 participants. [[Minneapolis–Saint Paul]] is marked in red. Click the map to view a larger size and to see protests outside the frame.}}} ({{navbar|George Floyd protests map|mini=y}}) | |text={{{text|Cities in North America with [[List of George Floyd protests in the United States|George Floyd protests]] with more than 100 participants. [[Minneapolis–Saint Paul]] is marked in red. Click the map to view a larger size and to see protests outside the frame.}}} ({{navbar|George Floyd protests map|mini=y}}) | ||
|type=point|marker=city|marker-size=small | |type=point|marker=city|marker-size=small | ||
Revision as of 23:51, 17 October 2020
no content
| This is the template sandbox page for Template:George Floyd protests map (diff). See also the companion subpage for test cases. |
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.269167from the top of the GeoHack page. - Use "Edit Source" on this page to view the {{maplink}} parameters. Scroll to the bottom of the source and follow the instructions there. (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_filter — default:
^. This is a Mediawiki Lua pattern. Use^US%-MN$for just protests in Minnesota, for example. - 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=}}.
| The above documentation is transcluded from Template:George Floyd protests map/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |