[Mediawiki-l] making extra buttons in edit page tool
Dr JFBurté
burtejf at orange.fr
Mon Jun 16 19:27:57 UTC 2008
n'aurais-tu pas un pb de hiérarchie puisque ton image wiki est là:
http://www.wikisciences.jean-emile.com/skins/common/images/mediawiki.png
et non pas là (code source de la page d'accueil)
<img src="/wiki.phtmlskins/common/images/mediawiki.png" alt='The MediaWiki
logo' />
et que ton install est accessible depuis
http://www.wikisciences.jean-emile.com/config/index.php
@+ de jfb "0.02$"----- Original Message -----
From: "Alexis Moinet" <alexis.moinet at fpms.ac.be>
To: "Mediawiki" <mediawiki-l at lists.wikimedia.org>
Sent: Monday, June 16, 2008 10:03 AM
Subject: Re: [Mediawiki-l] making extra buttons in edit page tool
>
> Indeed, but be aware that every time you upgrade Mediawiki code, you'll
> have to do it again ;-)
>
> The whole idea of extra-js-in-the-wiki is not to have to change the
> Mediawiki core code on every upgrade.
>
> Rein wrote :
>> Thank you all for your remarks and ideas.
>> But....
>> I think (no: I know!) it is much simpler after all.
>> No need for extra js script, simply use: /includes/EditPage.php and make
>> some modifications in $toolarray = array(:
>> For instance take:
>> array( 'image' => 'button_nowiki.png',
>> 'id' => 'mw-editbutton-nowiki',
>> 'open' => "<nowiki>",
>> 'close' => "</nowiki>",
>> 'sample'=> wfMsg('nowiki_sample'),
>> 'tip' => wfMsg('nowiki_tip'),
>> 'key' => 'N'
>> )
>> Copy and change it par example in a button for an intern anchorlink:
>> array( 'image' => 'intern.gif',
>> 'id' => 'mw-editbutton-exlink',
>> 'open' => "[[#",
>> 'close' => "|to headline]]",
>> 'sample'=> 'This Head',
>> 'tip' => 'a link to \'This Head\' on the same page - remind the
>> caption ',
>> 'key' => ''
>> ),
>>
>> And you have a superior button!
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> ---------------------------------------------------------------------------------------
> Orange vous informe que cet e-mail a ete controle par l'anti-virus mail.
> Aucun virus connu a ce jour par nos services n'a ete detecte.
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 270.3.0/1504 - Release Date: 15/06/2008
> 17:52
>
>
More information about the MediaWiki-l
mailing list