Template:State Entry NA/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

Usage

This template serves to create an entry in the State templates, replacing NA with the "white" icon (thus the NA in the title).

Parameters:

  • 1 = (mandatory) state value to represent 0, 1, 2, 3, 4, X or NA to display the respective icon
  • 2 = (mandatory) feature type (part of the icon file name, usually in English)
  • 3 = (optional) file extension for the icon (defaults to .svg)
  • 4 = (optional) feature type; may be localized and translated (defaults to same value as parameter 2, i.e. the non-localized feature type)

The icon file name must be in the form File:State FeatureN.ext, where Feature is the type of feature (Car, Train, etc.), N is the state (0..4, X, NA or empty for omission of the image) and .ext is the extension chosen.

The template can be called as

  • {{State Entry NA|{{{c|}}}|Car}}
  • {{State Entry NA|{{{c|}}}|Car|}}
  • {{State Entry NA|{{{c|}}}|Car||}}
  • {{State Entry NA|{{{c|}}}|Car|.svg}}
  • {{State Entry NA|{{{c|}}}|Car|.svg|}}
  • {State Entry NA|{{{c|}}}|Car||Car}}
  • {{State Entry NA|{{{c|}}}|Car|.svg|Car}}

(those forms being identical due to the defaults)

  • {{State Entry NA|{{{c|}}}|Car||voiture}}
  • {{State Entry NA|{{{c|}}}|Car|.png}}
  • {{State Entry NA|{{{c|}}}|Car|.png|}}
  • {{State Entry NA|{{{c|}}}|Car|.png|voiture}}

See also