Demo:Setting multiple values using a separator
From semantic-mediawiki.org

Please consider adopting examples to fit your environment since simple duplication may not create appropriate results.
Data presented on this page are for educational and demonstration purpose only.
#set
{{#set: |Has set test 1=Example 1;Example 2;Example 3;Example 4|+sep=; |Has set test 2=More examples |Has set test 3=12+22+3+4+5+6+7+8+9+10|+sep=+ |Has set test 4=In between example |Has set test 5=123,1234,12345,|+sep= |Has set test 6=One,or,two,more,examples|+sep |Has set test 6=Last example }}
For details and verification, see the Special:Browse.
#subobject
{{#subobject: |Has subobject test 1=Example 1;Example 2;Example 3;Example 4|+sep=; |Has subobject test 2=More examples |Has subobject test 3=12+22+3+4+5+6+7+8+9+10|+sep=+ |Has subobject test 4=In between example |Has subobject test 5=123,1234,12345,|+sep= |Has subobject test 6=One; or; three; more; examples|+sep=; |Has subobject test 6=Last example }}
For details and verification, see the Special:Browse.
The possibility of using pipes "
|
" for setting multiple values like e.g. "{{#set: Has property=value1|value2 }}
" or "{{#subobject: Has property=value1|value2 }}
" respectively was deprecated starting with Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. and will be removed in a later version. It is strongly recommended to migrate to using the "|+sep
" parameter.1
References
- ^ Semantic MediaWiki: GitHub pull request gh:smw:1345