|
Tags: Mobile edit Mobile web edit Advanced mobile edit |
| (7 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| '''OneClickArchiver''' (OCA) adds an '''Archive''' link next to every section heading on a talk page. Clicking it moves that section to the configured archive page in one step.
| | OneClickArchiver: Adds an "Archive" link to talk page sections for one-click archiving. See [[Bharatpedia:OneClickArchiver]] to activate manually (manual activation recommended for smooth work). |
| | |
| It is an optional gadget, you can enable or disable it at any time. It only affects '''your''' view and actions.
| |
| | |
| === How to enable ===
| |
| | |
| Add the following line to '''your own''' <code>common.js</code> page:
| |
| | |
| <pre>
| |
| mw.loader.load('https://en.bharatpedia.org/w/index.php?title=MediaWiki:Gadget-OneClickArchiver.js&action=raw&ctype=text/javascript&maxage=0&smaxage=0&t=' + Date.now());
| |
| </pre>
| |
| | |
| Your <code>common.js</code> page is at:
| |
| | |
| <code><nowiki>https://en.bharatpedia.org/wiki/User:YOUR_USERNAME/common.js</nowiki></code>
| |
| | |
| Replace <code>YOUR_USERNAME</code> with your actual username, then:
| |
| | |
| # Open the page in edit mode.
| |
| # Paste the line above anywhere in the file.
| |
| # Save the page.
| |
| # '''Clear your browser cache''':
| |
| #* '''Windows / Linux:''' press <code>Ctrl + Shift + Delete</code>, choose "All time", tick "Cached images and files", click "Clear".
| |
| #* '''Mac:''' press <code>Cmd + Shift + Delete</code> and do the same.
| |
| #* Then do a hard reload on any talk page with <code>Ctrl + Shift + R</code> (or <code>Cmd + Shift + R</code>).
| |
| | |
| === How to disable ===
| |
| | |
| Just remove that line from your <code>common.js</code> and save. Clear your cache again. The Archive links will disappear.
| |
| | |
| === How to use ===
| |
| | |
| # Go to any talk page.
| |
| # Next to every section heading you will see a small '''[ Archive ]''' link.
| |
| # Click it.
| |
| # A popup appears showing progress. The section is copied to the archive page and removed from the talk page.
| |
| # The page reloads automatically.
| |
| | |
| By default, sections are archived to:
| |
| | |
| <pre>
| |
| <Page name>/Archive 1
| |
| <Page name>/Archive 2
| |
| ...
| |
| </pre>
| |
| | |
| If you want a custom archive location, add the following template to the top of the talk page:
| |
| | |
| <pre>
| |
| {{Archive config
| |
| | archive = Talk:Example/Archive %(counter)d
| |
| | counter = 1
| |
| | maxsize = 100K
| |
| | header = {{Archive}}
| |
| }}
| |
| </pre>
| |
| | |
| === Notes ===
| |
| | |
| * If the script does not appear, '''clear your browser cache''' first. This solves the issue in almost every case.
| |
| * The Archive link only appears on talk pages (namespaces 1, 3, 5, 7, 9, 11, 13, 15).
| |
| * If a section is marked with <code>Do Not Archive Until</code>, it will not be archived until that date passes.
| |
| * Do not click Archive on a section you want to keep, the action is immediate and cannot be undone with a single click. You would need to restore it from the archive page's history.
| |
| | |
| === Report problems ===
| |
| | |
| Post on the [[MediaWiki talk:Gadget-OneClickArchiver|talk page]] with:
| |
| * The page where it failed
| |
| * Your browser and OS
| |
| * Any error messages from the browser console (press <code>F12</code> → Console tab)
| |
OneClickArchiver: Adds an "Archive" link to talk page sections for one-click archiving. See Bharatpedia:OneClickArchiver to activate manually (manual activation recommended for smooth work).