Difference between revisions of "Template:Normalize record"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}}|{{#explode:{{{1|}}}| (|0}}}}, {{#replace:{{#explode:{{{1|}}}|(|1}}|)|}}</includeonly><noinclude> | <includeonly>{{#if:{{{1|}}}|{{#replaceset:{{#explode:{{{1|}}}| (|0}}}}, {{#replace:{{#explode:{{{1|}}}|(|1}}|)|}}|/,([0-9])/=\1}}</includeonly><noinclude> | ||
== Description == | == Description == | ||
Normalize a record property into comma-separated values, stripping parentheses. | Normalize a record property into comma-separated values, stripping parentheses. | ||
Line 7: | Line 7: | ||
"{{Normalize record|Value (1, true, String)}}" | "{{Normalize record|Value (1, true, String)}}" | ||
<pre>"{{Normalize record|Value (1, | <pre>"{{Normalize record|Value (1, 2,588, String2}}"</pre> | ||
"{{Normalize record|Value (1, | "{{Normalize record|Value (1, 2,588, String2}}" | ||
</noinclude> | </noinclude> |
Revision as of 19:23, 1 November 2018
Description
Normalize a record property into comma-separated values, stripping parentheses.
Example
"{{Normalize record|Value (1, true, String)}}"
"Value, 1, true, String"
"{{Normalize record|Value (1, 2,588, String2}}"
"Value, 1, 2,588, String2"