Mal:Ft til m

Fra Wikipedia, den frie encyklopedi
Hopp til navigering Hopp til søk
Dokumentasjonsikon Maldokumentasjon [vis] [rediger] [historikk] [oppdater]

Bruk[rediger kilde]

Advarsel Advarsel! Denne malen gjør bruk av svært kompliserte parametere. Du bør ikke redigere den med mindre du vet akkurat hva du gjør, og er forberedt på å gjøre opp igjen eventuell skade. Den skal derimot ikke være vanskelig i bruk.


Denne malen er beregnet til å gjøre en fot-til-meter-konvertering. Den konverterer enkle verdier, fra/til-verdier og to- og tredimensjoner.

Aksepterte parametre[rediger kilde]

Italicized parameters are optional:

  • num, or l (length), or from, or first unnamed parameter is a required parameter, which specifies the number of feet to be converted to meters (for single value conversions), or length (for two- and three-dimensional conversions), or start of range (for range conversions). Please do not format this parameter; i.e., use 1234 instead of 1,234.
  • w (width), or to, or second unnamed parameter is a parameter specifying width (for dimensional conversions) or end of range (for range conversions) in feet to be converted to meters. Please do not format this parameter; i.e., use 1234 instead of 1,234.
  • h (height) or third unnamed parameter is a parameter specifying height (for three-dimensional conversions) in feet to be converted to meters. Please do not format this parameter; i.e., use 1234 instead of 1,234.
  • convtype (conversion type) can take values of either range or dim. Range is only meaningful when two values are supplied for conversion. The default value is dim.
  • abbr can take values of either mos, yes, or no. Mos will show the names of the units as specified in the Manual of Style for dates and numbers (feet, m); yes will show the abbreviated names of the units (ft, m); and no will show the full names of the units (feet, meters). With dimensional conversions, all values will be separated with the "by" preposition when the parameter is set to no, and with the "×" sign when the parameter is set to yes. When the parameter is set to mos, feet values will be separated with the "by" preposition, and the converted values in meters—with the "×" sign. The default value is mos.
  • spell can take values of American or Commonwealth and is only meaningful when abbr is set to no. American will use "meters", and Commonwealth—"metres". The default value is American.
  • precision is the number of decimal digits in the converted value. The default value is 0 for converted values equal or more than 10 and 1 for converted values of less than 10.
  • wiki specifies whether the names of the units should be wikified or not and can take values of either yes or no. The default value is no.

Capitalization of the parameters is unimportant.

(markert tekst trenger oversettelse)

Bruk og eksempler[rediger kilde]

Single value conversion[rediger kilde]

Usage
{{ft to m | num | abbr | spell | precision | wiki}}
Examples
Manual of Style notation: {{ft to m|100}} → 100 feet (30 m)
Short notation: {{ft to m|100|abbr=yes}} → 100 ft (30 m)
Full notation: {{ft to m|num=100|abbr=no|spell=Commonwealth|precision=2|wiki=yes}} → 100 fot (30,48 meter)

Range conversions[rediger kilde]

Usage
{{ft to m | from | to | convtype | abbr | spell | precision | wiki}}
Examples
Manual of Style notation: {{ft to m|100|200|convtype=range}} → Mal:X0Mal:Ft to m range
Short notation: {{ft to m|100|200|convtype=range|abbr=yes}} → Mal:X0Mal:Ft to m range
Full notation: {{ft to m|from=100|to=200|convtype=range|abbr=no|spell=Commonwealth|precision=2|wiki=yes}} → Mal:X0Mal:Ft to m range

Two-dimensional conversions[rediger kilde]

Usage
{{ft to m | l | w | convtype | abbr | spell | precision | wiki}}
Examples
Manual of Style notation: {{ft to m|100|200}} → Mal:Ft to m 2D
Short notation: {{ft to m|100|200|abbr=yes}} → Mal:Ft to m 2D
Full notation: {{ft to m|l=100|w=200|convtype=dim|abbr=no|spell=Commonwealth|precision=2|wiki=yes}} → Mal:Ft to m 2D

Three-dimensional conversions[rediger kilde]

Usage
{{ft to m | l | w | h | convtype | abbr | spell | precision | wiki}}
Examples
Manual of Style notation: {{ft to m|1|2|3}} → Mal:Ft to m 3D
Short notation: {{ft to m|1|2|3|abbr=yes}} → Mal:Ft to m 3D
Full notation: {{ft to m|l=1|w=2|h=3|convtype=dim|abbr=no|spell=Commonwealth|precision=2|wiki=yes}} → Mal:Ft to m 3D
(markert tekst trenger oversettelse)

Se også[rediger kilde]