Editing User:King of Herdaz/Toolbar customization

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 549: Line 549:
 
|
 
|
 
<pre>
 
<pre>
//Add new build-a-box dropdown to the "advanced" section
+
//Add new build-a-box dropdown to the "advanced" section
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
+
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
+
section: 'advanced',
groups: {
+
groups: {
list: {
+
list: {
tools: {
+
tools: {
simplecharacterinfobox: {
+
simplecharacterinfobox: {
label: 'build-a-box',
+
label: 'build-a-box',
type: 'select',
+
type: 'select',
list: {
+
list: {
'start': {
+
'start': {
label: '{' + '{character',
+
label: '{' + '{character',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '{' + '{character'
+
pre: '{' + '{character'
}
+
}
}
+
}
},
+
},
'residence': {
+
'residence': {
label: '|residence=',
+
label: '|residence=',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|residence='
+
pre: '\n' + '|residence='
}
+
}
}
+
}
},
+
},
'imageparam': {
+
'imageparam': {
label: '|image=',
+
label: '|image=',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|image='
+
pre: '\n' + '|image='
}
+
}
}
+
}
},
+
},
'profession': {
+
'profession': {
label: '|profession=',
+
label: '|profession=',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|profession='
+
pre: '\n' + '|profession='
}
+
}
}
+
}
},
+
},
'#profession': {
+
'#profession': {
label: '|#profession=',
+
label: '|#profession=',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|#profession='
+
pre: '\n' + '|#profession='
}
+
}
}
+
}
},
+
},
'skills': {
+
'skills': {
label: '|skills=',
+
label: '|skills=',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|skills='
+
pre: '\n' + '|skills='
}
+
}
}
+
}
},
+
},
'species': {
+
'species': {
label: '|species=',
+
label: '|species=',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|species='
+
pre: '\n' + '|species='
}
+
}
}
+
}
},
+
},
'abilities': {
+
'abilities': {
label: '|abilities=',
+
label: '|abilities=',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|abilities='
+
pre: '\n' + '|abilities='
}
+
}
}
+
}
},
+
},
'ethnicity': {
+
'ethnicity': {
label: '|ethnicity=',
+
label: '|ethnicity=',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|ethnicity='
+
pre: '\n' + '|ethnicity='
}
+
}
}
+
}
},
+
},
'born': {
+
'born': {
label: '|born=',
+
label: '|born=',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|born='
+
pre: '\n' + '|born='
}
+
}
}
+
}
},
+
},
'died': {
+
'died': {
label: '|died=',
+
label: '|died=',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|died='
+
pre: '\n' + '|died='
}
+
}
}
+
}
},
+
},
'nationality': {
+
'nationality': {
label: '|nationality=',
+
label: '|nationality=',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|nationality='
+
pre: '\n' + '|nationality='
}
+
}
}
+
}
},
+
},
'bonded': {
+
'bonded': {
label: '|bonded=',
+
label: '|bonded=',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|bonded='
+
pre: '\n' + '|bonded='
}
+
}
}
+
}
}
+
}
}
+
}
}
+
}
}
+
}
}
+
}
}
+
}
} );
+
} );
 
</pre>
 
</pre>
 
|}
 
|}
Line 696: Line 696:
 
|
 
|
 
<pre>
 
