Jump to content

User:XLinkBot/Customised warnings

From Wikipedia, the free encyclopedia

XLinkBot provides customised warnings for certain rules:

  1. media files:
    "If the external link you inserted or changed was to a media file (e.g. an image or a sound or video file) on an external server, then note that linking to such files may be subject to Wikipedia's copyright policy and therefore probably should not be linked to. Please consider using our upload facility to upload a suitable media file."
  2. petition sites:
    "If the external link you inserted or changed was to a petition site then please note that wikipedia is not a soapbox, and that such links generally should not be included."
  3. Free host sites:
    "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 creators copyright (see Linking to copyrighted works), or they are not written by a recognised, reliable source. Linking to sites that you are involved with is also strongly discouraged (see conflict of interest)."
  4. Pay-per-view sites:
    "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 advertising service. Linking to sites that you are involved with is also strongly discouraged (see conflict of interest)."
  5. etc.

These warnings can be adapted in the settings, through adding a keyword to 'ownremark' (separate keywords with '|'), and then adding two unique settings to the list '<keyword>rule', a regex, for the recognition of the rule it should give the adapted warning for, and '<keyword>text' for the text to be inserted when the rule is triggered. E.g.:

ownremark=image|media|petition
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.

XLinkBot sees that 'petition' has an own remark, and the rule and text are to be found in 'petitionrule' and 'petitiontext'