Template:State Simple/File Entry

From OpenStreetMap Wiki
Jump to: navigation, search

Generate a reference to a state file, with some defaults:

Parameters:

  • 1 = Level as it appears in the file name (no NA).
  • 2 = State name (Foot, Bike, ...)
  • 3 = Describing text (defaults to Parameter 1)
  • 4 = Suffix to the text (preceded by a space if present; defaults to "(<level>/4)".)
  • ext = Extension (defaults to .svg)

Examples:

  • {{State Simple/File Entry|2|Foot}} --> Foot (2/4)
  • {{State Simple/File Entry|1|Foot|ext=.png}} --> Foot (1/4)
  • {{State Simple/File Entry|2|Foot|Hiking|(2/4)}} --> Hiking (2/4)
  • {{State Simple/File Entry|2|Foot|Hiking}} --> Hiking (2/4)
  • {{State Simple/File Entry|1|Foot|Hiking}} --> Hiking (1/4)
  • {{State Simple/File Entry|0|Foot|Hiking}} --> Hiking (0/4)
  • {{State Simple/File Entry||Foot|Hiking}} --> Hiking

Only to be used from within {{State Simple}}!