<pre>
//Add new infobox endings dropdown to the "advanced" section
+
//Add new infobox endings dropdown to the "advanced" section
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
+
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
+
section: 'advanced',
groups: {
+
groups: {
list: {
+
list: {
tools: {
+
tools: {
endings: {
+
endings: {
label: 'ends',
+
label: 'ends',
type: 'select',
+
type: 'select',
list: {
+
list: {
'sa': {
+
'sa': {
label: 'Stormlight',
+
label: 'Stormlight',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|world=Roshar' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[The Stormlight Archive]]' + '\n' + '}}'
+
pre: '\n' + '|world=Roshar' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[The Stormlight Archive]]' + '\n' + '}}'
}
+
}
}
+
}
},
+
},
'mbe1': {
+
'mbe1': {
label: 'MB Era 1',
+
label: 'MB Era 1',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|world=Scadrial' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Mistborn Era 1]]' + '\n' + '}}'
+
pre: '\n' + '|world=Scadrial' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Mistborn Era 1]]' + '\n' + '}}'
}
+
}
}
+
}
},
+
},
'mbe2': {
+
'mbe2': {
label: 'MB Era 2',
+
label: 'MB Era 2',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|world=Scadrial' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Mistborn Era 2]]' + '\n' + '}}'
+
pre: '\n' + '|world=Scadrial' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Mistborn Era 2]]' + '\n' + '}}'
}
+
}
}
+
}
},
+
},
'wb': {
+
'wb': {
label: 'Warbreaker',
+
label: 'Warbreaker',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|world=Nalthis' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Warbreaker]]' + '\n' + '}}'
+
pre: '\n' + '|world=Nalthis' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Warbreaker]]' + '\n' + '}}'
}
+
}
}
+
}
},
+
},
'ela': {
+
'ela': {
label: 'Elantris',
+
label: 'Elantris',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|world=Sel' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Elantris (book)|Elantris]]' + '\n' + '}}'
+
pre: '\n' + '|world=Sel' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Elantris (book)|Elantris]]' + '\n' + '}}'
}
+
}
}
+
}
},
+
},
'alc': {
+
'alc': {
label: 'Alcatraz',
+
label: 'Alcatraz',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|earth=Alcatraz' + '\n' + '|books=[[Alcatraz Versus the Evil Librarians (series)|Alcatraz Versus the Evil Librarians]]' + '\n' + '}}'
+
pre: '\n' + '|earth=Alcatraz' + '\n' + '|books=[[Alcatraz Versus the Evil Librarians (series)|Alcatraz Versus the Evil Librarians]]' + '\n' + '}}'
}
+
}
}
+
}
},
+
},
'ws': {
+
'ws': {
label: 'White Sand',
+
label: 'White Sand',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|world=Taldain' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[White Sand]]' + '\n' + '}}'
+
pre: '\n' + '|world=Taldain' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[White Sand]]' + '\n' + '}}'
}
+
}
}
+
}
},
+
},
'first-born': {
+
'skyward': {
label: 'Firstborn',
+
label: 'Skyward',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '|nation=High Empire' + '\n' + '|books=[[Firstborn]]' + '\n' + '}}'
+
pre: '\n' + '|world=',
 
post: '\n' + '|universe=[[Cytoverse]]' + '\n' + '|books=[[Skyward (series)]]' + '\n' + '}}'
}
 
}
+
}
},
+
}
'skyward': {
+
}
label: 'Skyward',
+
}
action: {
+
}
 
}
type: 'encapsulate',
 
options: {
+
}
 
}
pre: '\n' + '|world=',
 
 
} );
post: '\n' + '|universe=[[Cytoverse]]' + '\n' + '|books=[[Skyward (series)]]' + '\n' + '}}'
 
}
 
}
 
}
 
}
 
}
 
}
 
}
 
}
 
} );
 
 
</pre>
 
</pre>
 
|}
 
|}
Line 806: Line 797:
 
|
 
|
 
<pre>
 
