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 409: | Line 409: | ||
| |
| |
||
<pre> |
<pre> |
||
− | + | //Add new references dropdown to the "advanced" section |
|
− | + | $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|
− | + | section: 'advanced', |
|
− | + | groups: { |
|
− | + | list: { |
|
− | tools: { |
+ | tools: { |
− | + | references: { |
|
− | label: ' |
+ | label: 'references', |
− | type: 'select', |
+ | type: 'select', |
− | list: { |
+ | list: { |
− | + | 'book-ref': { |
|
− | label: '{' + '{book ref}}', |
+ | label: '{' + '{book ref}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '{' + '{book ref|', |
+ | pre: '{' + '{book ref|', |
− | post: '}}' |
+ | post: '}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'wob-ref': { |
|
− | label: '{' + '{wob ref}}', |
+ | label: '{' + '{wob ref}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '{' + '{wob ref|', |
+ | pre: '{' + '{wob ref|', |
− | post: '}}' |
+ | post: '}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'ref-plaintext': { |
|
− | label: '{' + '{ref}}', |
+ | label: '{' + '{ref}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '{' + '{ref|text=', |
+ | pre: '{' + '{ref|text=', |
− | post: '}}' |
+ | post: '}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'epigraph-ref': { |
|
− | label: '{' + '{epigraph ref}}', |
+ | label: '{' + '{epigraph ref}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '{' + '{epigraph ref|', |
+ | pre: '{' + '{epigraph ref|', |
− | post: '}}' |
+ | post: '}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'au-ref': { |
|
− | label: '{' + '{au ref}}', |
+ | label: '{' + '{au ref}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '{' + '{au ref|', |
+ | pre: '{' + '{au ref|', |
− | post: '}}' |
+ | post: '}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'msh-ref': { |
|
− | label: '{' + '{msh ref}}', |
+ | label: '{' + '{msh ref}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '{' + '{msh ref|', |
+ | pre: '{' + '{msh ref|', |
− | post: '}}' |
+ | post: '}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'tes-ref': { |
|
− | label: '{' + '{tes ref}}', |
+ | label: '{' + '{tes ref}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '{' + '{tes ref|', |
+ | pre: '{' + '{tes ref|', |
− | post: '}}' |
+ | post: '}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'file-ref': { |
|
− | label: '{' + '{file ref}}', |
+ | label: '{' + '{file ref}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '{' + '{file ref|', |
+ | pre: '{' + '{file ref|', |
− | post: '}}' |
+ | post: '}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'map-ref': { |
|
− | label: '{' + '{map ref}}', |
+ | label: '{' + '{map ref}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '{' + '{map ref|', |
+ | pre: '{' + '{map ref|', |
− | post: '}}' |
+ | post: '}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | 'url-ref': { |
|
− | label: '{' + '{url ref}}', |
+ | label: '{' + '{url ref}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '{' + '{url ref|url=', |
+ | pre: '{' + '{url ref|url=', |
− | post: '|text=|date=|site=}}' |
+ | post: '|text=|date=|site=}}' |
− | + | } |
|
− | } |
+ | } |
− | + | }, |
|
− | + | '17s-ref': { |
|
− | label: '{' + '{17s ref}}', |
+ | label: '{' + '{17s ref}}', |
− | action: { |
+ | action: { |
− | + | type: 'encapsulate', |
|
− | + | options: { |
|
− | pre: '{' + '{17s ref|topic/news/post', |
+ | pre: '{' + '{17s ref|topic/news/post', |
− | post: '|id#|description|date=}}' |
+ | post: '|id#|description|date=}}' |
− | + | } |
|
− | } |
+ | } |
− | + | } |
|
− | } |
+ | } |
− | + | } |
|
− | } |
+ | } |
− | + | } |
|
− | + | } |
|
− | + | } ); |
|
</pre> |
</pre> |
||
|} |
|} |