手册:$wgExemptFromUserRobotsControl

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

Other languages:
English • ‎español • ‎français • ‎magyar • ‎polski • ‎português do Brasil • ‎русский • ‎中文 • ‎日本語
机器人方针: $wgExemptFromUserRobotsControl
An array of namespace keys in which the __INDEX__/__NOINDEX__ magic words will not function.
引进版本:1.14.0
移除版本:仍在使用
允许的值:(array of integers)
默认值:$wgContentNamespaces

详情

An array of namespace keys in which the __INDEX__/__NOINDEX__ magic words will not function, so users can't decide whether pages in that namespace are indexed by search engines. If set to null, default to $wgContentNamespaces .

例子:

 $wgExemptFromUserRobotsControl = array( NS_MAIN, NS_TALK, NS_PROJECT );

Or, to switch it off entirely:

 $wgExemptFromUserRobotsControl = array();