Memory Alpha:Episode data project/changing episode titles
From Memory Alpha, the free Star Trek reference
Notes about moving episode pages, for the people who do that sort of thing.
Contents |
[edit] Sidebar and browser stuff
- Change sTitle in the sidebar
- Do not change aSelf as long as the previous location remains a redirect
- Make sure the episode's data at Memory Alpha:Episode data project/titles is correct
- The series season lists, sidebar data, and browser data for every affected page will be changed automagically
- Make sure Template:Titles/oldname is moved to Template:Titles/newname and the data is correct. DYKBot does not maintain these.
[edit] Changing links with pywikibot
DO NOT plain-text replace the title of the episode (ie: replace.py -start:! "Something One" "Something Two")
[edit] To replace normal links
replace.py -ref:"Something One" -regex "\[\[Something One(\|.*?|)\]\]" "[[Something Two\1]]"
[edit] To replace reference links
replace.py -ref:"Something One" -regex "(\{\{(TOS|TAS|TNG|DS9|VOY|ENT)(.*?)\|Something One(?=[|}])(.*?(\}\}))" "\1\2|Something Two\3"
You can use a simpler one, if you know what the series is:
replace.py -ref:"Something One" -regex "(\{\{TAS.*?)\|Something One(?=[|}])(.*?(\}\}))" "\1|Something Two\2"
