Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Jimp
(error for -ve {{{2}}} rather than +ve {{{3}}}. See Template_talk:Val#Bug: val can't do zero negative uncertainties.)
meta>Jimp
(simpler way to throw out the sign)
Line 49: Line 49:
                               Option fixed width, default right aligned
                               Option fixed width, default right aligned


                         -->p=+{{val/delimitnum|fmt={{{fmt|gaps}}}|{{#invoke:String|replace|{{{2}}}|+}}}}<!--
                         -->p=+{{val/delimitnum|fmt={{{fmt|gaps}}}|{{{2}}}|nosign=on}}<!--
                               Output +arg2, formatted.
                               Output +arg2, formatted.
                         -->{{{+errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}|<!--
                         -->{{{+errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}|<!--
                               Append something and/or add angle/percent symbol.
                               Append something and/or add angle/percent symbol.
   
   
                         -->b=−{{val/delimitnum|fmt={{{fmt|gaps}}}|{{#invoke:String|replace|{{{3}}}|-}}}}<!--
                         -->b=−{{val/delimitnum|fmt={{{fmt|gaps}}}|{{{3}}}|nosign=on}}<!--
                               Output -arg3, formatted.
                               Output -arg3, formatted.
                         -->{{{-errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!--
                         -->{{{-errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!--

Revision as of 10:58, 1 May 2015