Hello guys,
I'd like to skin my footer. In particular I want to add an icon right beside the powered by mediawiki icon as it is done on all wikimedia projects with their special icon.
How is this exactly done? I read into the manual but didn't find this information.
--robert
You can edit the file skins/Monobook.php
lines 169 and 172 (in mediawiki 1.16.0) add the html code for the "powered by" and "copyright" icons :
<div id="f-poweredbyico"><?php $this->html('poweredbyico') ?></div> <div id="f-copyrightico"><?php $this->html('copyrightico') ?></div>
Normally you can simply insert your own (php/html) code around there to add another icon.
there may be another (simpler) solution using the wiki or LocalSettings.php that I'm not aware of ?
Alexis
orschiro@googlemail.com wrote :
Hello guys,
I'd like to skin my footer. In particular I want to add an icon right beside the powered by mediawiki icon as it is done on all wikimedia projects with their special icon.
How is this exactly done? I read into the manual but didn't find this information.
--robert
Hello Alexis,
this is also the method that is described in the FAQ. But is this also the method wikimedia used for their projects?
--robert
2010/9/21 Alexis Moinet alexis.moinet@umons.ac.be:
You can edit the file skins/Monobook.php
lines 169 and 172 (in mediawiki 1.16.0) add the html code for the "powered by" and "copyright" icons :
<div id="f-poweredbyico"><?php $this->html('poweredbyico') ?></div> <div id="f-copyrightico"><?php $this->html('copyrightico') ?></div>
Normally you can simply insert your own (php/html) code around there to add another icon.
there may be another (simpler) solution using the wiki or LocalSettings.php that I'm not aware of ?
Alexis
orschiro@googlemail.com wrote :
Hello guys,
I'd like to skin my footer. In particular I want to add an icon right beside the powered by mediawiki icon as it is done on all wikimedia projects with their special icon.
How is this exactly done? I read into the manual but didn't find this information.
--robert
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Rather than modify core code (Monobook.php, etc.), you can add the icon using JavaScript in MediaWiki:Monobook.js or MediaWiki:Common.js. Create an "img" element, fill in the desired "src" value, and append it right after the MediaWiki icon, using DOM operations.
DanB
Do you have any example for me? I'm not that familiar with JavaScript and I can't find any hint in Vector.js/Common.js of wikimedia projects about this method.
-robert
2010/9/21 Daniel Barrett danb@vistaprint.com:
Rather than modify core code (Monobook.php, etc.), you can add the icon using JavaScript in MediaWiki:Monobook.js or MediaWiki:Common.js. Create an "img" element, fill in the desired "src" value, and append it right after the MediaWiki icon, using DOM operations.
DanB
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
If you're not familiar with JavaScript, then I wouldn't recommend using this method. Here's an introduction to the concepts of modifying the DOM with JavaScript: http://www.quirksmode.org/dom/intro.html.
DanB
-----Original Message----- Do you have any example for me? I'm not that familiar with JavaScript...
mediawiki-l@lists.wikimedia.org