Quick follow-up question on this...
Trying out both methods, I see that wfMsg() bypasses the wiki parser and
returns the raw MediaWiki text
while msgWiki() returns the page already parsed.
Both have their benefits and drawbacks but in my particular case, what I am
trying to figure out is how to prevent the links from being parsed by the
Linker class and having it apply the <strong class="selflink"> tag if a
person is on that page.
using msgWiki() i don't think that is possible unless I somehow make it
bypass the makeSelfLinkObj() function?
where as the other option would be to use wfMsg() and create a function
similar to buildSidebar() but it looks like it still runs it through the
linker -> makeSelfLinkObj() thus making the <strong class="selflink">
instead of the proper
maybe i am doing something wrong :P
Any help or pointers to sites for refernce would be greatly appreciated!
Walter Mazza
On Mon, Jun 15, 2009 at 3:58 PM, Walter Mazza <wjmazza(a)gmail.com> wrote:
thanks guys! =)
I'll try both methods.
Walter Mazza
On Mon, Jun 15, 2009 at 3:53 PM, Matthias Korn <matsch(a)rockinchina.com>wrote;wrote:
Put something like this in YourSkin.php at the
desired place, style it
with CSS and finally edit
http://www.yourwiki.com/index.php?title=MediaWiki:Topnav
<div id="p-topnavi" class="portlet">
<?php $this->msgWiki('Topnav') ?>
</div>
(Tested with 1.13)
HTH,
Matthias
Am Mon, 15 Jun 2009 15:23:16 -0500
schrieb Walter Mazza <wjmazza(a)gmail.com>om>:
Hey all,
I cannot seem to find this documented anywhere, so not sure if it's
possible... but how can I include a MediaWiki page (example:
MediaWiki:Headerbar) to a skin? I would like to include a page that
can be edited via MediaWiki much like how you can edit
MediaWiki:Sidebar. Is this possible?
Thanks!
Walter Mazza
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
--
Rock in China
http://wiki.rockinchina.com/
http://www.rockinchina.com/
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l