Modul:GetNumber/Units

Aus Wikivoyage

Die Dokumentation für dieses Modul kann unter Modul:GetNumber/Units/Doku erstellt werden

return {
   -- property
   -- area
   P2046 = { standard = "Q712226", label = 'Fläche', cssClass = 'voy-qb-item-area' },
   -- length
   P2043 = { standard = "Q828224", label = 'Länge', cssClass = 'voy-qb-item-length' },
   -- width
   P2049 = { standard = "Q828224", label = 'Breite', cssClass = 'voy-qb-item-width' },
   -- altitude
   P2044 = { standard = "Q11573", label = 'Höhe', cssClass = 'voy-qb-item-altitude' },
   -- population
   P1082 = { standard = "1", label = 'Einwohnerzahl', cssClass = 'voy-qb-item-population' },
   -- passengers
   P3872 = { standard = "1", label = 'Passagierzahl', cssClass = 'voy-qb-item-passengers' },
   -- coordinates (not shown in infoboxes directly)
   P625 = { standard = "1", label = 'Koordinate', cssClass = '' },
   -- mains voltage
   P2884 = { standard = "Q25250", label = 'Spannung', cssClass = 'voy-qb-item-mains-voltage' },
   -- height
   P2048 = { standard = "Q11573", label = 'Höhe', cssClass = 'voy-qb-item-height' },
   -- vertical depth
   P4511 = { standard = "Q11573", label = 'Tiefe', cssClass = 'voy-qb-item-vertical-depth' },
   -- fee
   P2555 = { standard = "1", label = 'Gebühr', cssClass = 'voy-qb-item-fee' },
   -- price (currency exchange rate)
   P2284 = { standard = "Q4916", label = 'Preis', cssClass = 'voy-qb-item-price' },
   -- units
   -- area
   -- hectare
   Q35852 = {
      short = 'ha', long = 'Hektar', longSingle = 'Hektar',
      conversion = {}
   },
   -- square kilometres
   Q712226 = {
      short = 'km²', long = 'Quadratkilometer', longSingle = 'Quadratkilometer',
      conversion = {
         -- Quadratmeile
         Q232291 = 0.3861022,
         -- Hektar
         Q35852 = 100,
         -- Quadratfuß
         Q857027 = 10763910 
      }
   },
   -- square miles
   Q232291 = {
      short = 'mi²', long  = 'Quadratmeilen', longSingle = 'Quadratmeile',
      conversion = {
         Q712226 = 2589988.110336,
         -- Hektar
         Q35852 = 258.9988,
         -- Quadratfuß
         Q857027 = 27878400 
      }
   },
   -- length
   -- Meter
   Q11573 = {
      short = 'm', long = 'Meter', longSingle = 'Meter',
      conversion = {
      	 -- Fuß
         Q3710 = 3.28084,
         -- Kilometer
         Q828224 = 0.001
      }
   },
   -- Kilometer
   Q828224 = {
      short = 'km', long = 'Kilometer', longSingle = 'Kilometer',
      conversion = {
         -- Meter
         Q11573 = 1000
      }
   },
   -- Fuß
   Q3710 = {
      short = 'ft', long = 'Fuß', longSingle = 'Fuß',
      conversion = {
         Q11573  = 0.3048006
      }
   },
   -- Volt
   Q25250 = {
      short = 'V', long = 'Volt', longSingle = 'Volt',
      conversion = {
      }
   },
   -- Euro
   Q4916 = {
      short = '€', long = 'Euro', longSingle = 'Euro',
      conversion = {}
   }
}