[Mediawiki-l] edit buttons for lists or indenting?

Katharina Wolkwitz wolkwitz at fh-swf.de
Fri Nov 16 07:22:58 UTC 2007


Hi Jim,

perhaps a look at the WikEd-Extension
http://www.mediawiki.org/wiki/Extension:WikEd will help you clarify what exactly
you need to do, because it has the kind of buttons you are looking for; even
with the option to increase or decrease the heading-/list-level (e.g. the number
of =, * or #), which I find very useful.

Jim Hu schrieb:
> Just to clarify - as can be seen from another thread, I know how to  
> make a button prepend * or #.   I'd like for the button to put the li  
> tags on every line of a multiline selection.  Looking at the code in  
> wikibits.js for how the custom buttons work, it looks like that isn't  
> possible via mwCustomEditButtons, since pulling the selection is done in
> 
> function insertTags(tagOpen, tagClose, sampleText) {
> 
> Am I reading things correctly?  If so, then it seems like wikibits.js  
> could be modified so that insertTags could take some additional  
> parameters to do other things to a block of selected text.  With my  
> limited understanding of JavaScript, I don't know ... can one  
> overload a function in wikibits.js by writing a new version into  
> common.js?  My initial attempts to try this didn't work, but I may  
> have been doing it wrong.
> 
> Jim Hu
> 
> On Nov 14, 2007, at 12:21 PM, Jim Hu wrote:
> 
>> I have the extended editing buttons from Wikipedia installed on my
>> wiki and I'm wondering if anyone has made js edit buttons to do
>> ordered or unordered lists.
>>
>> =====================================
>> Jim Hu
>> Associate Professor
>> Dept. of Biochemistry and Biophysics
>> 2128 TAMU
>> Texas A&M Univ.
>> College Station, TX 77843-2128
>> 979-862-4054
>>
>>
>> _______________________________________________
>> MediaWiki-l mailing list
>> MediaWiki-l at lists.wikimedia.org
>> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> 
> =====================================
> Jim Hu
> Associate Professor
> Dept. of Biochemistry and Biophysics
> 2128 TAMU
> Texas A&M Univ.
> College Station, TX 77843-2128
> 979-862-4054
> 
> 
> 
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> 
> 

-- 

Mit freundlichen Grüßen

Katharina Wolkwitz

Fachhochschule Südwestfalen
Hochschulbibliothek
Haldener Straße 182
58095 Hagen
Tel.: 02331/987-2706



More information about the MediaWiki-l mailing list