I have written a mediawiki extension for 1.4.0 that returns text that contains wikitext. For example it contains tags like [[article title]].
The problem I am facing is that the wikitext is not being interpreted but is being displayed 'as-is', i.e. as [[article title]] and not as a link to an article.
What is the correct way to get this text parsed so that wikitext is rendered properly?
Thanks,
Jc
I'm finally getting around to some more appearance tweaking on my 1.3.?? installation. I had a graphic which fit the same size as the default one, so I've been using it. Today, I added some text above it, which makes it taller, and that's fine for all the skins, except Monobook, which crops the image. Apparently it only has so much room and that's it. I'm vitually clueless about CSS. Is there an easy fix?
James Birkholz admin, Posen-L mailing list and website http://www.Posen-L.com
Hi James,
if you can't remake your logo to the standart 155x135 pixels then there is rather brutal fix - that is to include your logo on the left hand side of the background (headbg.jpeg) image and change the wiki.png name so it doesn't show.
Not pretty - but effective.
Paul Youlten
----- Original Message ----- From: "=James Birkholz=" j.birchwood@verizon.net To: "MediaWiki announcements and site admin list" mediawiki-l@Wikimedia.org Sent: Friday, March 25, 2005 4:06 AM Subject: [Mediawiki-l] $wgLogo sizing
I'm finally getting around to some more appearance tweaking on my 1.3.?? installation. I had a graphic which fit the same size as the default one, so I've been using it. Today, I added some text above it, which makes it taller, and that's fine for all the skins, except Monobook, which crops the image. Apparently it only has so much room and that's it. I'm vitually clueless about CSS. Is there an easy fix?
James Birkholz admin, Posen-L mailing list and website http://www.Posen-L.com
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Thanks for the suggestion, I wonder if that would cause problems if users change the skins, though, since other skins rearrange the formatting. Since all the other skins handle my modified graphic, I'm sure there must be a simple css mod to monobook. I just don't know beans about css, nor do I have the time to learn it, much as I'd like to.
At 12:08 AM 3/26/05, you wrote:
if you can't remake your logo to the standart 155x135 pixels then there is rather brutal fix - that is to include your logo on the left hand side of the background (headbg.jpeg) image and change the wiki.png name so it doesn't show.
Not pretty - but effective.
Paul Youlten
James Birkholz admin, Posen-L mailing list and website http://www.Posen-L.com
What size is your logo? (in pixels)
Paul Youlten
----- Original Message ----- From: "=James Birkholz=" j.birchwood@verizon.net To: "MediaWiki announcements and site admin list" mediawiki-l@Wikimedia.org Sent: Saturday, March 26, 2005 4:00 AM Subject: Re: [Mediawiki-l] $wgLogo sizing
Thanks for the suggestion, I wonder if that would cause problems if users change the skins, though, since other skins rearrange the formatting. Since all the other skins handle my modified graphic, I'm sure there must be a simple css mod to monobook. I just don't know beans about css, nor do I have the time to learn it, much as I'd like to.
At 12:08 AM 3/26/05, you wrote:
if you can't remake your logo to the standart 155x135 pixels then there is rather brutal fix - that is to include your logo on the left hand side of the background (headbg.jpeg) image and change the wiki.png name so it doesn't show.
Not pretty - but effective.
Paul Youlten
James Birkholz admin, Posen-L mailing list and website http://www.Posen-L.com
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
I went to a lot of trouble to disable all other skins in the site than my own that I created. It would be nice if restriction to one skin was settable in LocalSettings.php.
On 25 Mar 2005, at 19:00, =James Birkholz= wrote:
Thanks for the suggestion, I wonder if that would cause problems if users change the skins, though, since other skins rearrange the formatting. Since all the other skins handle my modified graphic, I'm sure there must be a simple css mod to monobook. I just don't know beans about css, nor do I have the time to learn it, much as I'd like to.
At 12:08 AM 3/26/05, you wrote:
if you can't remake your logo to the standart 155x135 pixels then there is rather brutal fix - that is to include your logo on the left hand side of the background (headbg.jpeg) image and change the wiki.png name so it doesn't show.
Not pretty - but effective.
Paul Youlten
James Birkholz admin, Posen-L mailing list and website http://www.Posen-L.com
:::: Insanity: doing the same thing over and over and expecting different results :::: Jan Steinman http://www.Bytesmiths.com/Item/99AU22
Please do a search in the list achieves (try googling "site:mail.wikipedia.org wikitext parsing extension etc."). It has been discussed here and there are workarounds to do it. However, it doesn't always work on 1.3.x (I don't know about 1.4). For example: <tag> == heading == </tag>
gives a parsing error, although for most other wikitext, it works. I'm not sure the workaround is the correct way or not, though.
Jean-Christian Imbeault wrote:
I have written a mediawiki extension for 1.4.0 that returns text that contains wikitext. For example it contains tags like [[article title]].
The problem I am facing is that the wikitext is not being interpreted but is being displayed 'as-is', i.e. as [[article title]] and not as a link to an article.
What is the correct way to get this text parsed so that wikitext is rendered properly?
Thanks,
Jc _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Muzaffer Ozakca wrote:
Please do a search in the list achieves
I did :) The only thing to come up was a solution by me posted about 6 month ago :) A solution that you also mentioned in response to another person's query about something similar ;)
The problem is that the hack I came up with doesn't seem to work any more in 1.4.0:
$wgParser->internalParse($test, true);
This now cause quite a few non-fatal errors to be thrown and one fatal one.
Jc
I found another solution that seems to work. Don't know why or how but it fixes my problem.
global $wgTitle, $wgParser, $wgOut;
$output = //do some stuff $output = $wgParser->parse( $output, $wgTitle, $wgOut->mParserOptions, true ); return $output->getText();
Note: This e-mail contains privileged and confidential information and is for the sole use of the intended recipient(s). If you are not an intended recipient, you are hereby kindly requested to refrain from printing, copying, or distributing the information contained herein. Furthermore, any other use of the information contained herein is strictly prohibited. If you have received this transmission in error, please kindly notify the sender immediately and destroy all copies of the original message.
mediawiki-l@lists.wikimedia.org