Template:Cvt

From Zoophilia Wiki
Revision as of 18:54, 12 December 2010 by meta>Wikid77 (fixed to default parameter {3} as blank)
Jump to navigationJump to search

{{safesubst:convert/{{{2}}}|{{{1}}}|0|||||||r=re|d=LoffAonDbSoff|s=}}


The Template:Cvt is an abbreviated form of {{Convert}}, with default option "abbr=on" to show unit symbols (abbreviated). Cvt is intended for use where many conversions are needed, such as in a table. The abbreviated form allows numerous, repeated uses without cluttering the markup for the page.

Template:Cvt supports all major options of {Convert}, including to reset option abbr=off (or abbr=none, in/out, comma, or abbr=values) and lk=on (or lk=in, lk=out), adj=on (or adj=mid|xxxx), and disp=flip, "disp=x| or", "disp=x|/" and "disp=x|<|>" plus other options.

Essentially, "{{cvt}}" is equivalent to "{{convert|abbr=on}}" but 12 shorter:

{{convert|4|km|abbr=on}} → 4 km (2.5 mi)
{{cvt|4|km}} Template:Convert/km
{{cvt|9|m|ft|disp=x| or }} Template:Convert/m

For full documentation, with more examples, see: Template:Convert/doc.