Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Jimp
(add exponents for errors, move prefix outside brackets, merge exponent part with main part to a numerical part and move errors off to subtemplates. See Template talk:Val#13 May 2015 restructure.)
meta>Cpiral
No edit summary
Line 114: Line 114:
     No brackets are needed if there is no up or upl, just add the non-breaking space.
     No brackets are needed if there is no up or upl, just add the non-breaking space.


   -->|{{#if:{{{u|}}}|{{val/units|{{{u}}}|nbsp}}}}<!--
   -->|{{#if:{{{u|}}}|{{#invoke:String|match
        |{{val/unitswithlink|{{{u|}}}}}|pattern=(.+)%]%]
        |start={{#expr:{{#invoke:String|find|{{val/unitswithlink|{{{u|}}}}}|{{!}}}}+1}}}}
        |nbsp}}}}<!--
   -->{{#if:{{{ul|}}}|{{val/unitswithlink|{{{ul}}}|nbsp|ls={{{long scale}}}}}}}<!--
   -->{{#if:{{{ul|}}}|{{val/unitswithlink|{{{ul}}}|nbsp|ls={{{long scale}}}}}}}<!--
-->}}<!--  
-->}}<!--  

Revision as of 23:23, 22 May 2015