Difference between revisions of "Template:Infobox element/symbol-to-saw/overview-compare-wikidata/to-plain-number"
Jump to navigation
Jump to search
Template documentation
imported>DePiep m (DePiep moved page Template:Infobox element/symbol-to-saw/overview-compare-wikidata/remove-span to Template:Infobox element/symbol-to-saw/overview-compare-wikidata/to-plain-number: has more functions) |
imported>DePiep |
||
| Line 1: | Line 1: | ||
| − | {{trim|1= | + | <noinclude>{{documentation|content= |
| + | Bring extended input values to plain number | ||
| + | * remove 'dalton' unit (wd); done elsewhere | ||
| + | * remove any <span> (arguments, /-closing); regex text handling (no module found) | ||
| + | * remove any trailing numbers; like "(2)" and "±0.002" uncertainty) | ||
| + | }}</noinclude>{{trim|1= | ||
{{#invoke:String|match|s= | {{#invoke:String|match|s= | ||
{{#invoke:string|replace|source={{{1|x}}} |pattern=%<%/?span[^%>]*%> |replace=|plain=false}} | {{#invoke:string|replace|source={{{1|x}}} |pattern=%<%/?span[^%>]*%> |replace=|plain=false}} | ||
|pattern=^[%d%. ]+|plain=false |nomatch=}} | |pattern=^[%d%. ]+|plain=false |nomatch=}} | ||
}} | }} | ||
Latest revision as of 14:11, 18 October 2020
Bring extended input values to plain number
- remove 'dalton' unit (wd); done elsewhere
- remove any <span> (arguments, /-closing); regex text handling (no module found)
- remove any trailing numbers; like "(2)" and "±0.002" uncertainty)
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |