Difference between revisions of "Xyphoid/MediawikiConversion"

From Exalted - Unofficial Wiki
Jump to: navigation, search
(Comments: added note about subpage backlinks)
m (archived old discussion, rpelies)
Line 1: Line 1:
So, hosting usemod is becoming harder and harder. I'm trying out the mediawiki site conversion tools, as it would be much easier to host that way. Comments? Feedback? - [[Xyphoid]]
 
  
=== Comments ===
+
(pre-conversion discussion at [[Xyphoid/MediawikiConversionHistory]])
What makes it harder? I use both this wiki and [[MediaWiki]] pretty extensively, and I must say that this place seems snappier and cleaner, at least. Plus, there's the advantage of not having to re-write a bunch of the sections to fit the different syntax. At the same time, it's your server and time and money. Is it security updates, or some such? I would've guessed that this place didn't need much work anymore... -- [[GreenLantern]]
 
  
The server it's currently running on will be retired in the near future, so I have to do some work in either case. I have a couple of choices - one  is find another place to run usemod, the other is migrate to something else. Usemod is a perl CGI script writing to disk - this is pretty much unique among the stuff we have, and it doesn't suit our load-balancing and configuration. Mediawiki is php+mysql, which is what our main cluster is designed for. Basically I can keep mediawiki with the rest of my hosted content, but soon I won't have a good place for usemod.
+
== Post-conversion ==
 
 
Another option is that if someone else has a good place to host usemod wikis, I can pass it over to them.
 
 
 
I ran a test of the conversion and it appears promising at first glance - http://exalted-new.xi.co.nz/exwiki/index.php/WelcomeToExaltedWiki - note that any changes made to that copy will be lost for now as there were some errors reading pages starting with M. There are some obvious layout errors to work out, I'd be interested to hear about any conversion issues with particular pages that people spot (broken links, broken wiki formatting conversion)  -- [[Xyphoid]]
 
 
 
I've just checked out my userpage as a first step, and first thing to notice is that any link on my userpage that starts with / is broken. It seems the pages actually exist if I type into the url bar, "http://exalted-new.xi.co.nz/exwiki/index.php/Nikink/TrialByFireNotes" but the mediawiki obviously doesn't recognise the '/' format. I'm surprised the conversion worked so well actually, well done! :) [[nikink]]
 
:I also observed this phenomenon. A simple solution is to enter the name of the page you are slash-linking off of in front of the dash, e.g. <nowiki>[[Nikink/TrialByFireNotes]]</nowiki> as opposed to just <nowiki[[Xyphoid/MediawikiConversion/TrialByFireNotes]]</nowiki>. So it's just another layout problem that might need to be fixed by hand. - [[Han'ya]]
 
::I am going to have a shot at modifying the export/import tool to fix these up - it's not really practical to fix all of these by hand. [[Xyphoid]]
 
:::Making some progress. <pre>
 
[[PagePage/PagePage]] -> [[PagePage/PagePage]]
 
[[Xyphoid/MediawikiConversion/SubPage]] -> [[CURRENTPAGE/SubPage]]
 
[[SubPage]] -> [[SubPage]]
 
Page -> Page
 
[[Page]] -> [[Page]]
 
[[Xyphoid/MediawikiConversion/Subpage]] -> [[CURRENTPAGE/Subpage]]
 
[[Xyphoid/MediawikiConversion/Subpage/Otherpage]] -> [[CURRENTPAGE/Subpage/Otherpage]]
 
[[Xyphoid/MediawikiConversion/SubPage/SubPage]] -> [[CURRENTPAGE/SubPage/SubPage]]
 
Page/Subpage/Subpage -> Page/Subpage/Subpage
 
[[Xyphoid/MediawikiConversion/Subpage|SomeText]] -> [[CURRENTPAGE/Subpage|SomeText]]
 
[[Xyphoid/MediawikiConversion/Subpage| Some Text ]] -> [[CURRENTPAGE/Subpage| Some Text ]]</pre>
 
 
 
Okay, I'm happy with the last couple - doing one more test import then we'll go for a real transfer. [[Xyphoid]]
 
  
 
