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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to