手册:$wgRecentChangesFlags

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgRecentChangesFlags and the translation is 21% complete.

Other languages:
English • ‎español • ‎français • ‎italiano • ‎magyar • ‎polski • ‎português • ‎中文 • ‎日本語
最近更改: $wgRecentChangesFlags
Flags (letter symbols) shown in recent changes and watchlist to indicate certain types of edits.
引进版本:1.22.0
移除版本:仍在使用
允许的值:(数组)
默认值:(参见下方)
其他设置: 按首字母排序 | 按功能排序

Details

Allow modification of flags on Special:RecentChanges, Special:Watchlist and Special:RecentChangesLinked.

  • The 'letter' key is a message, which is used as text of the abbr.
  • The 'title' key is a message, which is used as title attribute of the abbr.
  • The optional 'class' key allows to set a CSS class different than the flag name.
  • The optional 'grouping' key allows to set how top-level flag is determined.
    • 'any' will set the top-level flag if any line contains the flag.
    • 'all' will only be set if all lines contain the flag.

Default value

MediaWiki版本: 1.27
$wgRecentChangesFlags = [
	'newpage' => [
		'letter' => 'newpageletter',
		'title' => 'recentchanges-label-newpage',
		'legend' => 'recentchanges-legend-newpage',
		'grouping' => 'any',
	],
	'minor' => [
		'letter' => 'minoreditletter',
		'title' => 'recentchanges-label-minor',
		'legend' => 'recentchanges-legend-minor',
		'class' => 'minoredit',
		'grouping' => 'all',
	],
	'bot' => [
		'letter' => 'boteditletter',
		'title' => 'recentchanges-label-bot',
		'legend' => 'recentchanges-legend-bot',
		'class' => 'botedit',
		'grouping' => 'all',
	],
	'unpatrolled' => [
		'letter' => 'unpatrolledletter',
		'title' => 'recentchanges-label-unpatrolled',
		'legend' => 'recentchanges-legend-unpatrolled',
		'grouping' => 'any',
	],
];
MediaWiki版本s: 1.22 – 1.26
$wgRecentChangesFlags = array(
	'newpage' => array(
		'letter' => 'newpageletter',
		'title' => 'recentchanges-label-newpage',
		'legend' => 'recentchanges-legend-newpage',
	),
	'minor' => array(
		'letter' => 'minoreditletter',
		'title' => 'recentchanges-label-minor',
		'legend' => 'recentchanges-legend-minor',
		'class' => 'minoredit',
	),
	'bot' => array(
		'letter' => 'boteditletter',
		'title' => 'recentchanges-label-bot',
		'legend' => 'recentchanges-legend-bot',
		'class' => 'botedit',
	),
	'unpatrolled' => array(
		'letter' => 'unpatrolledletter',
		'title' => 'recentchanges-label-unpatrolled',
		'legend' => 'recentchanges-legend-unpatrolled',
	),
);

See also