A Project of the Center for Advanced Study in the Visual Arts, National Gallery of Art
History of Early American Landscape Design

Template:Convert/x

[http://www.nga.gov/content/ngaweb/research/casva/research-projects.html A Project of the National Gallery of Art, Center for Advanced Study in the Visual Arts ]
< Template:Convert
Revision as of 17:27, April 18, 2012 by Emily Pugh (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{convert/{{{4}}}|{{{1}}}|x|{{{3}}}|{{{5}}}|||s=(0.5)+(0{{{s}}})|r={{{r}}}|d=Dual/{{{d}}}}}


The Template:Convert/x (for ranges using "x") is invoked as the first template below {Convert}, for converting ranges such as {Convert|2|x|4|ft|m}. It immediately invokes Convert/{4}, for the input unit {4}, passing the range of input numbers as "{1}|x|{3}". Having obtained all 8 parameters, {1}|x|{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).

Retrieved from "https://heald.nga.gov/mediawiki/index.php?title=Template:Convert/x&oldid=1089"

History of Early American Landscape Design contributors, "Template:Convert/x," History of Early American Landscape Design, , https://heald.nga.gov/mediawiki/index.php?title=Template:Convert/x&oldid=1089 (accessed January 23, 2022).

A Project of the Center for Advanced Study in the Visual Arts

National Gallery of Art, Washington