Just fyi (again) the links under nikink/characters are broken since the media wiki thinks they should translate to nikink/characters/charactername but the pages are actually on nikink/charactername. Minor, but could catch the unwary. [[nikink]] - also, spam! Already!?!? Making logins active will have to be a priority I guess. :(
 
Just fyi (again) the links under nikink/characters are broken since the media wiki thinks they should translate to nikink/characters/charactername but the pages are actually on nikink/charactername. Minor, but could catch the unwary. [[nikink]] - also, spam! Already!?!? Making logins active will have to be a priority I guess. :(
Line 41: Line 17:
  
 
Whoa!  Scared the daylights out of me when I went to edit my userpage, open from a while ago, and it was no longer there!  Stuff looks absolutely great; I noticed that some of the charm formatting gets broken by the changeover.  Is there a new text formatting or help page set up for what we should or should not do with the new system as opposed to the old?  Man, and I was terrified enough trying to think of a way to edit and duplicate my stuff for the WW wiki; oh well, gives me a chance to go through and double check mechanics -- [[IsawaBrian]]
 
Whoa!  Scared the daylights out of me when I went to edit my userpage, open from a while ago, and it was no longer there!  Stuff looks absolutely great; I noticed that some of the charm formatting gets broken by the changeover.  Is there a new text formatting or help page set up for what we should or should not do with the new system as opposed to the old?  Man, and I was terrified enough trying to think of a way to edit and duplicate my stuff for the WW wiki; oh well, gives me a chance to go through and double check mechanics -- [[IsawaBrian]]
:There is an editing help button at the bottom of the mediawiki edit page. As for how to use it I think that's going to be an evolutionary process - I am way out of date as to how y'all are using this wiki, I've been mostly playing D&D4 for the last few years... [[Special:Contributions/202.154.148.254|202.154.148.254]]
+
:There is an editing help button at the bottom of the mediawiki edit page. As for how to use it I think that's going to be an evolutionary process - I am way out of date as to how y'all are using this wiki, I've been mostly playing D&D4 for the last few years... [[Xyphoid]]
  
So apologies for the quick changeover - I'm going to be at my wedding from Friday and away for a few weeks, and the server was going to probably be down during some of that time. I'll be seeing what I can get fixed before I leave, and then will catch up when I'm back. [[Special:Contributions/202.154.148.254|202.154.148.254]]
+
So apologies for the quick changeover - I'm going to be at my wedding from Friday and away for a few weeks, and the server was going to probably be down during some of that time. I'll be seeing what I can get fixed before I leave, and then will catch up when I'm back. [[Xyphoid]]
  
 
Congrats on your wedding!  When you get back, it would be helpful if you could make it so subpages contain backlinks to the parent page in the Main namespace, like they do in the user Namespace - [[User:Kraken|Kraken]]
 
Congrats on your wedding!  When you get back, it would be helpful if you could make it so subpages contain backlinks to the parent page in the Main namespace, like they do in the user Namespace - [[User:Kraken|Kraken]]
 +
:The issue is that subpages don't actually exist in mediawiki - they're just pages with slashes in their name. I'll have a poke at writing an extension to automatically create parent links. Should it go all the way to the top? (eg should the page <nowiki>[[Red/Blue/Green]]<nowiki> link back to <nowiki>[[Red]]</nowiki> or <nowiki>[[Red/Blue]]</nowiki>? [[User:Xyphoid|Xyphoid]]
  
 
== Links needing fixing ==
 
== Links needing fixing ==
Line 54: Line 31:
  
 
* <nowiki>[[Nikink/Characters/MettanAku]]</nowiki> - <nowiki>[[/MettanAku]]</nowiki> links on [[Nikink/Characters]], it appears /xxx should always link to the top level page even on zzz/yyy
 
* <nowiki>[[Nikink/Characters/MettanAku]]</nowiki> - <nowiki>[[/MettanAku]]</nowiki> links on [[Nikink/Characters]], it appears /xxx should always link to the top level page even on zzz/yyy
 +
 +
== Other requests ==
 +
 +
* Automatic backlinks from child pages (anything of the name xxx/xxx) to the parent page

Revision as of 10:07, 6 April 2010

(pre-conversion discussion at Xyphoid/MediawikiConversionHistory)

Post-conversion

Just fyi (again) the links under nikink/characters are broken since the media wiki thinks they should translate to nikink/characters/charactername but the pages are actually on nikink/charactername. Minor, but could catch the unwary. nikink - also, spam! Already!?!? Making logins active will have to be a priority I guess. :(

Can you create an account? I'm going to add the recaptcha spam filter first up Xyphoid 03:50, 6 April 2010 (UTC)
This has been added - you now require a captcha to add an extenral link, or register an account. Xyphoid
Nope - php errors when attempting to create an account. And darn it, so many of my pages are borked! Maybe I was creating them wrong in the first place? Hm. Ah well. nikink Also, running slow. Is that something to get used to with this version of software+hardware? Just curious.
Yep, account is now created. Adding the captcha fixed it. :) nikink
php errors were probably mid-captcha-installation. Speed, we'll see how it goes - there's more going on now, and this is on shared hosting now instead of having an entire server to itself. Xyphoid

I will have a look at bulk conversion of the /characters/charactername issue, whoops. Xyphoid

Sweet, it'd be great if that could be automated - my campaign pages have the same issue, and there's a LOT of links from them! Thanks for looking into it! :) nikink PS: and should we move our previous userpages to our new User:Name pages? Or just leave them as relics? Can they be redirected?
There may be a delay until the 22nd or so with this since I'm on holiday shortly, but I'll have a shot. You can redirect a page by putting #REDIRECT [[somelink]] as the only content - so you could redirect in either direction as you prefer. As there's no way of telling what's a userpage unless people actually create accounts, and there are so many historical userpages, I won't be automatically moving them. The main advantage to moving to the User:xx version is that you can take advantage of the autolinks from recent changes, and from typing 3 tildes in an edit. Xyphoid
I will have to keep playing with it. All very new and unfamiliar. :) I've notice tables are all broken, I suppose that's a minor detail; just need to learn to table in mediawiki. The list of orphaned pages is quite helpful in the meantime while you work on the scripted fix for the incorrect links. :) nikink

