Template:Val: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Edokter Swicth to body font with kerning disabled by use of font-feature-settings (from /sandbox) |
meta>Jimp organising comments & passing parameter {{{u}}} to delimiting subtemplate so delimiting can be overridden in the case of AD, BC, BCE or CE. |
||
| Line 43: | Line 43: | ||
-->{{{p|}}}<!-- If p (prefix) is defined, display it. | -->{{{p|}}}<!-- If p (prefix) is defined, display it. | ||
-->{{#if: {{{1|}}}|<!-- Are there any arguments? | -->{{#if: {{{1|}}}|<!-- Are there any arguments? | ||
-->{{val/delimitnum|fmt={{{fmt|gaps}}}|{{{1|}}} | -->{{val/delimitnum|fmt={{{fmt|gaps}}}|{{{1|}}}|u={{{u|{{{ul}}}}}}}}<!-- | ||
Output arg1, formatted. | |||
-->{{{end|}}}<!-- | |||
-->{{#if: {{{2|}}}|<!-- Are there 2 or more arguments? | -->{{#if: {{{2|}}}|<!-- Are there 2 or more arguments? | ||
-->{{#if: {{{3|}}}|<!-- Are there 3 arguments? | -->{{#if: {{{3|}}}|<!-- Are there 3 arguments? | ||
There are three arguments. | |||
-->{{val/angle|{{{u}}}|{{{ul}}}}}<!-- Uncertainty = +X/-Y | -->{{val/angle|{{{u}}}|{{{ul}}}}}<!-- Uncertainty = +X/-Y | ||
--><span style="margin-left:0.3em;">{{su|<!-- | --><span style="margin-left:0.3em;">{{su|<!-- | ||
-->w={{{w|}}}|a={{{a|r}}}|<!-- Option fixed width, default right aligned | -->w={{{w|}}}|a={{{a|r}}}|<!-- | ||
-->p=+{{val/delimitnum|fmt={{{fmt|gaps}}}|{{{2}}}}}{{{+errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}|<!-- | Option fixed width, default right aligned | ||
-->b={{val/delimitnum|fmt={{{fmt|gaps}}}|{{{3}}}}}{{{-errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!-- | |||
-->p=+{{val/delimitnum|fmt={{{fmt|gaps}}}|{{{2}}}}}<!-- | |||
Output +arg2, formatted. | |||
-->{{{+errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}|<!-- | |||
Append something and/or add angle/percent symbol. | |||
-->b={{val/delimitnum|fmt={{{fmt|gaps}}}|{{{3}}}}}<!-- | |||
Output -arg3, formatted. | |||
-->{{{-errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!-- | |||
Append something and/or add angle/percent symbol. | |||
-->}}</span><!-- End Uncertainty = +X/-Y | -->}}</span><!-- End Uncertainty = +X/-Y | ||
-->|<!-- | |||
-->{{#if:{{#ifexpr: 0{{{2}}}}}|<!-- Second argument is "(number)" | -->|<!-- | ||
There are there not three arguments. | |||
-->{{val/angle|{{{u}}}|{{{ul}}}}}<span style="margin-left:0.3em;margin-right:0.15em">±</span>{{val/delimitnum|fmt={{{fmt|gaps}}}|{{{2}}}}}{{{errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!-- | -->{{#if:{{#ifexpr: 0{{{2}}}}}<!-- Is second argument "(number)"? | ||
-->|<!-- | |||
Second argument is "(number)". | |||
Significance = (X) | |||
-->{{{2}}}{{val/angle|{{{u}}}|{{{ul}}}}}<!-- | |||
-->|<!-- | |||
Second argument is not "(number)". | |||
Uncertainty = ±X. | |||
Add angle/percent symbol. | |||
-->{{val/angle|{{{u}}}|{{{ul}}}}}<!-- | |||
Add ± symbol. | |||
--><span style="margin-left:0.3em;margin-right:0.15em">±</span><!-- | |||
Format number. | |||
-->{{val/delimitnum|fmt={{{fmt|gaps}}}|{{{2}}}}}<!-- | |||
Append something and/or add angle/percent symbol. | |||
-->{{{errend|}}}{{val/angle|{{{u|{{{ul}}}}}}}}<!-- | |||
-->}}<!-- End second argument is "(number)"? | -->}}<!-- End second argument is "(number)"? | ||
-->}}<!-- End Are there 3 arguments? | -->}}<!-- End Are there 3 arguments? | ||
Revision as of 10:20, 27 February 2014
Lua error in Module:Documentation at line 7: Module:Documentation/config returned boolean, table expected.