Template:Val: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Cpiral Using new LK parameter |
meta>Cpiral new delimitnum version called with "fmt|", not "fmt|gaps" |
||
| Line 31: | Line 31: | ||
There are arguments. -->|{{#if:{{{2|}}}<!-- Are there 2 or more arguments? | There are arguments. -->|{{#if:{{{2|}}}<!-- Are there 2 or more arguments? | ||
There are 2 or more arguments. -->|{{#if:{{{3|}}}<!-- Are there 3 arguments? | There are 2 or more arguments. -->|{{#if:{{{3|}}}<!-- Are there 3 arguments? | ||
There are 3 arguments. -->|{{val/delimitnum|fmt={{{fmt| | There are 3 arguments. -->|{{val/delimitnum|fmt={{{fmt|}}}|{{{1|}}}|u={{{u|{{{ul}}}}}}}}<!-- Output arg1, formatted. | ||
-->{{{end|}}}{{val/angle|{{{u}}}|{{{ul}}}}}<!-- Append something and/or add angle/percent symbol. | -->{{{end|}}}{{val/angle|{{{u}}}|{{{ul}}}}}<!-- Append something and/or add angle/percent symbol. | ||
Uncertainty = +X/-Y -->{{val/+-<!-- Add + & - errors. | Uncertainty = +X/-Y -->{{val/+-<!-- Add + & - errors. | ||
-->|w={{{w|}}}|a={{{a|r}}}<!-- Option fixed width, default right aligned | -->|w={{{w|}}}|a={{{a|r}}}<!-- Option fixed width, default right aligned | ||
-->|{{val/delimitnum|fmt={{{fmt| | -->|{{val/delimitnum|fmt={{{fmt|}}}|{{{2}}}|nosign=on}}<!-- Output +arg2, formatted. | ||
-->{{{+errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!-- Append something and/or add angle/percent symbol. | -->{{{+errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!-- Append something and/or add angle/percent symbol. | ||
-->|{{val/delimitnum|fmt={{{fmt| | -->|{{val/delimitnum|fmt={{{fmt|}}}|{{{3}}}|nosign=on}}<!-- Output -arg3, formatted. | ||
-->{{{-errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!-- Append something and/or add angle/percent symbol. | -->{{{-errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!-- Append something and/or add angle/percent symbol. | ||
-->}}<!-- End are there 3 arguments (Uncertainty = +X/-Y) | -->}}<!-- End are there 3 arguments (Uncertainty = +X/-Y) | ||
-->{{#if:{{{e|}}}<!-- Is there an exponent? | -->{{#if:{{{e|}}}<!-- Is there an exponent? | ||
There is an exponent. -->|<span style="margin-left:0.25em;margin-right:0.15em">×</span>10<sup>{{val/delimitnum|fmt={{{fmt| | There is an exponent. -->|<span style="margin-left:0.25em;margin-right:0.15em">×</span>10<sup>{{val/delimitnum|fmt={{{fmt|}}}|{{{e}}}}}</sup><!-- × 10^e | ||
-->}}<!-- End is there an exponent | -->}}<!-- End is there an exponent | ||
There are there not three arguments. -->|{{#iferror:{{#expr:0{{{2}}}}}<!-- Is second argument "(number)"? | There are there not three arguments. -->|{{#iferror:{{#expr:0{{{2}}}}}<!-- Is second argument "(number)"? | ||
Second argument is "(number)". -->|{{val/delimitnum|fmt={{{fmt| | Second argument is "(number)". -->|{{val/delimitnum|fmt={{{fmt|}}}|{{{1|}}}|u={{{u|{{{ul}}}}}}}}<!-- Output arg1, formatted. | ||
-->{{{end|}}}{{{2}}}<!-- Uncertainty (X) | -->{{{end|}}}{{{2}}}<!-- Uncertainty (X) | ||
-->{{val/angle|{{{u}}}|{{{ul}}}}}<!-- Add angle/percent symbol. | -->{{val/angle|{{{u}}}|{{{ul}}}}}<!-- Add angle/percent symbol. | ||
-->{{#if:{{{e|}}}<!-- Is there an exponent? | -->{{#if:{{{e|}}}<!-- Is there an exponent? | ||
-->|<span style="margin-left:0.25em;margin-right:0.15em">×</span>10<sup>{{val/delimitnum|fmt={{{fmt| | -->|<span style="margin-left:0.25em;margin-right:0.15em">×</span>10<sup>{{val/delimitnum|fmt={{{fmt|}}}|{{{e}}}}}</sup><!-- × 10^e | ||
-->}}<!-- End is there an exponent | -->}}<!-- End is there an exponent | ||
Second argument is not "(number)".-->|{{#if:{{{e|}}}<!-- Is there an exponent? | Second argument is not "(number)".-->|{{#if:{{{e|}}}<!-- Is there an exponent? | ||
There is an exponent. -->|({{val/delimitnum|fmt={{{fmt| | There is an exponent. -->|({{val/delimitnum|fmt={{{fmt|}}}|{{{1|}}}|u={{{u|{{{ul}}}}}}}}<!-- Output arg1, formatted. | ||
-->{{{end|}}}{{val/angle|{{{u}}}|{{{ul}}}}}<!-- Append something and/or add angle/percent symbol. | -->{{{end|}}}{{val/angle|{{{u}}}|{{{ul}}}}}<!-- Append something and/or add angle/percent symbol. | ||
Uncertainty = ±X -->{{val/±<!-- Add ± symbol. | Uncertainty = ±X -->{{val/±<!-- Add ± symbol. | ||
-->|{{val/delimitnum|fmt={{{fmt| | -->|{{val/delimitnum|fmt={{{fmt|}}}|{{{2}}}}}<!-- Format number. | ||
-->{{{errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!-- Append something and/or add angle/percent symbol. | -->{{{errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!-- Append something and/or add angle/percent symbol. | ||
-->}})<!-- End Uncertainty = ±X | -->}})<!-- End Uncertainty = ±X | ||
--><span style="margin-left:0.25em;margin-right:0.15em">×</span>10<sup>{{val/delimitnum|fmt={{{fmt| | --><span style="margin-left:0.25em;margin-right:0.15em">×</span>10<sup>{{val/delimitnum|fmt={{{fmt|}}}|{{{e}}}}}</sup><!-- × 10^e | ||
There is no exponent. -->|{{val/delimitnum|fmt={{{fmt| | There is no exponent. -->|{{val/delimitnum|fmt={{{fmt|}}}|{{{1|}}}|u={{{u|{{{ul}}}}}}}}<!-- Output arg1, formatted. | ||
-->{{{end|}}}{{val/angle|{{{u}}}|{{{ul}}}}}<!-- Append something and/or add angle/percent symbol. | -->{{{end|}}}{{val/angle|{{{u}}}|{{{ul}}}}}<!-- Append something and/or add angle/percent symbol. | ||
Uncertainty = ±X -->{{val/±<!-- Add ± symbol. | Uncertainty = ±X -->{{val/±<!-- Add ± symbol. | ||
-->|{{val/delimitnum|fmt={{{fmt| | -->|{{val/delimitnum|fmt={{{fmt|}}}|{{{2}}}}}<!-- Format number. | ||
-->{{{errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!-- Append something and/or add angle/percent symbol. | -->{{{errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!-- Append something and/or add angle/percent symbol. | ||
-->}}<!-- End Uncertainty = ±X | -->}}<!-- End Uncertainty = ±X | ||
| Line 67: | Line 67: | ||
-->}}<!-- End second argument is "(number)"? | -->}}<!-- End second argument is "(number)"? | ||
-->}}<!-- End Are there 3 arguments? | -->}}<!-- End Are there 3 arguments? | ||
2 arguments? No -->|{{val/delimitnum|fmt={{{fmt| | 2 arguments? No -->|{{val/delimitnum|fmt={{{fmt|}}}|{{{1|}}}|u={{{u|{{{ul}}}}}}}}<!-- Output arg1, formatted. | ||
-->{{{end|}}}{{val/angle|{{{u}}}|{{{ul}}}}}<!-- Append something and/or add angle/percent symbol. | -->{{{end|}}}{{val/angle|{{{u}}}|{{{ul}}}}}<!-- Append something and/or add angle/percent symbol. | ||
-->{{#if:{{{e|}}}<!-- Is there an exponent? | -->{{#if:{{{e|}}}<!-- Is there an exponent? | ||
There is an exponent. -->|<span style="margin-left:0.25em;margin-right:0.15em">×</span>10<sup>{{val/delimitnum|fmt={{{fmt| | There is an exponent. -->|<span style="margin-left:0.25em;margin-right:0.15em">×</span>10<sup>{{val/delimitnum|fmt={{{fmt|}}}|{{{e}}}}}</sup><!-- × 10^e | ||
-->}}<!-- End is there an exponent | -->}}<!-- End is there an exponent | ||
-->}}<!-- End Are there 2 or more arguments? | -->}}<!-- End Are there 2 or more arguments? | ||
There are no arguments. -->|10<sup>{{val/delimitnum|fmt={{{fmt| | There are no arguments. -->|10<sup>{{val/delimitnum|fmt={{{fmt|}}}|{{{e|0}}}}}</sup><!-- Output 10^e only. | ||
-->}}<!-- End Are there any arguments? | -->}}<!-- End Are there any arguments? | ||
END NUMERICAL OUTPUT | END NUMERICAL OUTPUT | ||
Revision as of 21:54, 18 June 2015
Lua error in Module:Documentation at line 7: Module:Documentation/config returned boolean, table expected.