<pre>
//Add new page ends dropdown to the "advanced" section
+
//Add new page ends dropdown to the "advanced" section
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
+
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
+
section: 'advanced',
groups: {
+
groups: {
list: {
+
list: {
tools: {
+
tools: {
bottoms: {
+
bottoms: {
label: 'bottoms',
+
label: 'bottoms',
type: 'select',
+
type: 'select',
list: {
+
list: {
'pagename': {
+
'pagename': {
label: '{' + '{SUBST:PAGENAME}}',
+
label: '{' + '{SUBST:PAGENAME}}',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '\'\'\'{' + '{SUBST:PAGENAME}}\'\'\''
+
pre: '\n' + '\'\'\'{' + '{SUBST:PAGENAME}}\'\'\''
}
+
}
}
+
}
},
+
},
'subpagename': {
+
'notes': {
label: '{' + '{SUBST:SUBPAGENAME}}',
+
label: '== Notes ==',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '\'\'\'{' + '{SUBST:SUBPAGENAME}}\'\'\''
+
pre: '\n\n' + '== Notes =='
}
+
}
}
+
}
},
+
},
'notes': {
+
'refsection': {
label: '== Notes ==',
+
label: '<' + 'references/>',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n\n' + '== Notes =='
+
pre: '\n' + '<' + 'references />'
}
+
}
}
+
}
},
+
},
'refsection': {
+
'stub': {
label: '<' + 'references/>',
+
label: '{' + '{stub}}',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '<' + 'references />'
+
pre: '\n' + '{' + '{stub}}'
}
+
}
}
+
}
},
+
},
'stub': {
+
'partial': {
label: '{' + '{stub}}',
+
label: '{' + '{partial}}',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '{' + '{stub}}'
+
pre: '\n' + '{' + '{partial}}'
}
+
}
}
+
}
},
+
},
'partial': {
+
'complete': {
label: '{' + '{partial}}',
+
label: '{' + '{complete}}',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '{' + '{partial}}'
+
pre: '\n' + '{' + '{complete}}'
}
+
}
}
+
}
},
+
},
'complete': {
+
'alcatraz': {
label: '{' + '{complete}}',
+
label: '{' + '{Alcatraz}}',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '{' + '{complete}}'
+
pre: '\n' + '{' + '{Alcatraz}}'
}
+
}
}
+
}
},
+
},
'alcatraz': {
+
'elantris': {
label: '{' + '{Alcatraz}}',
+
label: '{' + '{Elantris}}',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '{' + '{Alcatraz}}'
+
pre: '\n' + '{' + '{Elantris}}'
}
+
}
}
+
}
},
+
},
'elantris': {
+
'mbera1': {
label: '{' + '{Elantris}}',
+
label: '{' + '{Mistborn|Era 1}}',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '{' + '{Elantris}}'
+
pre: '\n' + '{' + '{Mistborn|Era 1}}'
}
+
}
}
+
}
},
+
},
'mbera1': {
+
'mbera2': {
label: '{' + '{Mistborn|Era 1}}',
+
label: '{' + '{Mistborn|Era 2}}',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '{' + '{Mistborn|Era 1}}'
+
pre: '\n' + '{' + '{Mistborn|Era 2}}'
}
+
}
}
+
}
},
+
},
'mbera2': {
+
'reckoners': {
label: '{' + '{Mistborn|Era 2}}',
+
label: '{' + '{Reckoners}}',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '{' + '{Mistborn|Era 2}}'
+
pre: '\n' + '{' + '{Reckoners}}'
}
+
}
}
+
}
},
+
},
'reckoners': {
+
'sky': {
label: '{' + '{Reckoners}}',
+
label: '{' + '{Skyward}}',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '{' + '{Reckoners}}'
+
pre: '\n' + '{' + '{Skyward}}'
}
+
}
}
+
}
},
+
},
'sky': {
+
'stormlight': {
label: '{' + '{Skyward}}',
+
label: '{' + '{Stormlight}}',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '{' + '{Skyward}}'
+
pre: '\n' + '{' + '{Stormlight}}'
}
+
}
}
+
}
},
+
},
'storm': {
+
'warbreaker': {
label: '{' + '{Stormlight}}',
+
label: '{' + '{Warbreaker}}',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '{' + '{Stormlight}}'
+
pre: '\n' + '{' + '{Warbreaker}}'
}
+
}
}
+
}
},
+
},
'warbreaker': {
+
'whitesand': {
label: '{' + '{Warbreaker}}',
+
label: '{' + '{White Sand}}',
action: {
+
action: {
type: 'encapsulate',
+
type: 'encapsulate',
options: {
+
options: {
pre: '\n' + '{' + '{Warbreaker}}'
+
pre: '\n' + '{' + '{White Sand}}'
}
+
}
}
+
}
},
+
}
'firstborn': {
+
}
label: '{' + '{Firstborn}}',
+
}
action: {
+
}
 
}
type: 'encapsulate',
 
 
}
options: {
 
 
} );
pre: '\n' + '{' + '{Firstborn}}'
 
}
 
} },
 
'whitesand': {
 
label: '{' + '{White Sand}}',
 
action: {
 
type: 'encapsulate',
 
options: {
 
pre: '\n' + '{' + '{White Sand}}'
 
}
 
}
 
}
 
}
 
}
 
}
 
}
 
}
 
} );
 
 
</pre>
 
</pre>
 
|}
 
|}

Please note that all contributions to The Coppermind are considered to be released under the CC4 by-nc-nd (see Coppermind:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Templates used on this page: