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