Extension:CookieWarning/zh

扩展 CookieWarning 是一个小而简单的扩展，它在你的维基上添加了一个小但清晰可见的信息横幅，通知用户这个维基使用 Cookie 来正常运行. 默认消息还包括一句话，如果用户继续使用 wiki ，则用户同意 wiki 使用 Cookie.

背景
在一些国家，法律要求（如欧盟）作为网站运营商，您需要向用户申请在网站上使用 Cookie 的许可. In the EU, some of your partners may require you to ask your users to use cookies (e.g. because you use Google AdSense, which requires this notice ). To make it easier for wiki administartors to implement these notices, this extension was created (by Florianschmidtwelzow, primarily for use on droidwiki.de).

历史
This extension was merged with the former CookiePolicy extension, which provided a similar functionality and was originally written by Liz Lee for Wikia and further cleaned up and enhanced by Jack Phoenix for ShoutWiki.

-{zh-hans:配置; zh-hant:組態;}-
After the successful installation of CookieWarning, you need to enable it with the configuration option, which you need to set to true in your "LocalSettings.php". 如果你有一个页面，解释你和你的合作伙伴如何在维基中使用 Cookies ，你可能想链接到这个页面. For this, you can add another configuration option,, which simply takes the URL of the page (full or relative, but relative may not work, if you use subpages in your wiki!). Alternatively you can set  to the URL of your site's privacy policy or similar page which explains about cookies.



配置参数
还有一些其他配置，可以帮助您使用 Cookie 信息栏定位正确的用户. 下表包含所有可能的选项.



系统消息
If you would like to change the text of the messages shown navigate to the following pages and adjust as required:
 * "MediaWiki:Cookiewarning-info"
 * "MediaWiki:Cookiewarning-moreinfo-label"
 * "MediaWiki:Cookiewarning-more-link"
 * "MediaWiki:Cookiewarning-ok-label"



从CookiePolicy扩展迁移
In October 2016, the CookiePolicy extension was merged into the CookieWarning extension, as both tried to solve the same problem. 以下部分将为您提供将 CookiePolicy 迁移到 CookieWarning 所需的信息.

MediaWiki:Cookie-policy-link
The  interface message will be observed by CookieWarning, too, so you can use your customization of the message shown to the user with CookieWarning, too. However, as this is just for backwards compatibility reasons, it's strongly recommended to change to the CookieWarning message, e.g. by moving the page on your wiki, or using the configuration option   to configure the target link.



基于 JavaScript 的地理定位
定位 CookiePolicy 中使用的用户的逻辑被合并到 CookieWarning 中. 但是，您需要通过在  中设置以下选项来配置某些功能以启用它：

在 CookieWarning 中，  配置选项名为   ，如果您使用它，您需要在 LocalSettings.php 中更改它.



这太简单了！我需要帮助！（也就是说，我发现了一个一个 BUG ，我该怎么办？）
You can always request help and report problems on the talk page or at Phabricator.