User:Johan G/convert/rear: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Created page with "{{#if: <!-- Is the to-unit parameter missing? --> {{{1|}}} | <!-- No, the to-unit parameter is not missing -->{{#expr: 188.348149 round {{#ifeq: <!-- Is "decima...")
(No difference)

Revision as of 17:04, 6 August 2018

{{User:Johan G/convert/pds}}: Parameter to-unit missing

The following template description is not displayed when the template is inserted in an article.

Goal

This template handles showing decimals and units for User:Johan G/convert ("rear" is for rear part of the quantity).

Usage

{{User:Johan G/convert/rear|to-unit|decimals|hide-unit}}

Only to-unit is manatory, though all parameters should be passed from the main template.

to-unit
Unit to be converted to
decimals
Number of decimals. If empty, no decimals will be shown
hide-unit
If not empty the unit will not be shown in the result

Examples

Examples using different options.

Known issues

Trailing zeros in the decimals will not be shown.

Related templates