Template:State Entry NA

From OpenStreetMap Wiki
Jump to: navigation, search

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


  • 1 = the state value to repesent(0, 1, 2, 3, 4, X or NA to display the respective icon,
  • 2 = the state name (part of the image file name)
  • 3 = the extension (defaults to .svg)
  • 4 = the state name to be displayed (defaults to parameter 2)

The icon name must be in the form State nameN.XXX, where name is the name of the state (Car, Train etc.), N is the state (0..4, X, NA or empty for omission of the image) and XXX is the extension chosen.

The template can be called as

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

(those forms being identical due to the defaults)

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