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

From blackwiki
Jump to navigation Jump to search
imported>Izno
(nix color option)
imported>Colonies Chris
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
 
This template is intended as a locator map for Australia. It is preset with 15 locations, with customizable labels and icons for those locations.
 
This template is intended as a locator map for Australia. It is preset with 15 locations, with customizable labels and icons for those locations.
 
+
{{generic template demo
 +
|adelaide-bb-icon|adelaide-label=Adelaide
 +
|brisbane-bb-icon|brisbane-label=Brisbane
 +
|canberra-bb-icon|canberra-label=Canberra
 +
|darwin-bb-icon|darwin-label=Darwin
 +
|geelong-bb-icon|geelong-label=Geelong
 +
|gold-coast-bb-icon|gold-coast-label=Gold Coast
 +
|gosford-bb-icon|gosford-label=Gosford
 +
|hobart-bb-icon|hobart-label=Hobart
 +
|melbourne-bb-icon|melbourne-label=Melbourne
 +
|newcastle-bb-icon|newcastle-label=Newcastle
 +
|perth-bb-icon|perth-label=Perth
 +
|rockhampton-bb-icon|rockhampton-label=Rockhampton
 +
|sydney-bb-icon|sydney-label=Sydney
 +
|townsville-bb-icon|townsville-label=Townsville
 +
|wollongong-bb-icon|wollongong-label=Wollongong
 +
}}
 
== Usage ==
 
== Usage ==
 
=== Parameter list ===
 
=== Parameter list ===
Line 16: Line 32:
  
 
For the parameters above, "'''''<code>adelaide</code>'''''" 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:
 
For the parameters above, "'''''<code>adelaide</code>'''''" 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:
{{col-begin}}
+
{{div col|colwidth=10em}}
{{col-4}}
 
 
* <code>adelaide</code>
 
* <code>adelaide</code>
 
* <code>brisbane</code>
 
* <code>brisbane</code>
Line 23: Line 38:
 
* <code>darwin</code>
 
* <code>darwin</code>
 
* <code>geelong</code>
 
* <code>geelong</code>
{{col-4}}
 
 
* <code>gold-coast</code>
 
* <code>gold-coast</code>
 
* <code>gosford</code>
 
* <code>gosford</code>
Line 29: Line 43:
 
* <code>melbourne</code>
 
* <code>melbourne</code>
 
* <code>newcastle</code>
 
* <code>newcastle</code>
{{col-4}}
 
 
* <code>perth</code>
 
* <code>perth</code>
 
* <code>rockhampton</code>
 
* <code>rockhampton</code>
Line 35: Line 48:
 
* <code>townsville</code>
 
* <code>townsville</code>
 
* <code>wollongong</code>
 
* <code>wollongong</code>
{{col-4}}
+
{{div col end}}
{{col-end}}
 
  
 
== See also ==
 
== See also ==
 
* {{tl|Australia Labelled Map}}
 
* {{tl|Australia Labelled Map}}
* {{tl|Location map Australia}}
+
* [[Module:Location map/data/Australia|Location map Australia]]
<includeonly>
+
<includeonly>{{Sandbox other||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- CATEGORIES HERE, THANKS -->
 
[[Category:Australia templates]]
 
[[Category:Australia templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 08:12, 21 August 2020

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

  1. redirect Template:Parameter names example

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:

  • adelaide
  • brisbane
  • canberra
  • darwin
  • geelong
  • gold-coast
  • gosford
  • hobart
  • melbourne
  • newcastle
  • perth
  • rockhampton
  • sydney
  • townsville
  • wollongong

See also