Changes
allow for different types of space (see talk)
<span style="white-space:nowrap;">{{#iferror:{{#expr:{{{1|1}}}}} |{{#switch:{{{1}}} |fig=  |en=  |em=  |thin=  |hair=  | }} |{{#invoke:String|rep|{{#switch:{{{2}}} |fig=  |en=  |em=  |thin=  |hair=  | }}|{{{1|1}}}}}}}</span><noinclude>
{{documentation}}
</noinclude>