Error creating thumbnail: File missing Join our Discord!
If you have been locked out of your account you can request a password reset here.

Template:Convert

From Internet Movie Firearms Database - Guns in Movies, TV and Video Games
Revision as of 03:41, 3 May 2012 by Zackmann08 (talk | contribs)
Jump to navigation Jump to search

This tempalte allows for an easy way to convert units. To use the template place {{convert|Value 1|Value 2}} The first value given to the template, indicates what unit you are supplying (acceptable values are kg, lbs, g, oz, in, cm, mm). The Second parameter is the value you want to convert.

Examples

Ex 1

* '''Weight''': {{convert|kg|5}}

Produces:

  • Weight: This tempalte allows for an easy way to convert units. To use the template place {{convert|Value 1|Value 2}}

The first value given to the template, indicates what unit you are supplying (acceptable values are kg, lbs, g, oz, in, cm, mm). The Second parameter is the value you want to convert.

Examples

Ex 1

* '''Weight''': {{convert|kg|5}}

Produces:

Ex 2

* '''Weight''': {{convert|oz|25}}

Produces:

Ex 3

* '''Barrel Length''': {{convert|in|5}}

Produces:

Ex 4

* '''Barrel Length''': {{convert|cm|25}}

Produces:

Ex 5

If the parameter supplied is invalid (such as ccm no output will be displayed)

* '''Barrel Length''': {{convert|ccm|25}}

Produces:

</noinclude>11.02 lbs (5 kg)

Ex 2

* '''Weight''': {{convert|oz|25}}

Produces:

  • Weight: This tempalte allows for an easy way to convert units. To use the template place {{convert|Value 1|Value 2}}

The first value given to the template, indicates what unit you are supplying (acceptable values are kg, lbs, g, oz, in, cm, mm). The Second parameter is the value you want to convert.

Examples

Ex 1

* '''Weight''': {{convert|kg|5}}

Produces:

Ex 2

* '''Weight''': {{convert|oz|25}}

Produces:

Ex 3

* '''Barrel Length''': {{convert|in|5}}

Produces:

Ex 4

* '''Barrel Length''': {{convert|cm|25}}

Produces:

Ex 5

If the parameter supplied is invalid (such as ccm no output will be displayed)

* '''Barrel Length''': {{convert|ccm|25}}

Produces:

</noinclude>1.56 lbs (0.71 kg)

Ex 3

* '''Barrel Length''': {{convert|in|5}}

Produces:

  • Barrel Length: This tempalte allows for an easy way to convert units. To use the template place {{convert|Value 1|Value 2}}

The first value given to the template, indicates what unit you are supplying (acceptable values are kg, lbs, g, oz, in, cm, mm). The Second parameter is the value you want to convert.

Examples

Ex 1

* '''Weight''': {{convert|kg|5}}

Produces:

Ex 2

* '''Weight''': {{convert|oz|25}}

Produces:

Ex 3

* '''Barrel Length''': {{convert|in|5}}

Produces:

Ex 4

* '''Barrel Length''': {{convert|cm|25}}

Produces:

Ex 5

If the parameter supplied is invalid (such as ccm no output will be displayed)

* '''Barrel Length''': {{convert|ccm|25}}

Produces:

</noinclude>5 in (12.7 cm)

Ex 4

* '''Barrel Length''': {{convert|cm|25}}

Produces:

  • Barrel Length: This tempalte allows for an easy way to convert units. To use the template place {{convert|Value 1|Value 2}}

The first value given to the template, indicates what unit you are supplying (acceptable values are kg, lbs, g, oz, in, cm, mm). The Second parameter is the value you want to convert.

Examples

Ex 1

* '''Weight''': {{convert|kg|5}}

Produces:

Ex 2

* '''Weight''': {{convert|oz|25}}

Produces:

Ex 3

* '''Barrel Length''': {{convert|in|5}}

Produces:

Ex 4

* '''Barrel Length''': {{convert|cm|25}}

Produces:

Ex 5

If the parameter supplied is invalid (such as ccm no output will be displayed)

* '''Barrel Length''': {{convert|ccm|25}}

Produces:

</noinclude>9.84 in (25 cm)

Ex 5

If the parameter supplied is invalid (such as ccm no output will be displayed)

* '''Barrel Length''': {{convert|ccm|25}}

Produces:

  • Barrel Length: This tempalte allows for an easy way to convert units. To use the template place {{convert|Value 1|Value 2}}

The first value given to the template, indicates what unit you are supplying (acceptable values are kg, lbs, g, oz, in, cm, mm). The Second parameter is the value you want to convert.

Examples

Ex 1

* '''Weight''': {{convert|kg|5}}

Produces:

Ex 2

* '''Weight''': {{convert|oz|25}}

Produces:

Ex 3

* '''Barrel Length''': {{convert|in|5}}

Produces:

Ex 4

* '''Barrel Length''': {{convert|cm|25}}

Produces:

Ex 5

If the parameter supplied is invalid (such as ccm no output will be displayed)

* '''Barrel Length''': {{convert|ccm|25}}

Produces:

</noinclude>