टेम्पलेट:Val: रिवीजन सभ के बीचा में अंतर
Content deleted Content added
imported>Cpiral See previous two edit summar |
imported>Cpiral Using new LK parameter |
||
लाइन 195:
|
{{#ifexpr:{{#invoke:String|find|source={{{u}}}|target=[%[<]|plain=false}}
| {{{u}}}<!--sole u has [[mark<up>]] chars [ or <, just return it.
-->| {{#invoke:String|match
|s = [{{val/units|{{{u}}}|lk=off}}] <!-- fake links added -->
<!-- lk=off is just in case we default to Convert, for some cases
because the pattern on the next line only ever handles one link
per compound unit -->
|pattern = [^%[{{!}}]+%f[%]]
<!-- that pattern extracts link displays like this: [this] [or|this]
convert can send [this]/[that], but we can't do that. So above I had to
add fake links s = [added]. -->
|ignore_errors = true
}}
|