Template:Hyphenated compound word

This template splits a compound word when viewed in the "Page" namespace, but joins it when viewed from the main namespace. The two word halfs are expected in param 1 & 3. param slot 2 is discarded, as it is intended to be used to insert a blank line.