Sometimes you have a page formatted exactly how you like it and you want to use it as a template for a new page. While it's easy enough to copy the raw page content to a new page, it's much more convenient to have a button to just duplicate that page for you. That's what this extension is for.
Once installed, a "Clone Page" button will appear next to the "Edit" button on every page if your wiki is not published. Simply click the "Clone Page" button, enter a name for the cloned page, and hey presto, you're looking at a copy of the page you were just on! Make any edits to the content that you might need, then save to preserve your changes.
Installation #
To try out the clone page extension, you can do one of the following things:
- Go to your Wiki Settings and add
to the "Custom Head" text area.<script src="https://feather.wiki/extensions/v1.8.x/clone-page.js"></script>
- Save the clone page extension file to the same folder as your Feather Wiki file and add
to the "Custom Head" text area in Wiki Settings.<script src="./clone-page.js"></script>
- (This way requires that the
clone-page.js
file always remains in the same folder as your wiki file.)
- (This way requires that the
- Go to the source code for the extension, copy the code, and paste the whole script directly into the "Custom JS" text area in Wiki Settings.
After adding the extension code to your wiki, save your changes and reload the wiki. You will not be able to see the results until you save your wiki and re-load the file.
Other Languages #
This extension is available in the following other languages:
You can use the extension in an available language by adding _language-code
before .js
in any of the instructions above. For example, https://feather.wiki/extensions/v1.8.x/clone-page_hu.js
for Hungarian.
Previous Versions #
Starting with Version 1.8.0, extensions are now stored in paths that include the minor version number (i.e. extensions for version 1.8.0 are stored in extensions/v1.8.x/
) to indicate that they are incompatible with lower version numbers. The version of this extension compatible with versions of Feather Wiki below 1.8.0 can still be found at https://feather.wiki/extensions/clone-page.js
, but the old version will no longer receive updates.