Please forgive the slight inconvenience in creating a new account. Due to juvenile delinquents spamming garbage to the site, we had to install a "Captcha", which can differentiate a spam bot from a human. Once you open your account, confirm it by returning the email, and identifying yourself, we will give you edit privileges. Just request them by leaving a message at click here.


From English WikiChiro
Revision as of 23:59, 20 August 2015 by ChiroWikiSysop (Talk | contribs) (Created page with "{{convert/{{{4}}}|{{{1}}}|-|{{{3}}}<!-- -->|{{#ifeq:{{#expr:({{{5}}}+0)*0}}|0|def|{{{5}}}}}<!--param. 4 -->|{{{6|}}}<!--set parameter 5-- -->|{{{7|}}}<!--set parameter 6-- -->...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Template-info.png Template documentation

The Template:Convert/- (for ranges using "-") is invoked as the first template below {Convert}, for converting ranges such as {{Convert|2|-|4|ft|m}}. It immediately invokes Convert/{4}, for the input unit {4}, passing the range of input numbers as "{1}|-|{3}". Having obtained all 8 parameters, {1}|-|{3}...{8}, it sets the precision "s" from either parameter {5}, {6} or {8} (depending on whichever is the numeric round-number); otherwise, the precision is set as: s=(0.5)+(0{{{s}}}). It passes {d} down as Dual/{d} to invoke subtemplate Convert/Dual/{d} which displays the dual-range (rather than a typical single amount). For any customization, such as disp=x, the parameters {6} and {7} are passed as {5} and {6} (or null if none).