Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Cpiral
START UNITS: refactored String module calls, plus nbsp is added here instead of val/units
meta>Cpiral
if a solu u= has markup chars [ or < in it, return it as is, else proceed as usual
Line 193: Line 193:
  | <!-- No up/upl -->
  | <!-- No up/upl -->
   {{#if:{{{u|}}}
   {{#if:{{{u|}}}
     |
     {{#ifexpr:{{#invoke:String|find|source={{{u}}}|target=[%[<]|plain=false}}
       &nbsp;{{#invoke:String|match
       |&nbsp;{{{u}}}<!--a sole u has [[mark<up>]], just return it as is
      |&nbsp;{{#invoke:String|match
         |s = {{val/units|{{{u}}}}}
         |s = {{val/units|{{{u}}}}}
         |pattern = [^%[{{!}}]+%f[%]]
         |pattern = [^%[{{!}}]+%f[%]]

Revision as of 02:35, 12 June 2015