Thanks

From Support Wiki
Jump to navigation Jump to search
Thanks
Default?
Default extensionY

Thanks is an extension for thanking editors.

Icons

To attach an icon to the "thank" button:

Checkmark

  1. You need to be a local/community admin on your wiki to follow these steps, since it involves editing pages in the MediaWiki namespace.
  2. Copy the contents of MediaWiki:Gadget-ThanksCheckmark to your wiki. This is the translation string that will display when people look at information about the gadget, so you can modify it if needed.
  3. Copy the source code to your wiki. This includes the contents of the following pages:
  4. At MediaWiki:Gadgets-definition on your wiki, APPEND ONE of the following three options, depending on what config option you want.
    • * ThanksCheckmark[ResourceLoader|type=styles|default|hidden]|ThanksCheckmark.css = it's available to everyone with no opt-out ability
    • * ThanksCheckmark[ResourceLoader|type=styles|default]|ThanksCheckmark.css = it's available to everyone but you can opt out in your user page
    • * ThanksCheckmark[ResourceLoader|type=styles]|ThanksCheckmark.css = by default it's not turned on, but you can turn it on in settings
  5. On wikis with heavily customized CSS, you may need to replace var(--wiki-icon-to-link-filter) with your own filter to colorize the icon.
  6. You may have to wait somewhere between 5 and 15 minutes at this time for server-side cache to update.
  7. Done! Make sure you cache refresh on your browser (Ctrl+F5) on the upload page to see changes.

Custom icon from a wiki file

  1. You need to be a local/community admin on your wiki to follow these steps, since it involves editing pages in the MediaWiki namespace.
  2. Copy the contents of MediaWiki:Gadget-ThanksIcon to your wiki. This is the translation string that will display when people look at information about the gadget, so you can modify it if needed.
  3. Copy the source code to your wiki. This includes the contents of the following pages:
  4. At MediaWiki:Gadgets-definition on your wiki, APPEND ONE of the following three options, depending on what config option you want.
    • * ThanksIcon[ResourceLoader|type=styles|default|hidden]|ThanksIcon.css = it's available to everyone with no opt-out ability
    • * ThanksIcon[ResourceLoader|type=styles|default]|ThanksIcon.css = it's available to everyone but you can opt out in your user page
    • * ThanksIcon[ResourceLoader|type=styles]|ThanksIcon.css = by default it's not turned on, but you can turn it on in settings
  5. Change the 18th line to point at your own icon. This should not be bigger than 64x64 pixels for performance reasons.
  6. On wikis with heavily customized CSS, you may need to replace brightness(0) var(--wiki-icon-to-link-filter) with your own filter to colorize the icon when mouse cursor is over.
  7. You may have to wait somewhere between 5 and 15 minutes at this time for server-side cache to update.
  8. Done! Make sure you cache refresh on your browser (Ctrl+F5) on the upload page to see changes.