Ajutor:Sidebar-image

De la wiki.pe-piata
Revizia pentru 27 ianuarie 2012 01:36; Paul (Discuție | contribuții)
(dif) ←Versiunea anterioară | afișează versiunea curentă (dif) | Versiunea următoare → (dif)
Salt la: navigare, căutare

How to add a banner to the MediaWiki sidebar From Collectivesolver

To add a banner to the MediaWiki sidebar follow the next steps:

1. Find the file MonoBook.php in skins/MonoBook.php path (if you're using monobook)

2. Download the file. 3. Go to line 201 or file the line:

</div>

4. Add the next lines of code after the line you find above:


<?php $this->msg('sidebar-banner1-headingtext') ?>

<a href="<?php $this->msg('sidebar-banner1-url') ?>"> <img width="100%" title="<?php $this->msg('sidebar-banner1-alttext') ?>" alt="<?php $this->msg('sidebar-banner1-alttext') ?>" src="<?php $this->msg('sidebar-banner1-imgsrc') ?>" /></a>


</div>

5. Create new articles / page named MediaWiki:sidebar-banner1-headingtext and write the banner heading. Example: Sponsor

6. Create new articles / page named MediaWiki:sidebar-banner1-url and write the The destination URL of this banner. Example: http://www.website.com/abc.html

7. Create new articles / page named MediaWiki:sidebar-banner1-alttext and write the alt="" parameter of an HTML <img> tag. Example: Best dog training

8. Create new articles / page named MediaWiki:sidebar-banner1-imgsrc and write the src="" parameter of an HTML <img> tag. The URL of the banner image. It may be the address of an image uploaded to your Wiki , or the address of an external image. Example: http://www.website.com/banner123.gif

Unelte personale
Cu mandrie sustinut de:
Grup Telemach
proiect initiat de:
pe-piata.ro