Template:NZshield/doc

From Wikipedia, the free encyclopedia

This is the basic syntax you need to get a New Zealand shield for use in a junction listing. Just place this prior to a road name and fill in the variables.

Usage[edit]

{{NZshield|1|2|3|4|5|6|7|8}}

Here's what you should fill in[edit]

  • 1, 3, 5, 7: The code for the type of route. See the table below for the codes to use.
  • 2, 4, 6, 8: The route number.
  • Parameters 3 to 8 are optional, and should only be used when two or more routes are multiplexed on the same road.
  • Always use an even number of parameters, as using an odd number of parameters will generate an error.
  • The parameters replace the numbers, i.e. it should not be 1=S, just simply S.

Route Types[edit]

Route Type Code Example Example image
State Highway SH {{NZshield|SH|1}}
State Highway (Spur) {{NZshield|SH|8a}}

Other settings[edit]

  • Alt text: By default, alt text and image linking is turned off. Use |alt=on to include alt text (e.g. State Route 2) and the default image link.
  • Size: The default size is x20px (height of 20 pixels). To change this, use |size= parameter, which accepts the same values as the [[File ]] syntax.
Examples
What you type What you get
{{NZshield|SH|2|alt=on}} State Highway 2
{{NZshield|SH|2|size=35px}}