Template:Weight npn: Difference between revisions

Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
mNo edit summary
mNo edit summary
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)}}
}}xxx{{{round|0}}}</includeonly><noinclude>{{documentation}}
}}xxx{{{r|0}}}</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>

Revision as of 05:04, 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)xxx0
  • {{weight_npn|p=154}} → 154 lb (70 kg)xxx0
  • {{weight_npn|k=73.34|r=2}} → 73.34 kg (161.35 lb)xxx2
  • {{weight_npn|p=154|k=55}} → 154 lb (55 kg)xxx0

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