Template:Delink

How it works

 * 1) If there is   take the bit between the first pair else the whole thing
 * 2) If there is a | take the bit before the | else the whole thing

Examples

 * Paris
 * Paris
 * Paris
 * Paris
 * London
 * London
 * London
 * London