Template:Weight npn: Difference between revisions

Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
(Utility template for a trial of a cleaned-up weight template)
 
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{p|}}}|
<includeonly>{{#if:{{{p|}}}|
{{#if:{{{k|}}}|{{{p|}}}&nbsp;lb ({{{k|}}}&nbsp;kg)|{{{p|}}}&nbsp;lb ({{#expr:({{{p|0}}}/2.2) round {{{round|0}}} }}&nbsp;kg)}}| {{#if:{{{k|}}}|{{{k|0}}}&nbsp;kg ({{#expr:({{{k|0}}}*2.2) round {{{round|0}}} }}&nbsp;lb)}}
{{#if:{{{k|}}}|{{{p|}}}&nbsp;lb ({{{k|}}}&nbsp;kg)|{{{p|}}}&nbsp;lb ({{#expr:( ({{{p|0}}}/2.2) round {{{r|0}}} ) }}&nbsp;kg)}}| {{#if:{{{k|}}}|{{{k|0}}}&nbsp;kg ({{#expr:( ({{{k|0}}}*2.2) round {{{r|0}}} ) }}&nbsp;lb)}}
}}</includeonly><noinclude>{{documentation}}
}}</includeonly><noinclude>{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 05:08, 24 June 2008

[edit] Template documentation

DO NOT USE

This template is still in progress, please don't expect it to be useful yet.


Normalized Parameter Names for weight template

This is for use as a normalized form of the weight styling template, thus allowing some of the fragility of the older weight template to be separated out.

Parameters

  • p: weight in pounds
  • k: weight in kilograms
  • r: decimal places to round numbers to

Usage

Examples of how to use this template:

  • {{weight_npn|k=70}} → 70 kg (154 lb)
  • {{weight_npn|p=154}} → 154 lb (70 kg)
  • {{weight_npn|k=73.34|r=2}} → 73.34 kg (161.35 lb)
  • {{weight_npn|p=154|k=55}} → 154 lb (55 kg)

...if you don't want to actually convert your measurements :)