|
|
@ -42,12 +42,12 @@ class Reader |
|
|
|
/// Detect IPv6 (used as no idea how to resolve square quotes in rules below) |
|
|
|
/// Detect IPv6 (used as no idea how to resolve square quotes in rules below) |
|
|
|
'/\[\[([^\[]+)\[([A-f:0-9]*)\]([^\]]+)\]\]/' => '$1~IPv6:open~$2~IPv6:close~$3', |
|
|
|
'/\[\[([^\[]+)\[([A-f:0-9]*)\]([^\]]+)\]\]/' => '$1~IPv6:open~$2~IPv6:close~$3', |
|
|
|
|
|
|
|
|
|
|
|
/// Remove extra spaces |
|
|
|
/// Remove extras |
|
|
|
'/\[\[\s*([^\|]+)\s*\|\s*([^\]]+)\s*\]\]/' => '[[$1|$2]]', |
|
|
|
'/\[\[\s*\:?([^\|]+)\s*\|\s*([^\]]+)\s*\]\]/' => '[[$1|$2]]', |
|
|
|
'/\[\[\s*([^\]]+)\s*\]\]/' => '[[$1]]', |
|
|
|
'/\[\[\s*\:?([^\]]+)\s*\]\]/' => '[[$1]]', |
|
|
|
|
|
|
|
|
|
|
|
'/\{\{\s*([^\|]+)\s*\|\s*([^\}]+)\s*\}\}/' => '{{$1|$2}}', |
|
|
|
'/\{\{\s*\:?([^\|]+)\s*\|\s*([^\}]+)\s*\}\}/' => '{{$1|$2}}', |
|
|
|
'/\{\{\s*([^\}]+)\s*\}\}/' => '{{$1}}', |
|
|
|
'/\{\{\s*\:?([^\}]+)\s*\}\}/' => '{{$1}}', |
|
|
|
|
|
|
|
|
|
|
|
/// Wikipedia |
|
|
|
/// Wikipedia |
|
|
|
'/\[\[wp([A-z]{2,})>([^\|]+)\|([^\]]+)\]\]/ui' => '$3 ( https://$1.wikipedia.org/wiki/$2 )', |
|
|
|
'/\[\[wp([A-z]{2,})>([^\|]+)\|([^\]]+)\]\]/ui' => '$3 ( https://$1.wikipedia.org/wiki/$2 )', |
|
|
|