Template:Val: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Cpiral
if a solu u= has markup chars [ or < in it, return it as is, else proceed as usual
meta>Cpiral
Undid revision 666570516 by Cpiral (talk)
Line 193: Line 193:
  | <!-- No up/upl -->
  | <!-- No up/upl -->
   {{#if:{{{u|}}}
   {{#if:{{{u|}}}
     {{#ifexpr:{{#invoke:String|find|source={{{u}}}|target=[%[<]|plain=false}}
     |
       |&nbsp;{{{u}}}<!--a sole u has [[mark<up>]], just return it as is
       &nbsp;{{#invoke:String|match
      |&nbsp;{{#invoke:String|match
         |s = {{val/units|{{{u}}}}}
         |s = {{val/units|{{{u}}}}}
         |pattern = [^%[{{!}}]+%f[%]]
         |pattern = [^%[{{!}}]+%f[%]]

Revision as of 02:37, 12 June 2015