Template:Noparen

From Magic: The Gathering Wiki
Jump to navigation Jump to search

This link-formatting template removes parenthetical disambiguation phrases from strings. For example, {{noparen|Zendikar (plane)}} is rendered as Zendikar. The template works by invoking Module:String to remove the first ( and every subsequent character; it may produce unexpected results if ( is used in an unorthodox way—for example, B( (frowny sunglasses emoji) renders as B. If there is no (, the string is returned as-is: {{noparen|Jace Beleren}} is rendered as Jace Beleren. If the first character is a (, it's ignored; e.g., {{noparen|(: Happy Days}} and {{noparen|(: Happy Days (Twitch Streamer)}} both render as (: Happy Days.