Hey guys!
I can't solve this problem and asked many people about it on the #mediawiki channel. My last shot was to try pywikipediabot.sourceforge.net but I can't figure it out how could I run this on my own wiki.
So I made a test post in wikipedia which demonstrate my problem (I hope they don't delete it): http://www.mediawiki.org/wiki/Thisisatest
As you see if you copy text files to the mediawiki then some line will overruns the border and after you got thousands of pages in your wiki it can't be fix by hand. This wiki is not public, I need to maintain it for my company so I can't just ask someone to setup a bot to fix it even if that's a solution.
The thing is it can be fixed by hand if I go to the start of the overrunning lines and hit enter \n then it will only fix this invisible character or what should I call this. If it's not must then I don't want to use any bot to fix it.
If you have any idea how can be fixed in the whole wiki than please tell me.
Thanks
Jax
On 17/12/06, Jax cybercorecentre@gmail.com wrote:
So I made a test post in wikipedia which demonstrate my problem (I hope they don't delete it): http://www.mediawiki.org/wiki/Thisisatest
Someone deleted it.
As you see if you copy text files to the mediawiki then some line will overruns the border and after you got thousands of pages in your wiki it can't be fix by hand. This wiki is not public, I need to maintain it for my company so I can't just ask someone to setup a bot to fix it even if that's a solution.
The problem seems to be that some lines prefixed with spaces are creeping in from the source text. MediaWiki treats this as a cue to enter <pre> mode, which means that formatting and line breaks are up to the user. To correct this, delete the preceding spaces at the start of each line.
To fix this in bulk, you could write a quickie maintenance script which whizzes through all pages in the database (or just those you specify) and performs this edit for you, saving the page if changes were made.
Rob Church
"Rob Church" robchur@gmail.com wrote in message news:e92136380612161920k7469d462gf2b73e4316964eed@mail.gmail.com...
On 17/12/06, Jax cybercorecentre@gmail.com
wrote:
As you see if you copy text files to the mediawiki then some line will overruns the border and after you got thousands of pages in your wiki it can't be fix by hand. This wiki is not public, I need to maintain it for my company so I can't just ask someone to setup a bot to fix it even if that's a solution.
The problem seems to be that some lines prefixed with spaces are creeping in from the source text. MediaWiki treats this as a cue to enter <pre> mode, which means that formatting and line breaks are up to the user. To correct this, delete the preceding spaces at the start of each line.
To fix this in bulk, you could write a quickie maintenance script which whizzes through all pages in the database (or just those you specify) and performs this edit for you, saving the page if changes were made.
If the pages are text files, then presumably there is no wiki markup in it anyway, therefore you should wrap the whole page in <nowiki> tags.
You will need to remove the tags and perform any clean-up (e.g. removing leading spaces, as pointed out by Rob) if you want to introduce wiki markup into the page at a later date.
- Mark Clements (HappyDog)
On Mon, 18 Dec 2006 09:47:11 +0000, Mark Clements wrote:
"Rob Church" robchur@gmail.com wrote in message news:e92136380612161920k7469d462gf2b73e4316964eed@mail.gmail.com...
On 17/12/06, Jax cybercorecentre@gmail.com
wrote:
As you see if you copy text files to the mediawiki then some line will overruns the border and after you got thousands of pages in your wiki it can't be fix by hand. This wiki is not public, I need to maintain it for my company so I can't just ask someone to setup a bot to fix it even if that's a solution.
The problem seems to be that some lines prefixed with spaces are creeping in from the source text. MediaWiki treats this as a cue to enter <pre> mode, which means that formatting and line breaks are up to the user. To correct this, delete the preceding spaces at the start of each line.
To fix this in bulk, you could write a quickie maintenance script which whizzes through all pages in the database (or just those you specify) and performs this edit for you, saving the page if changes were made.
If the pages are text files, then presumably there is no wiki markup in it anyway, therefore you should wrap the whole page in <nowiki> tags.
You will need to remove the tags and perform any clean-up (e.g. removing leading spaces, as pointed out by Rob) if you want to introduce wiki markup into the page at a later date.
- Mark Clements (HappyDog)
There's also a poem extension, which is used by wikisource to simplify copying texts. This prevents auto filling and drawing the box around text, but allows wiki & HTML markup in the text. You'd just install that extension and wrap the text in a <poem> tag.
Steve Sanbeg wrote:
On Mon, 18 Dec 2006 09:47:11 +0000, Mark Clements wrote:
"Rob Church" robchur@gmail.com wrote in message news:e92136380612161920k7469d462gf2b73e4316964eed@mail.gmail.com...
On 17/12/06, Jax cybercorecentre@gmail.com
wrote:
As you see if you copy text files to the mediawiki then some line will overruns the border and after you got thousands of pages in your wiki it can't be fix by hand. This wiki is not public, I need to maintain it for my company so I can't just ask someone to setup a bot to fix it even if that's a solution.
The problem seems to be that some lines prefixed with spaces are creeping in from the source text. MediaWiki treats this as a cue to enter <pre> mode, which means that formatting and line breaks are up to the user. To correct this, delete the preceding spaces at the start of each line.
To fix this in bulk, you could write a quickie maintenance script which whizzes through all pages in the database (or just those you specify) and performs this edit for you, saving the page if changes were made.
If the pages are text files, then presumably there is no wiki markup in it anyway, therefore you should wrap the whole page in <nowiki> tags.
You will need to remove the tags and perform any clean-up (e.g. removing leading spaces, as pointed out by Rob) if you want to introduce wiki markup into the page at a later date.
- Mark Clements (HappyDog)
There's also a poem extension, which is used by wikisource to simplify copying texts. This prevents auto filling and drawing the box around text, but allows wiki & HTML markup in the text. You'd just install that extension and wrap the text in a <poem> tag.
Thank you very much. It helped, and it will be a lot easier to find these bad articles and put a <poem> tag to them.
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Best Regards,
Jax
wikitech-l@lists.wikimedia.org