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 |
|
− | + | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|
− | + | section: 'advanced', |
|
− | + | groups: { |
|
− | + | list: { |
|
− | tools: { |
+ | tools: { |
− | + | simplecharacterinfobox: { |
|
− | label: 'build-a-box', |
+ | label: 'build-a-box', |
− | type: 'select', |
+ | type: 'select', |
− | list: { |
+ | list: { |
− | + | 'start': { |
|
− | label: '{' + '{character', |
+ | label: '{' + '{character', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '{' + '{character' |
+ | pre: '{' + '{character' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'residence': { |
|
− | label: '|residence=', |
+ | label: '|residence=', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '|residence=' |
+ | pre: '\n' + '|residence=' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'imageparam': { |
|
− | label: '|image=', |
+ | label: '|image=', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '|image=' |
+ | pre: '\n' + '|image=' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'profession': { |
|
− | label: '|profession=', |
+ | label: '|profession=', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '|profession=' |
+ | pre: '\n' + '|profession=' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | '#profession': { |
|
− | label: '|#profession=', |
+ | label: '|#profession=', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '|#profession=' |
+ | pre: '\n' + '|#profession=' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'skills': { |
|
− | label: '|skills=', |
+ | label: '|skills=', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '|skills=' |
+ | pre: '\n' + '|skills=' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'species': { |
|
− | label: '|species=', |
+ | label: '|species=', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '|species=' |
+ | pre: '\n' + '|species=' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'abilities': { |
|
− | label: '|abilities=', |
+ | label: '|abilities=', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '|abilities=' |
+ | pre: '\n' + '|abilities=' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'ethnicity': { |
|
− | label: '|ethnicity=', |
+ | label: '|ethnicity=', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '|ethnicity=' |
+ | pre: '\n' + '|ethnicity=' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'born': { |
|
− | label: '|born=', |
+ | label: '|born=', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '|born=' |
+ | pre: '\n' + '|born=' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'died': { |
|
− | label: '|died=', |
+ | label: '|died=', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '|died=' |
+ | pre: '\n' + '|died=' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'nationality': { |
|
− | label: '|nationality=', |
+ | label: '|nationality=', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '|nationality=' |
+ | pre: '\n' + '|nationality=' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'bonded': { |
|
− | label: '|bonded=', |
+ | label: '|bonded=', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '|bonded=' |
+ | pre: '\n' + '|bonded=' |
− | + | } |
|
− | } |
+ | } |
− | + | } |
|
− | } |
+ | } |
− | + | } |
|
− | } |
+ | } |
− | + | } |
|
− | + | } |
|
− | + | } ); |
|
</pre> |
</pre> |
||
|} |
|} |
||
Line 696: | Line 696: | ||
| |
| |
||
<pre> |
<pre> |
||
− | + | //Add new infobox endings dropdown to the "advanced" section |
|
− | + | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|
− | + | section: 'advanced', |
|
− | + | groups: { |
|
− | + | list: { |
|
− | tools: { |
+ | tools: { |
− | + | endings: { |
|
− | label: 'ends', |
+ | label: 'ends', |
− | type: 'select', |
+ | type: 'select', |
− | list: { |
+ | list: { |
− | + | 'sa': { |
|
− | label: 'Stormlight', |
+ | label: 'Stormlight', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | 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': { |
|
− | label: 'MB Era 1', |
+ | label: 'MB Era 1', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | 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': { |
|
− | label: 'MB Era 2', |
+ | label: 'MB Era 2', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | 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': { |
|
− | label: 'Warbreaker', |
+ | label: 'Warbreaker', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '|world=Nalthis' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Warbreaker]]' + '\n' + '}}' |
+ | pre: '\n' + '|world=Nalthis' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Warbreaker]]' + '\n' + '}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'ela': { |
|
− | label: 'Elantris', |
+ | label: 'Elantris', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | 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': { |
|
− | label: 'Alcatraz', |
+ | label: 'Alcatraz', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | 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': { |
|
− | label: 'White Sand', |
+ | label: 'White Sand', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | 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' + '}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'skyward': { |
|
− | label: ' |
+ | label: 'Skyward', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '| |
+ | pre: '\n' + '|world=', |
⚫ | |||
⚫ | |||
− | } |
+ | } |
− | + | } |
|
− | + | } |
|
− | + | } |
|
− | + | } |
|
⚫ | |||
− | type: 'encapsulate', |
||
− | + | } |
|
⚫ | |||
− | pre: '\n' + '|world=', |
||
⚫ | |||
⚫ | |||
⚫ | |||
− | } |
||
− | } |
||
− | } |
||
− | } |
||
− | } |
||
⚫ | |||
− | } |
||
⚫ | |||
</pre> |
</pre> |
||
|} |
|} |
||
Line 806: | Line 797: | ||
| |
| |
||
<pre> |
<pre> |
||
− | + | //Add new page ends dropdown to the "advanced" section |
|
− | + | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|
− | + | section: 'advanced', |
|
− | + | groups: { |
|
− | + | list: { |
|
− | tools: { |
+ | tools: { |
− | + | bottoms: { |
|
− | label: 'bottoms', |
+ | label: 'bottoms', |
− | type: 'select', |
+ | type: 'select', |
− | list: { |
+ | list: { |
− | + | 'pagename': { |
|
− | label: '{' + '{SUBST:PAGENAME}}', |
+ | label: '{' + '{SUBST:PAGENAME}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '\'\'\'{' + '{SUBST:PAGENAME}}\'\'\'' |
+ | pre: '\n' + '\'\'\'{' + '{SUBST:PAGENAME}}\'\'\'' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'notes': { |
|
− | label: ' |
+ | label: '== Notes ==', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + ' |
+ | pre: '\n\n' + '== Notes ==' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'refsection': { |
|
− | label: ' |
+ | label: '<' + 'references/>', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: ' |
+ | pre: '\n' + '<' + 'references />' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'stub': { |
|
− | label: ' |
+ | label: '{' + '{stub}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + ' |
+ | pre: '\n' + '{' + '{stub}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'partial': { |
|
− | label: '{' + '{ |
+ | label: '{' + '{partial}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '{' + '{ |
+ | pre: '\n' + '{' + '{partial}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'complete': { |
|
− | label: '{' + '{ |
+ | label: '{' + '{complete}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '{' + '{ |
+ | pre: '\n' + '{' + '{complete}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'alcatraz': { |
|
− | label: '{' + '{ |
+ | label: '{' + '{Alcatraz}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '{' + '{ |
+ | pre: '\n' + '{' + '{Alcatraz}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'elantris': { |
|
− | label: '{' + '{ |
+ | label: '{' + '{Elantris}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '{' + '{ |
+ | pre: '\n' + '{' + '{Elantris}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'mbera1': { |
|
− | label: '{' + '{ |
+ | label: '{' + '{Mistborn|Era 1}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '{' + '{ |
+ | pre: '\n' + '{' + '{Mistborn|Era 1}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'mbera2': { |
|
− | label: '{' + '{Mistborn|Era |
+ | label: '{' + '{Mistborn|Era 2}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '{' + '{Mistborn|Era |
+ | pre: '\n' + '{' + '{Mistborn|Era 2}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'reckoners': { |
|
− | label: '{' + '{ |
+ | label: '{' + '{Reckoners}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '{' + '{ |
+ | pre: '\n' + '{' + '{Reckoners}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'sky': { |
|
− | label: '{' + '{ |
+ | label: '{' + '{Skyward}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '{' + '{ |
+ | pre: '\n' + '{' + '{Skyward}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'stormlight': { |
|
− | label: '{' + '{ |
+ | label: '{' + '{Stormlight}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '{' + '{ |
+ | pre: '\n' + '{' + '{Stormlight}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'warbreaker': { |
|
− | label: '{' + '{ |
+ | label: '{' + '{Warbreaker}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '{' + '{ |
+ | pre: '\n' + '{' + '{Warbreaker}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'whitesand': { |
|
− | label: '{' + '{ |
+ | label: '{' + '{White Sand}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '\n' + '{' + '{ |
+ | pre: '\n' + '{' + '{White Sand}}' |
− | + | } |
|
− | } |
+ | } |
− | + | } |
|
− | + | } |
|
− | + | } |
|
− | + | } |
|
⚫ | |||
− | type: 'encapsulate', |
||
⚫ | |||
− | options: { |
||
⚫ | |||
− | pre: '\n' + '{' + '{Firstborn}}' |
||
− | } |
||
− | } }, |
||
− | 'whitesand': { |
||
− | label: '{' + '{White Sand}}', |
||
− | action: { |
||
− | type: 'encapsulate', |
||
− | options: { |
||
− | pre: '\n' + '{' + '{White Sand}}' |
||
− | } |
||
− | } |
||
− | } |
||
− | } |
||
− | } |
||
− | } |
||
⚫ | |||
− | } |
||
⚫ | |||
</pre> |
</pre> |
||
|} |
|} |