User "Nikola Smolenski" posted a comment on MediaWiki.r85232.

Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/85232#c15684

Comment:

I guess I could do something like this:

<pre>
        function languageBox() {
                if( $this->data['language_urls'] ) {
                        wfRunHooks( 'SkinTemplateLanguageBoxBefore', array( 
&$this ) );
</pre>

Would that be better? It is still possible to output text, but I could say in 
documentation that it is preferable to edit language_urls.

I don't think it's possible to do this outside of a skin, because SkinTemplate 
builds language_urls from pure text passed to it via ParserOutput, and so it is 
not possible to add action links.

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to