Extension:DismissableSiteNotice/zh

DismissableSiteNotice扩展允许用户通过cookies关闭站点通知.

-{zh-hans:配置; zh-hant:組態;}-
该扩展提供了两个配置参数：


 * 整数. 该值被保存于cookie中.  当用户关闭站点通知时，当前的$wgMajorSiteNoticeID会被保存，并且被关闭的通知将不再显示.  $wgMajorSiteNoticeID可以在新的站点通知被设置时增加.  If $wgMajorSiteNoticeID has inbetween been incremented, then the sitenotice is shown again, even if the user closed an older sitenotice before.
 * 整数. 该值被保存于cookie中.  当用户关闭站点通知时，当前的$wgMajorSiteNoticeID会被保存，并且被关闭的通知将不再显示.  $wgMajorSiteNoticeID可以在新的站点通知被设置时增加.  If $wgMajorSiteNoticeID has inbetween been incremented, then the sitenotice is shown again, even if the user closed an older sitenotice before.


 * This allows to set whether or not it should be possible for anonymous visitors of the wiki to dismiss the sitenotice shown. 默认为“ ”. 适用于MW 1.25 +
 * This allows to set whether or not it should be possible for anonymous visitors of the wiki to dismiss the sitenotice shown. 默认为“ ”. 适用于MW 1.25 +

用法
When you add a new sitenotice and want everyone to see it, change the number on the created page "MediaWiki:Sitenotice id" by one (e.g. if it would be 5, you'd replace the page with the number 6 and so on).

The extension behavior is that it will remember the dismissal by the user and only reset after the number in has been raised. 这允许一个维基对通知进行小编辑而不导致它重新显示给所有人.