#

 
# Settings for XLinkBot
#
# Notes:
# Settings are loaded just before every revert.
#
# Syntax is as follows: 
#   * EVERY line starting with a "#" character is disregarded
#   * Every non-blank line is in the format "Setting=value"

# Setting reverting_on to 0 will stop reverting of the bot.  In this case it will still revert [[user:Beetstra/Sandbox]], which can then be used for testing.
reverting_on=0

# Enabled wikis.  These are the Wikis where XLinkBot is allowed to revert.  Separate wikis with |
#  You will then need to (at the very least) copy and protect from editing all of the following, and translate/clear: 
#   * [[:en:User:XLinkBot/Settings]] (translate all the appropriate settings)
#   * [[:en:User:XLinkBot/RevertList]] (clear, keep only the header, so you start from fresh)
#  And if you want (if these do not exist, there is no problem, but DO protect them anyway as spammers can otherwise
#   override rules on the main revertlist (especially the WhiteList):
#   * [[:en:User:XLinkBot/WhiteList]]
#   * [[:en:User:XLinkBot/OverrideList]]
#   * [[:en:User:XLinkBot/HardOverrideList]]
#   * [[:en:User:XLinkBot/RevertReferencesList]]
#   * [[:en:User:XLinkBot/UserLocks]]
#   * [[:en:User:XLinkBot/PageLocks]]
#  The bot reads first hard-coded settings, then the settings from this page, overwriting the hard-coded settings, and then
#   the local [[User:XLinkBot/Settings]] page on your wiki,
#   overwriting all settings that are set locally with the values given there.
#
#  NOTE: also tell [[User:LiWa3]] where the revertlists (/RevertList and /RevertReferencesList) are,
#   by adapting its settings here: [[User:LiWa3/Settings]]!
allowedwikis=en.wikipedia.org

botchannel=#wikipedia-spam-bot-channel

# Where is the blacklist, "Wiki" = here, "SQL" = off-wiki database.  Anything else will result in Wiki.
RevertListSource=Wiki

#This is the page XLinkBot uses to retrieve regexes that trigger his reverts.
RevertList=User:XLinkBot/RevertList

#This is the page log page for the RevertList.
RevertListLog=User:XLinkBot/RevertList requests/log

#This is the page XLinkBot uses to check if a rule is on override.
OverrideList=User:XLinkBot/OverrideList

#This is the page XLinkBot uses to check if a rule is on hard override.
HardOverrideList=User:XLinkBot/HardOverrideList

# Do I revert to myself ("revert_once = 0") or not ("revert_once = 1")
revert_once=1

# Revert all edits by a user (0), or only the last one (1)?
revertoneedit=0

# If I do revert to myself (i.e. "revert_once = 0"), do I revert the SAME user twice 
#  (DontRevertSameUserTwice = 0) or not (DontRevertSameUserTwice = 1)
#  !! See also setting "WithinReversiontime" !!
DontRevertSameUserTwice=1

# If I revert to myself (i.e. "revert_once = 0") AND revert the same user twice (DontRevertSameUserTwice = 0)
#  then, how long is there between the previous edit by this user, 
#  WithinReversiontime=indef -> never revert
#  WithinReversiontime=### -> if the previous addition by this user was more than ### seconds ago, revert again
WithinReversiontime=indef

# Do I try to detect if the external link is in a reference?
detect_refs=1

# Edits larger than 1500 are not reverted
size_limit=5000

# autoconfirm_reason can take "age", "count", or "both".  If a wrong value is used, the standard is "age".
# "age" -> if the account is created longer than 'autoconfirm_limit' seconds ago -> don't revert
# "count" -> if the account has more than 'autoconfirm_edits' edits -> don't revert
# "both" -> when both age AND count are too high -> don't revert
# "both" will result in accounts which have been created more than 'autoconfirm_limit' seconds ago, but with less than 'autoconfirm_edits' edits to be reverted.
autoconfirm_reason=both

# Autoconfirm age of an account in seconds, 7 * 24 * 60 * 60 = 604800 (7 days)
# When a user is older than this, XLinkBot does not revert, except when the link is on override
autoconfirm_limit=604800

# Autoconfirm edits of an account, 10.
# When a user has performed more edits than this, XLinkBot does not revert, except when the link is on override
autoconfirm_edits=10

