Manual:$wgSearchHighlightBoundaries/zh
From Linux Web Expert
<translate> Search</translate>: $wgSearchHighlightBoundaries | |
---|---|
Regexp to match word boundaries |
|
<translate> Introduced in version:</translate> | 1.13.0 (r34210) |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (regex string) |
<translate> Default value:</translate> | (参见下方) |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
细节
Regexp to match word boundaries, defaults for non-CJK languages should be empty for CJK since the words are not separate.
默认值
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>"><translate> ≥</translate> 1.39
<translate> MediaWiki version:</translate> |
$wgSearchHighlightBoundaries = '[\\p{Z}\\p{P}\\p{C}]';
1.18 – 1.38
<translate> MediaWiki versions:</translate> |
$wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]';
1.13 – 1.17
<translate> MediaWiki versions:</translate> |
$wgSearchHighlightBoundaries = version_compare("5.1", PHP_VERSION, "<")? '[\p{Z}\p{P}\p{C}]'
: '[ ,.;:!?~!@#$%\^&*\(\)+=\-\\|\[\]"\'<>\n\r\/{}]'; // PHP 5.0 workaround