Template:Delink

From Valve Developer Community
Jump to navigation Jump to search

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

  • {{Delink|Paris}}
  • Paris
  • {{Delink|[[Paris]]}}
  • Paris
  • {{Delink|[[Paris|London]]}}
  • London
  • {{Delink|foo [[Paris|London]] bar}}
  • foo London bar