Hi,
I have searched the docs and the mailinglist archives, but couldn't find an answer to my question, so I hope you can help me:
I have created a complete new skin for opensuse.org: http://en.test.opensuse.org/
It has got a 3-column layout on the front page, the rest of the pages have got a 2-column layout. The overall layout of the page forbids to just enter a 3rd column within the content area (that's how we do it on the current en.opensuse.org page), so I have used a simple
<?php if (wfMsgForContent( 'mainpage' ) == $this->data['title'] ) { ?> Additional code for 3rd column <?php } ?>
within the skin template. Works fine. Next, I wanted the content for the 3rd column to be editable for sysops via the wiki - having to alter the skin template every other day is not an option. So I put the contents into MediaWiki:Mainpagerightcolumn
The complete code in the skin template looks like this:
<?php if (wfMsgForContent( 'mainpage' ) == $this->data['title'] ) { ?> <!-- Insert right navigation bar --> <?php print wfMsg('mainpagerightcolumn') ?> <!-- End insert right navigation bar --> <?php } ?>
Also works fine. The only problem is, that wiki text or extension markup from "MediaWiki:Mainpagerightcolumn" does not get parsed - it is inserted "as is" (see first link in the right column). It's basically the same as if using wiki text in the skin template which also wouldn't work. Is there a way to make it work?
Frank Sundermeyer wrote :
The complete code in the skin template looks like this:
<?php if (wfMsgForContent( 'mainpage' ) == $this->data['title'] ) { ?>
<!-- Insert right navigation bar -->
<?php print wfMsg('mainpagerightcolumn') ?>
<!-- End insert right navigation bar -->
<?php } ?>
Also works fine. The only problem is, that wiki text or extension markup from "MediaWiki:Mainpagerightcolumn" does not get parsed - it is inserted "as is" (see first link in the right column). It's basically the same as if using wiki text in the skin template which also wouldn't work. Is there a way to make it work?
maybe <?php print wfMsgWikiHtml('mainpagerightcolumn'); ?>
Frank Sundermeyer wrote :
The complete code in the skin template looks like this:
<?php if (wfMsgForContent( 'mainpage' ) == $this->data['title'] ) { ?>
<!-- Insert right navigation bar -->
<?php print wfMsg('mainpagerightcolumn') ?>
<!-- End insert right navigation bar -->
<?php } ?>
Also works fine. The only problem is, that wiki text or extension markup from "MediaWiki:Mainpagerightcolumn" does not get parsed - it is inserted "as is" (see first link in the right column). It's basically the same as if using wiki text in the skin template which also wouldn't work. Is there a way to make it work?
after some testing,
<?php print wfMsgWikiHtml('mainpagerightcolumn'); ?>
will work if you use wiki syntax for external links :
[http://lists.opensuse.org/opensuse-announce/2007-06/msg00008.html Proprietary Software Survey Results]
instead of
<a href="http://lists.opensuse.org/opensuse-announce/2007-06/msg00008.html">Proprietary Software Survey Results</a>
I think this is because (correct me if I'm wrong), mediawiki parser parses only some tags like <div>, <ul>, <li> but not <a> (when it parses <a>, it transcribes it into plain text (< a >) )
(to make things easier, you can also replace <ul> and <li> with mediawiki syntax (*) )
On Monday 03 September 2007 17:59, Alexis Moinet wrote:
Hi,
Frank Sundermeyer wrote :
The only problem is, that wiki text or extension markup from "MediaWiki:Mainpagerightcolumn" does not get parsed -
after some testing,
<?php print wfMsgWikiHtml('mainpagerightcolumn'); ?>
will work if you use wiki syntax for external links :
Thanks a lot! You saved my day :-) - the right navigation bar now works as desired, even the plugins do. Currently we are using a rather old MediaWiki Version (1.5.8) which has no wfMsgWikiHtml function, so I didn't knew such a function exists.
mediawiki-l@lists.wikimedia.org