[Mediawiki-l] ***垃圾邮件*** Re: Mediawiki Help,thanks!
hewenliang
hewenliang at fzycube.com
Thu Dec 9 01:30:32 UTC 2010
Hello Laurentï¼
æè°¢æ¨ççå¤ï¼è¯·é®å®æ¹æ¯å¦æè¿æ ·çæ©å±æ件æ¥æ»¡è¶³æè¿ä¸ªéæ±ï¼
Thank youï¼
Best Wishesï¼
Laurent Savaete <laurent.savaete at googlemail.com> å¨ Wed, 8 Dec 2010 15:43:02 åéï¼
>As far as I know, it's not directly possible to do it, you can't
>directly put a local image (from your computer) in the editor that
>will be uploaded when you click a button (or save the article).
>Maybe there is an extension that does it, or you would have to write your own.
>
>2010/12/8 hewenliang <hewenliang at fzycube.com>:
>> ä½ å¥½ï¼
>>  æå¨ä½¿ç¨mediawikiçæ¶åï¼å¨ç¼è¾æ件ççé¢ï¼ææ³å¨ææ¬è¾å
¥ååæ¶å¢å ä¸å¼ å¾çå°æ¤ææ¬åºï¼ä¹å°±æ¯æ³å¨ç¼è¾çé¢å·¥å
·æ ä¸å¢å ä¸ä¸ªæé®ï¼è¿ä¸ªæé®çä½ç¨å°±æ¯ä¸ä¼ æ¬å°å¾çã请é®ä½ æ¯å¦ç¥éæä¹ä¿®æ¹ï¼
>>  æè°¢ï¼
>>
>> Laurent Savaete <laurent.savaete at googlemail.com> å¨ Tue, 7 Dec 2010 17:39:47 åéï¼
>>>Hello,
>>>
>>>if I understand correctly, you want to add an extra button in the edit
>>>toolbar. When clicking that button, you want to open the file upload
>>>page.
>>>As far as I understand, mwCustomEditButton only works to add buttons
>>>that will insert text in the editor. The javascript you included below
>>>should go into your Mediawiki:Common.js (open it in your browser at
>>>http://path/to/your/wiki/Mediawiki:Common.js (if you have short
>>>URLs)). Don't edit the edit.js file directly, you would have to do it
>>>again at every mediawiki update.
>>>
>>>To get that button to open the upload page, I'm not sure how to do.
>>>Maybe someone else here would have an idea?
>>>
>>>cheers,
>>>Laurent
>>>PS: æä¸æ¸
é¤æä½ è±è¯æå¾å¯¹ä¸å¯¹ãæéï¼éº»ç¦ä½ æ¹æ£ï¼è°¢è°¢!
>>>
>>>2010/12/7 Quidway He <it_hwl at sina.com>:
>>>> Dear All,
>>>> I use Mediawiki (1.16.0),when create edit page,for example,the mediawiki contain edit.js.I think in the edit pages add a button,edit file click this button can upload files or pictures.I told the mediawiki's official website find pages,don't solve the problem,trouble to teach me how to do,please.
>>>> Thanks!
>>>>
>>>>
>>>>
>>>>
>>>> PS1: http://www.mediawiki.org/wiki/Manual:FAQ/zh-hans#.E5.A6.82.E4.BD.95.E5.9C.A8.E7.BC.96.E8.BE.91.E9.A1.B5.E9.9D.A2.E5.A2.9E.E5.8A.A0.E6.9B.B4.E5.A4.9A.E7.9A.84.E6.8C.89.E9.92.AE.EF.BC.9F
>>>>
>>>>
>>>>
>>>> PS2: edit.js doc. last .
>>>> if (mwCustomEditButtons) {
>>>> mwCustomEditButtons[mwCustomEditButtons.length] = {
>>>> "speedTip": "big text", //text shown in a tooltip when hovering the mouse over the button
>>>> "tagOpen": "<big>", //the text to use to mark the beginning of the block
>>>> "tagClose": "</big>", //the text to use to mark the end of the block (if any)
>>>> "sampleText": "big text" //the sample text to place inside the block
>>>> };
>>>> mwCustomEditButtons.push(button);
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> To: Mediawiki Engineer
>>>> From:ad_sh
>>>> 2010/12/07
>>>> Best Wishes!
>>>> _______________________________________________
>>>> MediaWiki-l mailing list
>>>> MediaWiki-l at lists.wikimedia.org
>>>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>>>>
>>>
>>>
>>>
>>>--
>>>Follow me around the world: www.laurentaroundtheworld.net
>>>Learn languages for free: www.wiki-babel.org
>>>
>>>_______________________________________________
>>>MediaWiki-l mailing list
>>>MediaWiki-l at lists.wikimedia.org
>>>https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>>>
>>
>>
>>
>>
>>
>>
>
>
>
>--
>Follow me around the world: www.laurentaroundtheworld.net
>Learn languages for free: www.wiki-babel.org
>
>_______________________________________________
>MediaWiki-l mailing list
>MediaWiki-l at lists.wikimedia.org
>https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
More information about the MediaWiki-l
mailing list