Template:Delink: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(This template is nearly entirely original)
Line 4: Line 4:
   |{{{1|}}}  
   |{{{1|}}}  
}}<noinclude>
}}<noinclude>
{{wikipedia port}}
==How it works==
==How it works==



Revision as of 15:46, 26 December 2024

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