[Home]PageNameTutorial

UseModWiki | RecentChanges | Preferences

If you've changed your mind about the overall structure of your Wiki, such as sub-pages or page names, or you want to delete a page, you can change this after the page has been created, and the wiki software will update your existing links to point to the new page names.

You need to have Administrator privileges on your wiki. This is set up by entering an Admin Password on the "Preferences" page which matches the admin password setting ($AdminPass). After this is done, you can get to the renaming functions by appending an 'action=editlinks' to the end of your wiki URL. For example: https://www.usemod.org/cgi-bin/wiki.pl?action=editlinks (this link will fail for you unless you have an admin password for usemod.org).

Once the editlinks page is loaded, onscreen help and examples are provided to guide you through the page renaming procedure.

--PatrickSalsbury

Commands from the EditLinks? page are ...

Enter one command on each line. Commands are:
!PageName? -- deletes the page called PageName?
=OldPageName=NewPageName? -- Renames OldPageName to NewPageName? and updates links to OldPageName.
|OldPageName|NewPageName? -- Changes links to OldPageName to NewPageName?. (Used to rename links to non-existing pages.)

(insert edit field here)

(_) Edit RecentChanges
(_) Substitute text for rename

Explained...

!PageName? -- deletes the page called PageName?
This means that if you use this command, the page will be deleted from the system. This will not alter any links within wiki pages.

=OldPageName=NewPageName? -- Renames OldPageName to NewPageName? and updates links to OldPageName.
This means that you can use this command to change a page name (OldPageName) to a new name (NewPageName?). This will change the wiki name of the page to the new name and (presumably) edit all the pages with links to the OldPageName and change these links to links to the NewPageName?. Note: OldPageName is case-sensitive, so you must start it with an uppercase letter. (The first letter of NewPageName? will be automatically translated to uppercase.)

|OldPageName|NewPageName?
This changes the existing links to an OldPageName on all the wiki pages, to a NewPageName?.

(_) Edit RecentChanges
This will also make the appropriate changes within RecentChanges to the items related to the target pages.

(_) Substitute text for rename
If checked, when doing a rename command, any links to OldPageName will be replaced with NewPageName?.

Note that EditLinks? has a bug, it seems not do deal well with double quotes. See WikiBugs/Editlinks Mangles Pages In Special Cases at the bottom of the page. (Is this still an open bug?)


UseModWiki | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited November 5, 2023 4:45 pm by MarkusLude (diff)
Search: