On Mon, 23 Jul 2012 17:43:07 -0700, linuxlover <[email protected]> wrote:

Il giorno lun, 23/07/2012 alle 15.39 -0700, Daniel Friesen ha scritto:
On Mon, 23 Jul 2012 15:02:16 -0700, Adm <[email protected]> wrote:

http://blog.redwerks.org/2012/02/08/mediawiki-skinning-tutorial/
I think there is an error in the tutorial:
class MySkinTemplate extends BaseTemplate {

Replace with:

class MySkin extends BaseTemplate {

ADM

No, you should have two classes in your skin. The one inheriting from BaseTemplate is your skins template, that one should be {MySkin}Template, not {MySkin}. You need a different class called {MySkin} that inherits from SkinTemplate (which while confusingly named is a Skin class rather than a template). This class is what defines what template and css to use.

--
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://daniel.friesen.name]

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to