# Autoconfirm edits of an account, 50.
# When a user has performed more edits than this, XLinkBot does not revert, except when the link is on override
IRC_autoconfirm_edits=50
 
# Other AntiVandalismBots, XLinkBot does not revert to these bots
AntiVandalismBots=VoABot II|ClueBot

# Which namespaces are not to be reverted
NoRevertNameSpace=Talk|User|User talk|Wikipedia|Wikipedia talk|Image|Image talk|MediaWiki|MediaWiki talk|Template|Template talk|Help|Help talk|Category|Category talk|Portal|Portal talk

# Which namespaces are to be reverted
RevertNameSpace=0

# Forget that you warned a user after .. (XLinkBot remembers when he last reverted a user, if it is more than 'Forget' seconds ago, warninglevel will be reset to '2' resulting in the bot starting with the level defined in iprestartlevel/userrestartlevel below).
Forget=14400

# Restartlevel for an IP account ('iprestartlevel') and a useraccount ('userrestartlevel'), after the 'Forget' time, XLinkBot restarts warning from this level:
# 1: good faith remark without warning
# 2: uw-spam1
# 3: uw-spam2
# 4: uw-spam3
# 5: uw-spam4
# IPs may have changing user, start with good faith remark.
iprestartlevel=1
# users should have read the good faith message earlier, start with uw-spam1
userrestartlevel=2

# 3RR checks his edits in the last 3RR_Reverttime seconds, if there are more than 3RR_Reverts in 3RR_Reverttime, XLinkBot will not revert
# 30 hours

3RR_Reverttime=108000

# Max 3 edits
# if there are more than 3RR_Reverts in 3RR_Reverttime, XLinkBot will not revert

3RR_Reverts=2

# PageLocks
PageLocks=User:XLinkBot/PageLocks

# UserLocks
UserLocks=User:XLinkBot/UserLocks

# The next 4 settings make up the majority of the warnings:

# On a first revert, no warning template is added, but this message is left
#  $pagename is replaced with the pagename where the link was added by the user.
#  $diffurl is replaced with the link to the diff of the linkaddition by the user
#  $rule is replaced with rule on the revertlist that matches the 'offending' link
#  $link is replaced with a list of links that the editor has added, which match the rule on the revertlist.
#  $user is replaced with username of the user that is being warned
firstrevertremark=Welcome to Wikipedia. Although everyone is welcome to contribute constructively to the encyclopedia, your addition of one or more external links to the page [[:$pagename]] has been reverted.

