Please cotinue at: Parsoid/Language conversion/Preprocessor fixups/20170501#wikidatawiki
Example. Such a template would be like :en:Template:Infobox chemical
<nowiki>{{infobox |label1=IUPAC name |data1={{#property|P123456}} }}</nowiki>
With the property value being, example case, "3-<nowiki/>{[(1''S'',2''R'')-2,15-Dimethyl-5,14-dioxotetracyclo]sulfanyl}-propanoic acid" (that is: has the tricky code, unescaped really there/here not for obvious reason).
Note 1: Actually not often applied this way in enwiki chemical templates, because editors are worried about data quality & sourcing.
Note 2: The IUPAC name is not yet a Property in Wikidata. The example stays.
Now, we know that the value is safe within Wikidata. But in this case, it is read into an enwiki article for regular template parameter processing. This way, that value, while safe in WD, can create the error we are trying to prevent, in enwiki.