Difference between revisions of "Template:Australia locator map/doc"

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
(Remove Template:BaseballIcon per TfD)
imported>Izno
(nix color option)
Line 9: Line 9:
 
:* Don't use "px" at the end of the number, it's already coded for.
 
:* Don't use "px" at the end of the number, it's already coded for.
 
*  <code>'''adelaide-label'''</code> - the label for the location
 
*  <code>'''adelaide-label'''</code> - the label for the location
*  <code>'''adelaide-color'''</code> - the color of the label's text
 
:* Defaults to black (#000000).
 
:* Can either be in RGB format ("#xxyyzz" where ''xx'' is the hexadecimal value for ''red'', ''yy'' is ''green'', and ''zz'' is ''blue'') or a [[web color]] name.
 
 
*  <code>'''adelaide-icon'''</code> - the name of the image for the location
 
*  <code>'''adelaide-icon'''</code> - the name of the image for the location
 
:* Only the filename (with extension) should be used.
 
:* Only the filename (with extension) should be used.

Revision as of 18:45, 6 November 2017

This template is intended as a locator map for Australia. It is preset with 15 locations, with customizable labels and icons for those locations.

Usage

Parameter list

  • size - the width of the template in pixels
  • Defaults to 450.
  • Don't use "px" at the end of the number, it's already coded for.
  • adelaide-label - the label for the location
  • adelaide-icon - the name of the image for the location
  • Only the filename (with extension) should be used.
  • For best results, the file should be in a 3:2 width:height format. Variations on this will likely make the icon appear either too north (eg 2:1) or too far west (eg 1:1).
  • adelaide-bb-icon - to use a standard red pin.
  • Only the icon parameter is required. Size and alignment are preset.

For the parameters above, "adelaide" can be substituted for any of the other locations, following the same format. The full list of locations in the format accepted by the template is:

See also