I personally prefer to add some spaces in the piped entrys for readablitiy purposes. Some examples of what I mean:

This creates href links that have a trailing "_". These generally seem to work, but these trailing _ don't really belong.

This should be able to be solved simply by trim()ing the string before building the link.

It should be noted that you can add these spaces when using wikimedia sites.

Thanks,
James