Whoa! Scared the daylights out of me when I went to edit my userpage, open from a while ago, and it was no longer there! Stuff looks absolutely great; I noticed that some of the charm formatting gets broken by the changeover. Is there a new text formatting or help page set up for what we should or should not do with the new system as opposed to the old? Man, and I was terrified enough trying to think of a way to edit and duplicate my stuff for the WW wiki; oh well, gives me a chance to go through and double check mechanics -- IsawaBrian

There is an editing help button at the bottom of the mediawiki edit page. As for how to use it I think that's going to be an evolutionary process - I am way out of date as to how y'all are using this wiki, I've been mostly playing D&D4 for the last few years... Xyphoid

So apologies for the quick changeover - I'm going to be at my wedding from Friday and away for a few weeks, and the server was going to probably be down during some of that time. I'll be seeing what I can get fixed before I leave, and then will catch up when I'm back. Xyphoid

Congrats on your wedding! When you get back, it would be helpful if you could make it so subpages contain backlinks to the parent page in the Main namespace, like they do in the user Namespace - Kraken

The issue is that subpages don't actually exist in mediawiki - they're just pages with slashes in their name. I'll have a poke at writing an extension to automatically create parent links. Should it go all the way to the top? (eg should the page [[Red/Blue/Green]]<nowiki> link back to <nowiki>[[Red]] or [[Red/Blue]]? Xyphoid

Links needing fixing

Please list types of links that need to be fixed by scripting, along with an example page.

  • [[[FrivYeti/SteelAndGlass/SaGHistory1]] | The First Age; From the Fall of the Primordials to the Great Contagion.]] - non-subpage links with descriptions, see FrivYeti/SteelAndGlass
  • [[Nikink/Characters/MettanAku]] - [[/MettanAku]] links on Nikink/Characters, it appears /xxx should always link to the top level page even on zzz/yyy

Other requests

  • Automatic backlinks from child pages (anything of the name xxx/xxx) to the parent page