Difference between revisions of "Template:George Floyd protests map/doc"

From blackwiki
Jump to navigation Jump to search
imported>Davidwr
(move actual documentation from "noinclude" section to "documentation" sub-page)
imported>Davidwr
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
+
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->\
  
 
<div style="border-left: 5px solid red; padding-left: 1rem;">
 
<div style="border-left: 5px solid red; padding-left: 1rem;">
Line 21: Line 21:
  
 
<div style="border-left: 5px solid green; padding-left: 1rem;">
 
<div style="border-left: 5px solid green; padding-left: 1rem;">
To use: <code><nowiki>{{George Floyd protests map}}</nowiki></code>, optionally with arguments.
+
To use: <code><nowiki>{{George Floyd protests map}}</nowiki></code> or its smaller sub-maps, <code><nowiki>{{George Floyd protests map/US}}</nowiki></code> and <code><nowiki>{{George Floyd protests map/non-US}}</nowiki></code>, optionally with arguments.
  
 
You can specify these parameters that'll be passed to {{tl|maplink}}:
 
You can specify these parameters that'll be passed to {{tl|maplink}}:

Revision as of 02:42, 18 October 2020

\

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.
  • 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}} or its smaller sub-maps, {{George Floyd protests map/US}} and {{George Floyd protests map/non-US}}, 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=}}.