మూస:Convert/+/-: కూర్పుల మధ్య తేడాలు

వికీపీడియా నుండి
Jump to navigation Jump to search
చి Changed protection level of Template:Convert/+/-: Not quite high-risk enough now that we have a trusted template editor right. ([Edit=Protected template] (indefinite) [Move=Protected template] (indefinite))
చి 1 కూర్పు: Conversion Templates from en:wp as per KVR.Lohith's request
 
(తేడా లేదు)

00:55, 18 నవంబరు 2013 నాటి చిట్టచివరి కూర్పు

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


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).

"https://te.wikipedia.org/w/index.php?title=మూస:Convert/%2B/-&oldid=950160" నుండి వెలికితీశారు