Autopatrolled, Editors
8,796
edits
(added the four most useful premade dropdowns) |
(→Dropdowns: started the section on making your own) |
||
==== Reference Templates ====
Contains
{| class="mw-collapsible mw-collapsed" width=100%
</pre>
|}
=== Creating Your Own Dropdowns ===
{| class="mw-collapsible mw-collapsed" width=100%
|-
|
|-
|
<pre>
//Optional description
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
groups: {
list: {
tools: {
AAAA: {
label: 'BBBB',
type: 'select',
list: {
'WWWW': {
label: 'XXXX',
action: {
type: 'encapsulate',
options: {
pre: 'YYYY',
post: 'ZZZZ'
}
}
</pre>
Insert your additional items here
<pre>
}
}
}
}
}
}
} );
</pre>
|}
{| class="mw-collapsible mw-collapsed" width=100%
|-
|
|-
|
<pre>
},
'IIII': {
label: 'JJJJ',
action: {
type: 'encapsulate',
options: {
pre: 'KKKK',
post: 'LLLL'
}
}
</pre>
|}
== Booklets ==
|