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
Walter Mazza wrote:
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
Use the wfMsg() functions just as you would do on other pieces of mediawiki code.
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@gmail.com:
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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
thanks guys! =)
I'll try both methods.
Walter Mazza
On Mon, Jun 15, 2009 at 3:53 PM, Matthias Korn matsch@rockinchina.comwrote:
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@gmail.com:
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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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@gmail.com wrote:
thanks guys! =)
I'll try both methods.
Walter Mazza
On Mon, Jun 15, 2009 at 3:53 PM, Matthias Korn matsch@rockinchina.comwrote:
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@gmail.com:
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@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Walter Mazza wrote:
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
wfMsg() is a family of functions. wfMsg() returns plain text, but wfMsgWikiHtml parses the wikitext, and wfMsgHtml() use html messages.
The skin methods msg(), msgHtml() and msgWiki() also provide messages but seem to automatically fill the message parameters.
Platonides,
it appears all these methods still creates selflinks =/
I'll figure out something. thanks anyways! =)
Walter Mazza
On Tue, Jun 16, 2009 at 6:58 AM, Platonides Platonides@gmail.com wrote:
Walter Mazza wrote:
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
wfMsg() is a family of functions. wfMsg() returns plain text, but wfMsgWikiHtml parses the wikitext, and wfMsgHtml() use html messages.
The skin methods msg(), msgHtml() and msgWiki() also provide messages but seem to automatically fill the message parameters.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org