Template:Cvt: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Wikid77
(fixed to default parameter {3} as blank)
meta>Cymru.lass
(/doc)
Line 1: Line 1:
{{{{{|safesubst:}}}convert/{{{{{|safesubst:}}}#if:1|{{{2}}}}}|{{{{{|safesubst:}}}FORMATNUM:{{{1}}}|R}}|{{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}#expr:{{{3|0}}}*0}}|0|0}}|{{{{{|safesubst:}}}FORMATNUM:{{{3|}}}|R}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|r={{{{{|safesubst:}}}#ifeq:{{{sp}}}|us|er|re}}|d=L{{{lk|off}}}A{{{abbr|on}}}D{{{disp|b}}}S{{{adj|{{{sing|off}}}}}}|s={{{sigfig|}}}}}<noinclude>
{{{{{|safesubst:}}}convert/{{{{{|safesubst:}}}#if:1|{{{2}}}}}|{{{{{|safesubst:}}}FORMATNUM:{{{1}}}|R}}|{{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}#expr:{{{3|0}}}*0}}|0|0}}|{{{{{|safesubst:}}}FORMATNUM:{{{3|}}}|R}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|r={{{{{|safesubst:}}}#ifeq:{{{sp}}}|us|er|re}}|d=L{{{lk|off}}}A{{{abbr|on}}}D{{{disp|b}}}S{{{adj|{{{sing|off}}}}}}|s={{{sigfig|}}}}}<noinclude>
 
{{Documentation}}</noinclude>
<br>The '''Template:Cvt''' is an abbreviated form of <nowiki>{{</nowiki>[[Template:Convert|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|&nbsp;or", "disp=x|/" and "disp=x|<|>" plus other options.
 
Essentially, <nowiki>"{{cvt}}" is equivalent to "{{convert|abbr=on}}"</nowiki> but 12 shorter:
::{| style="background:transparent"
|<nowiki>{{convert|4|km|abbr=on}}</nowiki> || &rarr; {{convert|4|km|abbr=on}}
|-
|<nowiki>{{cvt|4|km}}</nowiki> || &rarr; {{cvt|4|km}}
|-
|<nowiki>{{cvt|9|m|ft|disp=x| or }}</nowiki> || &rarr; {{cvt|9|m|ft|disp=x| or }}
|}
For full documentation, with more examples, see: [[Template:Convert/doc]].
 
[[Category:2010 Convert unit subtemplates]]
[[Category:Subtemplates of Template Convert]]
</noinclude>

Revision as of 06:22, 7 January 2011

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