# This is the explanation of why the bot reverts
# (uses $pagename,$diffurl,$rule,$link,$user)
revertexplanation=Your edit [$diffurl here] was reverted by an automated bot that attempts to remove [[WP:NOT#REPOSITORY|unwanted links]] and [[WP:SPAM|spam]] from Wikipedia.  The external link you added or changed is on my list of links to remove and probably shouldn't be included in Wikipedia.  The external links I reverted were matching the following [[regex|regex rule(s)]]: $rule (links: $link). 

# now a set of messages specific to some rules (can be used to explain better why some rules are on the revertlist)
# the first (xxxxrule) is a list of terms that is matched with the rule and the link; separated by a |
# the second (xxxxtext) is the text that will be added when the xxxxrule matches the revert-rule

# own remarks exist for these;  ownremark is a list of names separated by a |
# e.g. if the list below contains 'email', then you need 'emailrule' and 'emailtext' defined as well.
# the remarks are parsed in the order in ownremark, and the editor will only get one remark (the one of the first match).
ownremark=image|media|petition|blog|payforview|email

# emailrule/text
# (uses $pagename,$diffurl,$rule,$link,$user)
emailrule=@
emailtext=It appears that you inserted an e-mail address to $pagename.  Wikipedia pages should not contain personal information.  For more information, please read [[Wikipedia:BLP|Wikipedia:Biography of Living People]], specifically the section about [[Wikipedia:BLP#Privacy_of_personal_information|personal information]].

# imagerule/text -> for image revert rules
# (uses $pagename,$diffurl,$rule,$link,$user)
imagerule=jpg|jpeg|png|gif|bmp|tif|tiff|swf|svg|flickr|piczo|foto|image|photo
imagetext=If the external link you inserted or changed was to a [[Wikipedia:Media|media]] file (e.g. an [[Wikipedia:Images|image]] file) on an external server, then note that linking to such files may be subject to Wikipedia's [[WP:COPYRIGHT|copyright policy]] and therefore probably should not be linked to.  Please consider using our [[Wikipedia:Upload|upload]] facility to upload a suitable media file.

# mediarule/text -> for media revert rules
# (uses $pagename,$diffurl,$rule,$link,$user)
mediarule=youtube
mediatext=If the external link you inserted or changed was to a [[Wikipedia:Media|media]] file (e.g. a [[Wikipedia:Media help|sound or video]] file) on an external server, then note that linking to such files may be subject to Wikipedia's [[WP:COPYRIGHT|copyright policy]] and therefore probably should not be linked to.  Please consider using our [[Wikipedia:Upload|upload]] facility to upload a suitable media file.  Video links are also ''strongly'' deprecated by our [[WP:ELNO|guidelines for external links]], partly because they're useless to people with slow internet connections.

# petitionrule/text, for petitions
# (uses $pagename,$diffurl,$rule,$link,$user)
petitionrule=petition
petitiontext=If the external link you inserted or changed was to a [[petition]] site then please note that wikipedia is [[WP:SOAPBOX|not a soapbox]], and that such links generally should not be included.

# blogrule/text, for blogs, forums
# (uses $pagename,$diffurl,$rule,$link,$user)
blogrule=blog|forum
blogtext=If the external link you inserted or changed was to a [[blog]], [[forum]], [[free web hosting service]], or similar site, then please check the information on the external site thoroughly. Note that such sites should probably not be linked to if they contain information that is in violation of the creator's [[Wikipedia:COPYRIGHT|copyright]] (see [[Wikipedia:COPYRIGHT#Linking to copyrighted works|Linking to copyrighted works]]), or they are not written by a recognised, [[Wikipedia:Reliable sources|reliable source]]. Linking to sites that you are involved with is also strongly discouraged (see [[Wikipedia:Conflict of interest|conflict of interest]]).

# payforviewrule/text, for rules matching pages where the maintainer of the page on the external site gets payd when people follow the external link
# (uses $pagename,$diffurl,$rule,$link,$user)
payforviewrule=ehow
payforviewtext=If the external link you inserted or changed was to a site that provides payment for people visiting the that page, then note that Wikipedia is not an [[Wikipedia:Spam|advertising service]]. Linking to sites that you are involved with is also strongly discouraged (see [[Wikipedia:Conflict of interest|conflict of interest]]).

# end of the message, it is followed by the signature of the bot.
# (uses $pagename,$diffurl,$rule,$link,$user)
endtext=If you were trying to insert an [[Wikipedia:External links|external link]] that does comply with our [[Wikipedia:List of policies|policies]] and [[Wikipedia:List of guidelines|guidelines]], then please accept my creator's apologies and feel free to undo the bot's revert.  However, if the link does not comply with our policies and guidelines, but your edit included other changes to the article, feel free to make those changes again without re-adding the link.  Please read Wikipedia's [[WP:EL|external links guideline]] for more information, and consult my [[User:XLinkBot/Reversion reasons|list of frequently-reverted sites]]. For more information about me, see [[User:XLinkBot/FAQ|my FAQ page]]. Thanks!

# if the editor is an IP, this is added after the message.
isiptext=<small>If this is a shared [[IP address]], and you didn't make the edit, please ignore this notice.</small>

# edit summary used for the notification of the user on the talkpage
# (uses $pagename,$diffurl,$rule,$link,$user) + '$level', which is the level of the revert; e.g. level 0 gives '(good faith  remark)' and level 2 gives '(second warning)';
usernotify_editsummary=BOT - Notifying user:$user of reverted link additions to [[$pagename]] $level - links: $link

# edit summary used for the revert.
# (uses $pagename,$diffurl,$rule,$link,$user) + '$revisionid', which is the revid of page reverted to
revert_editsummary=BOT--Reverting link addition(s) by [[:en:Special:Contributions/$user|$user]] to revision $revisionid ($link)

# In the above warnings, $link is replaced with a working link of the added link.  
# The following setting ('disablelinkontalkpage') contains regexes (separated by |) which when matched to the added link, will 
#  NOT result in a working link on the talkpage.
disablelinkontalkpage=\bexample\.com\b

# debug
debug=1
debug2=0

# New settings.
trustedusers=User:XLinkBot/TrustedUsers

# Trusted users for certain commands
trusted_users=Wikimedia/Beetstra|Wikimedia/Versageek

#