Autopatrolled, Editors
8,718
edits
}
} );
</pre>
|}
=== Booklets ===
{| class="mw-collapsible mw-collapsed" width=100%
|-
|
|-
|
<pre>
//add new section to editing toolbar
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'sections': {
'useful-stuff': {
'type': 'booklet',
'label': 'Useful Stuff',
'pages': {
//Page of commonly used reference templates
'section-refs': {
'label': 'References',
'layout': 'characters',
'characters': [
'{' + '{book ref|}}',
'{' + '{wob ref|}}',
'{' + '{ref|text=}}',
'{' + '{epigraph ref|}}',
'{' + '{au ref|}}',
'{' + '{msh ref|}}',
'{' + '{tes ref|}}',
'{' + '{file ref|}}',
'{' + '{map ref|}}',
'{{url ref|url=|text=|date=|site=}}',
'{{17s ref|topic/news/post|id#|description|date=}}',
//These next two reference templates are very long so they are done differently
{
'action': {
'type': 'encapsulate',
options: {
pre: '{' + '{url ref|url=',
post: '|text=|date=|site=}}'
}
},
'label': '{' + '{url ref}}'
},
{
'action': {
'type': 'encapsulate',
options: {
pre: '{' + '{17s ref|topic/news/post',
post: '|id#|description|date=}}'
}
},
'label': '{' + '{17s ref}}'
},
]
},
//Page to quickly build character infoboxes
'section-Build-a-Box': {
'label': 'Build-a-Box',
'layout': 'characters',
'characters': [
'{' + '{character',
'\n' + '|image=',
'\n' + '|residence=',
'\n' + '|profession=',
'\n' + '|#profession=',
'\n' + '|species=',
'\n' + '|abilities=',
'\n' + '|ethnicity=',
'\n' + '|born=',
'\n' + '|died=',
'\n' + '|nationality=',
'\n' + '|residence=',
'\n' + '|world=Scadrial',
'\n' + '|world=Roshar',
'\n' + '|world=Nalthis',
'\n' + '|world=Taldain',
'\n' + '|earth=Alcatraz',
'\n' + '|universe=[[Cosmere]]',
'\n' + '|books=[[Mistborn Era 1]]',
'\n' + '|books=[[Mistborn Era 2]]',
'\n' + '|books=[[The Stormlight Archive]]',
'\n' + '|books=[[Warbreaker]]',
//Alcatraz is very long so it has to be done differently
{
'action': {
'type': 'encapsulate',
'options': {
'pre': '\n' + '|books=[[Alcatraz Versus the Evil Librarians (series)|Alcatraz Versus the Evil Librarians]]'
}
},
'label': '|books=Alcatraz'
},
]
},
//Page of stuff to finish a page after making the infobox
'section-bottom': {
'label': 'Bottom of Page',
'layout': 'characters',
'characters': [
'\n' + '\'\'\'{' + '{SUBST:PAGENAME}}\'\'\'',
'\n\n' + '== Notes ==',
'\n' + '<' + 'references/>',
'\n' + '{' + '{stub}}',
'\n' + '{' + '{partial}}',
'\n' + '{' + '{complete}}',
'\n' + '{' + '{Alcatraz}}',
'\n' + '{' + '{Elantris}}',
'\n' + '{' + '{Mistborn|Era 1}}',
'\n' + '{' + '{Mistborn|Era 2}}',
'\n' + '{' + '{Reckoners}}',
'\n' + '{' + '{Skyward}}',
'\n' + '{' + '{Stormlight}}',
'\n' + '{' + '{Warbreaker}}',
'\n' + '{' + '{White Sand}}',
]
}
}
}
}
});
</pre>
|}
|}
=== Creating Your Own Booklets ===
Booklets are a type of section within the editing toolbar. The <code>Special characters</code> and <code>Help</code> sections of the default toolbar are examples of booklets. Here we will tell you how to create booklets that contain pages of characters (which can also be [[#Actions]]). For other things you can do with booklets see [https://www.mediawiki.org/wiki/Extension:WikiEditor/Toolbar_customization Mediawiki's guide].
},
</pre>
=== Removing default elements ===
|