FANDOM


ArchiveWallThread allows users to archive a thread on their wall with a click of a button.

Installation

Usage

To use the script, you must first configure it, by using the following options in the window.ArchiveWallThread object:

  1. string is the format of the line that will get added to your archive; use $id, $title, $user, and $date as placeholders for the thread id, thread title, user who posted the thread, and date the thread was posted.
  2. text is the text that will be added to the end of your message wall greeting; use $string as a placeholder for the line with the thread title and etc.
  3. number is the amount of characters that will be removed from your message wall greeting before text is appended; it must be a positive number.

Example:

window.ArchiveWallThread = {
    string: '[[Thread:$id|$title]]',
    text: '# $string',
    number: 0
}

(which will append # [[Thread:123456|Example]] to your message wall greeting.)

The script also supports setting page in the above object, which allows you to set a custom page name for the archives to be added to.

The following things can be changed via a i18n-js override:

  1. button-label: the text of the button.
  2. reason: the reason used for removing the thread (supports basic wikitext)
  3. summary: the summary used when editing the archive page (supports basic wikitext)
Text above can be found here (edit)
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+