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

From blackwiki
Jump to navigation Jump to search
imported>Davidwr
m (remove stray mark)
imported>Davidwr
(hatnote listing all 3 templates)
Line 3: Line 3:
  
 
<div style="border-left: 5px solid red; padding-left: 1rem;">
 
<div style="border-left: 5px solid red; padding-left: 1rem;">
To contribute:
+
{{hatnote|There are multiple templates in this set: {{tl|George Floyd protests map}}, {{tl|George Floyd protests map/US}}, and {{tl|George Floyd protests map/non-US}}}}
 +
 
 +
==To contribute==
  
 
'''''Preflight checklist'''''
 
'''''Preflight checklist'''''
Line 19: Line 21:
 
Thank you!
 
Thank you!
 
</div>
 
</div>
 
+
==Usage==
 
<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> 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.
 
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.
Line 34: Line 36:
 
For example, a large world map is generated by <code><nowiki>{{George Floyd protests map|width=1000|height=680|zoom=2|coords={{coord|0|10}}|text=}}</nowiki></code>.
 
For example, a large world map is generated by <code><nowiki>{{George Floyd protests map|width=1000|height=680|zoom=2|coords={{coord|0|10}}|text=}}</nowiki></code>.
 
</div>
 
</div>
 +
  
 
<!--{{George Floyd protests map|width=1000|height=680|zoom=2|coords={{coord|0|10}}|text=}}-->
 
<!--{{George Floyd protests map|width=1000|height=680|zoom=2|coords={{coord|0|10}}|text=}}-->

Revision as of 02:45, 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!

Usage

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=}}.