Diferencia entre revisiones de «Usuario:King of Herdaz/common.js»
Ir a la navegación
Ir a la búsqueda
m (pruning) |
m (pretty sure these aren't needed) |
||
Línea 529: | Línea 529: | ||
options: { |
options: { |
||
pre: '{' + '{character' + '\n' + '|image=' + '\n' + '|unnamed=y' + '\n' + '|merge-family=y' + '\n' + '|parents=' + '\n' + '|spouse=' + '\n' + '|siblings=' + '\n' + '|children=' + '\n' + '|ancestors=' + '\n' + '|relatives=' + '\n' + '|descendants=' + '\n' + '|born=' + '\n' + '|died=' + '\n' + '|abilities=' + '\n' + '|bonded=' + '\n' + '|titles=' + '\n' + '|aliases=' + '\n' + '|skills=' + '\n' + '|achievements=' + '\n' + '|#profession=' + '\n' + '|profession=' + '\n' + '|occupation=' + '\n' + '|religion=' + '\n' + '|groups=' + '\n' + '|species=' + '\n' + '|era=' + '\n' + '|birthplace=' + '\n' + '|residence=' + '\n' + '|ethnicity=' + '\n' + '|nation=' + '\n' + '|nationality=', |
pre: '{' + '{character' + '\n' + '|image=' + '\n' + '|unnamed=y' + '\n' + '|merge-family=y' + '\n' + '|parents=' + '\n' + '|spouse=' + '\n' + '|siblings=' + '\n' + '|children=' + '\n' + '|ancestors=' + '\n' + '|relatives=' + '\n' + '|descendants=' + '\n' + '|born=' + '\n' + '|died=' + '\n' + '|abilities=' + '\n' + '|bonded=' + '\n' + '|titles=' + '\n' + '|aliases=' + '\n' + '|skills=' + '\n' + '|achievements=' + '\n' + '|#profession=' + '\n' + '|profession=' + '\n' + '|occupation=' + '\n' + '|religion=' + '\n' + '|groups=' + '\n' + '|species=' + '\n' + '|era=' + '\n' + '|birthplace=' + '\n' + '|residence=' + '\n' + '|ethnicity=' + '\n' + '|nation=' + '\n' + '|nationality=', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 539: | Línea 538: | ||
options: { |
options: { |
||
pre: '{' + '{architecture' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|usage=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=', |
pre: '{' + '{architecture' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|usage=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 549: | Línea 547: | ||
options: { |
options: { |
||
pre: '{' + '{business' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|founder= / founders=' + '\n' + '|leader= / leaders=' + '\n' + '|members=' + '\n' + '|services=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|nation=', |
pre: '{' + '{business' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|founder= / founders=' + '\n' + '|leader= / leaders=' + '\n' + '|members=' + '\n' + '|services=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|nation=', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 559: | Línea 556: | ||
options: { |
options: { |
||
pre: '{' + '{culture' + '\n' + '|image=' + '\n' + '|related=' + '\n' + '|type=' + '\n' + '|era=' + '\n' + '|origin=', |
pre: '{' + '{culture' + '\n' + '|image=' + '\n' + '|related=' + '\n' + '|type=' + '\n' + '|era=' + '\n' + '|origin=', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 569: | Línea 565: | ||
options: { |
options: { |
||
pre: '{' + '{event' + '\n' + '|image=' + '\n' + '|partof=' + '\n' + '|date=' + '\n' + '|era=' + '\n' + '|participants=' + '\n' + '|effects=' + '\n' + '|city= / state= / region= / nation=' + '\n' + '|princedom= / dominance=' + '\n' + '|location=', |
pre: '{' + '{event' + '\n' + '|image=' + '\n' + '|partof=' + '\n' + '|date=' + '\n' + '|era=' + '\n' + '|participants=' + '\n' + '|effects=' + '\n' + '|city= / state= / region= / nation=' + '\n' + '|princedom= / dominance=' + '\n' + '|location=', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 579: | Línea 574: | ||
options: { |
options: { |
||
pre: '{' + '{food' + '\n' + '|image=' + '\n' + '|ingredients=' + '\n' + '|type=' + '\n' + '|taste=' + '\n' + '|origin=', |
pre: '{' + '{food' + '\n' + '|image=' + '\n' + '|ingredients=' + '\n' + '|type=' + '\n' + '|taste=' + '\n' + '|origin=', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 589: | Línea 583: | ||
options: { |
options: { |
||
pre: '{' + '{geography' + '\n' + '|map= / |image=' + '\n' + '|type=' + '\n' + '|era=' + '\n' + '|region=', |
pre: '{' + '{geography' + '\n' + '|map= / |image=' + '\n' + '|type=' + '\n' + '|era=' + '\n' + '|region=', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 599: | Línea 592: | ||
options: { |
options: { |
||
pre: '{' + '{group' + '\n' + '|image=' + '\n' + '|founder= / founders=' + '\n' + '|leader= / leaders=' + '\n' + '|hq=' + '\n' + '|type=' + '\n' + '|era=', |
pre: '{' + '{group' + '\n' + '|image=' + '\n' + '|founder= / founders=' + '\n' + '|leader= / leaders=' + '\n' + '|hq=' + '\n' + '|type=' + '\n' + '|era=', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 609: | Línea 601: | ||
options: { |
options: { |
||
pre: '{' + '{item' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|creator= / creators=' + '\n' + '|type=' + '\n' + '|function=', |
pre: '{' + '{item' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|creator= / creators=' + '\n' + '|type=' + '\n' + '|function=', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 619: | Línea 610: | ||
options: { |
options: { |
||
pre: '{' + '{lifeform' + '\n' + '|image=' + '\n' + '|type=' + '\n' + '|abilities=' + '\n' + '|use=' + '\n' + '|native=' + '\n' + '|sapient=y', |
pre: '{' + '{lifeform' + '\n' + '|image=' + '\n' + '|type=' + '\n' + '|abilities=' + '\n' + '|use=' + '\n' + '|native=' + '\n' + '|sapient=y', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 629: | Línea 619: | ||
options: { |
options: { |
||
pre: '{' + '{settlement' + '\n' + '|map/image=' + '\n' + '|ruler=' + '\n' + '|occupied=' + '\n' + '|era=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=', |
pre: '{' + '{settlement' + '\n' + '|map/image=' + '\n' + '|ruler=' + '\n' + '|occupied=' + '\n' + '|era=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 639: | Línea 628: | ||
options: { |
options: { |
||
pre: '{' + '{location' + '\n' + '|map/image=' + '\n' + '|capital=' + '\n' + '|ruler=' + '\n' + '|occupied=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=', |
pre: '{' + '{location' + '\n' + '|map/image=' + '\n' + '|capital=' + '\n' + '|ruler=' + '\n' + '|occupied=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 649: | Línea 637: | ||
options: { |
options: { |
||
pre: '{' + '{literature' + '\n' + '|image=' + '\n' + '|type=' + '\n' + '|author=' + '\n' + '|language=' + '\n' + '|era=', |
pre: '{' + '{literature' + '\n' + '|image=' + '\n' + '|type=' + '\n' + '|author=' + '\n' + '|language=' + '\n' + '|era=', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 659: | Línea 646: | ||
options: { |
options: { |
||
pre: '{' + '{vehicle' + '\n' + '|image=' + '\n' + '|owner/owners=' + '\n' + '|creator/creators=' + '\n' + '|type=' + '\n' + '|captain=', |
pre: '{' + '{vehicle' + '\n' + '|image=' + '\n' + '|owner/owners=' + '\n' + '|creator/creators=' + '\n' + '|type=' + '\n' + '|captain=', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 686: | Línea 672: | ||
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' + '}}', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 696: | Línea 681: | ||
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' + '}}', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 706: | Línea 690: | ||
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' + '}}', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 716: | Línea 699: | ||
options: { |
options: { |
||
pre: '\n' + '|world=Nalthis' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Warbreaker]]' + '\n' + '}}', |
pre: '\n' + '|world=Nalthis' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Warbreaker]]' + '\n' + '}}', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 726: | Línea 708: | ||
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' + '}}', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 736: | Línea 717: | ||
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' + '}}', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 746: | Línea 726: | ||
options: { |
options: { |
||
pre: '\n' + '|world=' + '\n' + '|universe=[[Cytoverse]]' + '\n' + '|books=[[Skyward (series)]]' + '\n' + '}}', |
pre: '\n' + '|world=' + '\n' + '|universe=[[Cytoverse]]' + '\n' + '|books=[[Skyward (series)]]' + '\n' + '}}', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 773: | Línea 752: | ||
options: { |
options: { |
||
pre: '{' + '{file ref|Elendel_Daily_broadsheet.png|\'\'The Elendel Daily\'\' Broadsheet}}', |
pre: '{' + '{file ref|Elendel_Daily_broadsheet.png|\'\'The Elendel Daily\'\' Broadsheet}}', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 783: | Línea 761: | ||
options: { |
options: { |
||
pre: '{' + '{file ref|House_Record_broadsheet.jpg|\'\'The House Record\'\' Broadsheet}}', |
pre: '{' + '{file ref|House_Record_broadsheet.jpg|\'\'The House Record\'\' Broadsheet}}', |
||
− | post: '' |
||
} |
} |
||
} |
} |
||
Línea 793: | Línea 770: | ||
options: { |
options: { |
||
pre: '{' + '{file ref|New_Ascendancy_broadsheet.jpg|\'\'The New Ascendency\'\' Broadsheet}}', |
pre: '{' + '{file ref|New_Ascendancy_broadsheet.jpg|\'\'The New Ascendency\'\' Broadsheet}}', |
||
− | post: '' |
||
} |
} |
||
} |
} |
Revisión del 20:31 28 feb 2021
//change syntax highlighter timeout time ('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-DotsSyntaxHighlighter.js&action=raw&ctype=text/javascript'); syntaxHighlighterConfig = { timeout: 45, } //customize toolbar var customizeToolbar = function() { /* Your code goes here */ //add new section to editing toolbar $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'sections': { 'snippets': { 'type': 'booklet', 'label': 'Useful Stuff', 'pages': { //page of art stuff 'section-art': { 'label': 'Art stuff', 'layout': 'characters', 'characters': [ { 'action': { 'type': 'encapsulate', 'options': { 'pre': '{'+'{artist' + '\n' + '|image=' + '\n' + '|alias=' + '\n' + '|fb=' + '\n' + '|reddit=' + '\n' + '|behance=' + '\n' + '|da=' + '\n' + '|ig=' + '\n' + '|as=' + '\n' + '|tumblr=' + '\n' + '|twitter=' + '\n' + '|site=' + '\n' + '|license=all|some|none|official' + '\n' + '|contact=' + '\n' + '|type=fan|interior|cover|multimedia' + '\n' + '|no-notify=y' + '\n' + '}}' + '\n' } }, 'label': '{' + '{artist}}' }, { 'action': { 'type': 'encapsulate', 'options': { 'pre': '== Official artwork ==' + '\n' + '<' + 'gallery mode="packed" heights=200px caption="Official artwork">' + '\n' + '\n' + '</gallery>' + '\n' + '\n' + '== Portraits ==' + '\n' + '<' + 'gallery mode="packed" heights=200px caption="Portraits">' + '\n' + '\n' + '</gallery>' + '\n' + '\n' + '== Scenes ==' + '\n' + '<' + 'gallery mode="packed" heights=200px caption="Scenes">' + '\n' + '\n' + '</gallery>' + '\n' + '\n' + '[' + '[Category:Gallery Subpages]]' } }, 'label': 'Gallery subpage' }, { 'action': { 'type': 'encapsulate', 'options': { 'pre': '{' + '{art' + '\n' + '|#artist=' + '\n' + '|series=' + '\n' + '|#source=', 'post': '\n' + '|type=' + '\n' + '}}' } }, 'label': 'Art infobox' }, { 'action': { 'type': 'encapsulate', 'options': { 'pre': '<small><center>by {' + '{a|', 'post': '}}</center></small>' } }, 'label': 'Artist heading' }, '{' + '{cat tag|Books|book cover}}', '{' + '{cat tag|Character images}}', '{' + '{cat tag|Art}}', '{' + '{cat tag|Interior art}}', '|official=y' + '\n', '\n' + '|tracer=', '\n' + '|modified=', '\n' + '|book=', '\n' + '|series=', { 'action': { 'type': 'encapsulate', 'options': { 'pre': '[mailto:', 'post': ' Email]' } }, 'label': 'Email' }, '<br style="clear:right;"/>', '<' + 'gallery caption="Gallery" mode="packed" heights=200px>' + '\n', ] }, //page of other useful stuff 'section-tags': { 'label': 'Other Stuff', 'layout': 'characters', 'characters': [ '\n' + '{' + '{spoiler|sa4}}', '\n' + '{' + '{update|sa4}}', '\n' + '{' + '{demoted|sa4}}', '{' + '{for|/Gallery|more images}}', '\n' + '{' + '{columns|count=2|', '<br/>', { 'action': { 'type': 'encapsulate', 'options': { 'pre': '{' + '{Rosharan date|', 'post': '}}' } }, 'label': '{' + '{Rosharan date}}' }, { 'action': { 'type': 'encapsulate', 'options': { 'pre': '<pre>', 'post': '</pre>' } }, 'label': '<pre>' }, { 'action': { 'type': 'encapsulate', 'options': { 'pre': '{' + '{cat tag|', 'post': '}}' } }, 'label': '{' + '{cat tag|}}' }, { 'action': { 'type': 'encapsulate', 'options': { 'pre': '{' + '{tag+|', 'post': '}}' } }, 'label': '{' + '{tag+|}}' }, { 'action': { 'type': 'encapsulate', 'options': { 'pre': '{' + '{tag|', 'post': '}}' } }, 'label': '{' + '{tag|}}' }, '{' + '{expand}}', '{' + '{cite}}', '{' + '{delete}}', '{' + '{clarify}}', '{' + '{disputed}}', { 'action': { 'type': 'encapsulate', 'options': { 'pre': '{' + '{move|', 'post': '}}' } }, 'label': '{' + '{move|}}' }, { 'action': { 'type': 'encapsulate', 'options': { 'pre': '{' + '{merge|', 'post': '}}' } }, 'label': '{' + '{merge|}}' }, { 'action': { 'type': 'encapsulate', 'options': { 'pre': '{' + '{anchor|', 'post': '}}' } }, 'label': '{' + '{anchor|}}' }, '{' + '{theory}}', '{' + '{uncanonical}}', '{' + '{copyright}}', { 'action': { 'type': 'encapsulate', 'options': { 'pre': '<code>', 'post': '</code>' } }, 'label': '<code>' }, { 'action': { 'type': 'encapsulate', 'options': { 'pre': '<strike>', 'post': '</strike>' } }, 'label': '<strike>' }, { 'action': { 'type': 'encapsulate', 'options': { 'pre': '<DynamicPageList>' + '\n' + 'mode=ordered' + '\n' + 'category=' + '\n' + 'notcategory=' + '\n' + 'namespace=' + '\n' + 'ordermethod=sortkey' + '\n' + 'order=ascending' + '\n' + '</DynamicPageList>' } }, 'label': '<dynamicpagelist>' }, '{' + '{for|:Category:Residents of {' + '{SUBST:PAGENAME}}|a full list see}}', '{' + '{Special:PrefixIndex/{' + '{FULLPAGENAME}}/|stripprefix=1}}', ] }, //page of commonly used infobox parameters 'section-params': { 'label': 'Simple Character Infobox', 'layout': 'characters', 'characters': [ '{' + '{character', '\n' + '|residence=', '\n' + '|profession=', '\n' + '|#profession=', '\n' + '|species=', '\n' + '|abilities=', '\n' + '|ethnicity=', '\n' + '|born=', '\n' + '|died=', '\n' + '|nationality=', '\n' + '|image=', '\n' + '|bonded=', ] }, //page of stuff commonly used at the end of a page 'section-bottom': { 'label': 'Bottom of Page', 'layout': 'characters', 'characters': [ '== 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}}', ] } } } } }); // Add category button to the "advanced" section $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'insert', tools: { "category": { label: 'Category', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/2/2d/Button_clipboard_category.png', action: { type: 'encapsulate', options: { pre: "[[Category: ", post: "]]" } } } } }); // Add image template button to the "advanced" section $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'insert', tools: { "category": { label: 'Image template', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/d/d8/Vector_toolbar_insert_image_button.png', action: { type: 'encapsulate', options: { pre: '{' + '{image|', post: '|side=|width=|caption}}' } } } } }); // Add Wikipedia link button to the "advanced" section $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'insert', tools: { "category": { label: 'Wikipedia', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/c/cb/Button_wikipedia.png', action: { type: 'encapsulate', options: { pre: "[[Wikipedia: ", post: "|]]" } } } } }); // Add signature button to the "advanced" section $('#wpTextbox1').wikiEditor('addToToolbar', { section: 'advanced', group: 'format', tools: { "category": { label: 'Signature', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/d/d1/Button_mysignature.png', action: { type: 'encapsulate', options: { pre: '~~' + '~~' } } } } }); // Add link button to the "advanced" section $('#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', group: 'format', tools: { "comment": { label: 'Link', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/9/97/Button_int_link.png', action: { type: 'encapsulate', options: { pre: "[[", post: "]]" } } } } }); // Add hidden text button to the "advanced" section $('#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', group: 'format', tools: { "comment": { label: 'Hidden text', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/1/1b/Button_hide_wiki_tag.png', action: { type: 'encapsulate', options: { pre: "<!-- ", post: " -->" } } } } }); // Add columns button to the "advanced" section $('#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', group: 'format', tools: { "comment": { label: 'Columns', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/2/25/Vector_toolbar_bulleted_list_button.png', action: { type: 'encapsulate', options: { pre: '{' + '{columns|' + '\n', post: '\n' + '}}' } } } } }); //Remove default references button $( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', { 'section': 'main', 'group': 'insert', 'tool': 'reference' }); //Add new references dropdown to the "advanced" section $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', groups: { list: { tools: { references: { label: 'References', type: 'select', list: { 'book-button': { label: '{' + '{book ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{book ref|', post: '}}' } } }, 'wob-button': { label: '{' + '{wob ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{wob ref|', post: '}}' } } }, 'ref-button': { label: '{' + '{ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{ref|text=', post: '}}' } } }, 'epigraph-button': { label: '{' + '{epigraph ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{epigraph ref|', post: '}}' } } }, 'au-button': { label: '{' + '{au ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{au ref|', post: '}}' } } }, 'msh-button': { label: '{' + '{msh ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{msh ref|', post: '}}' } } }, 'file-button': { label: '{' + '{file ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{file ref|', post: '}}' } } }, 'url-button': { label: '{' + '{url ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{url ref|url=', post: '|text=|date=|site=}}' } } }, '17s-button': { label: '{' + '{17s ref}}', action: { type: 'encapsulate', options: { pre: '{' + '{17s ref|topic/news/post', post: '|id#|description|date=}}' } } } } } } } } } ); //Adding an infobox dropdown to the "advanced" section $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', groups: { list: { tools: { infoboxes: { label: 'Infoboxes', type: 'select', list: { 'character-button': { label: '{' + '{character}}', action: { type: 'encapsulate', options: { pre: '{' + '{character' + '\n' + '|image=' + '\n' + '|unnamed=y' + '\n' + '|merge-family=y' + '\n' + '|parents=' + '\n' + '|spouse=' + '\n' + '|siblings=' + '\n' + '|children=' + '\n' + '|ancestors=' + '\n' + '|relatives=' + '\n' + '|descendants=' + '\n' + '|born=' + '\n' + '|died=' + '\n' + '|abilities=' + '\n' + '|bonded=' + '\n' + '|titles=' + '\n' + '|aliases=' + '\n' + '|skills=' + '\n' + '|achievements=' + '\n' + '|#profession=' + '\n' + '|profession=' + '\n' + '|occupation=' + '\n' + '|religion=' + '\n' + '|groups=' + '\n' + '|species=' + '\n' + '|era=' + '\n' + '|birthplace=' + '\n' + '|residence=' + '\n' + '|ethnicity=' + '\n' + '|nation=' + '\n' + '|nationality=', } } }, 'architecture-button': { label: '{' + '{architecture}}', action: { type: 'encapsulate', options: { pre: '{' + '{architecture' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|usage=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=', } } }, 'business-button': { label: '{' + '{business}}', action: { type: 'encapsulate', options: { pre: '{' + '{business' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|founder= / founders=' + '\n' + '|leader= / leaders=' + '\n' + '|members=' + '\n' + '|services=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|nation=', } } }, 'culture-button': { label: '{' + '{culture}}', action: { type: 'encapsulate', options: { pre: '{' + '{culture' + '\n' + '|image=' + '\n' + '|related=' + '\n' + '|type=' + '\n' + '|era=' + '\n' + '|origin=', } } }, 'event-button': { label: '{' + '{event}}', action: { type: 'encapsulate', options: { pre: '{' + '{event' + '\n' + '|image=' + '\n' + '|partof=' + '\n' + '|date=' + '\n' + '|era=' + '\n' + '|participants=' + '\n' + '|effects=' + '\n' + '|city= / state= / region= / nation=' + '\n' + '|princedom= / dominance=' + '\n' + '|location=', } } }, 'food-button': { label: '{' + '{food}}', action: { type: 'encapsulate', options: { pre: '{' + '{food' + '\n' + '|image=' + '\n' + '|ingredients=' + '\n' + '|type=' + '\n' + '|taste=' + '\n' + '|origin=', } } }, 'geography-button': { label: '{' + '{geography}}', action: { type: 'encapsulate', options: { pre: '{' + '{geography' + '\n' + '|map= / |image=' + '\n' + '|type=' + '\n' + '|era=' + '\n' + '|region=', } } }, 'group-button': { label: '{' + '{group}}', action: { type: 'encapsulate', options: { pre: '{' + '{group' + '\n' + '|image=' + '\n' + '|founder= / founders=' + '\n' + '|leader= / leaders=' + '\n' + '|hq=' + '\n' + '|type=' + '\n' + '|era=', } } }, 'item-button': { label: '{' + '{item}}', action: { type: 'encapsulate', options: { pre: '{' + '{item' + '\n' + '|image=' + '\n' + '|owner= / owners=' + '\n' + '|creator= / creators=' + '\n' + '|type=' + '\n' + '|function=', } } }, 'lifeform-button': { label: '{' + '{lifeform}}', action: { type: 'encapsulate', options: { pre: '{' + '{lifeform' + '\n' + '|image=' + '\n' + '|type=' + '\n' + '|abilities=' + '\n' + '|use=' + '\n' + '|native=' + '\n' + '|sapient=y', } } }, 'settlement-button': { label: '{' + '{settlement}}', action: { type: 'encapsulate', options: { pre: '{' + '{settlement' + '\n' + '|map/image=' + '\n' + '|ruler=' + '\n' + '|occupied=' + '\n' + '|era=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=', } } }, 'location-button': { label: '{' + '{location}}', action: { type: 'encapsulate', options: { pre: '{' + '{location' + '\n' + '|map/image=' + '\n' + '|capital=' + '\n' + '|ruler=' + '\n' + '|occupied=' + '\n' + '|era=' + '\n' + '|city=' + '\n' + '|state=' + '\n' + '|dominance=' + '\n' + '|princedom=' + '\n' + '|region=' + '\n' + '|nation=', } } }, 'literature-button': { label: '{' + '{literature}}', action: { type: 'encapsulate', options: { pre: '{' + '{literature' + '\n' + '|image=' + '\n' + '|type=' + '\n' + '|author=' + '\n' + '|language=' + '\n' + '|era=', } } }, 'vehicle-button': { label: '{' + '{vehicle}}', action: { type: 'encapsulate', options: { pre: '{' + '{vehicle' + '\n' + '|image=' + '\n' + '|owner/owners=' + '\n' + '|creator/creators=' + '\n' + '|type=' + '\n' + '|captain=', } } } } } } } } } ); //Add new infobox endings dropdown to the "advanced" section $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', groups: { list: { tools: { endings: { label: 'endings', type: 'select', list: { 'sa-button': { label: 'Stormlight', action: { type: 'encapsulate', options: { pre: '\n' + '|world=Roshar' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[The Stormlight Archive]]' + '\n' + '}}', } } }, 'mbe1-button': { label: 'MB Era 1', action: { type: 'encapsulate', options: { pre: '\n' + '|world=Scadrial' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Mistborn Era 1]]' + '\n' + '}}', } } }, 'mbe2-button': { label: 'MB Era 2', action: { type: 'encapsulate', options: { pre: '\n' + '|world=Scadrial' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Mistborn Era 2]]' + '\n' + '}}', } } }, 'wb-button': { label: 'Warbreaker', action: { type: 'encapsulate', options: { pre: '\n' + '|world=Nalthis' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[Warbreaker]]' + '\n' + '}}', } } }, 'alc-button': { label: 'Alcatraz', action: { type: 'encapsulate', options: { pre: '\n' + '|earth=Alcatraz' + '\n' + '|books=[[Alcatraz Versus the Evil Librarians (series)|Alcatraz Versus the Evil Librarians]]' + '\n' + '}}', } } }, 'ws-button': { label: 'White Sand', action: { type: 'encapsulate', options: { pre: '\n' + '|world=Taldain' + '\n' + '|universe=[[Cosmere]]' + '\n' + '|books=[[White Sand]]' + '\n' + '}}', } } }, 'skyward-button': { label: 'Skyward', action: { type: 'encapsulate', options: { pre: '\n' + '|world=' + '\n' + '|universe=[[Cytoverse]]' + '\n' + '|books=[[Skyward (series)]]' + '\n' + '}}', } } } } } } } } } ); //Add new broadsheet citations dropdown to the "advanced" section $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', groups: { list: { tools: { broadsheets: { label: 'broadsheets', type: 'select', list: { 'elendel-button': { label: 'Elendel', action: { type: 'encapsulate', options: { pre: '{' + '{file ref|Elendel_Daily_broadsheet.png|\'\'The Elendel Daily\'\' Broadsheet}}', } } }, 'house-button': { label: 'House', action: { type: 'encapsulate', options: { pre: '{' + '{file ref|House_Record_broadsheet.jpg|\'\'The House Record\'\' Broadsheet}}', } } }, 'ascendency-button': { label: 'Ascendency', action: { type: 'encapsulate', options: { pre: '{' + '{file ref|New_Ascendancy_broadsheet.jpg|\'\'The New Ascendency\'\' Broadsheet}}', } } } } } } } } } ); }; /* * Check if view is in edit mode and that the required modules are available. Then, customize the toolbar... * Don't touch below this line! */ if (['edit', 'submit'].indexOf(mw.config.get('wgAction')) !== -1) { mw.loader.using('user.options').then(function() { // This can be the string "0" if the user disabled the preference ([[phab:T54542#555387]]) if (mw.user.options.get('usebetatoolbar') == 1) { $.when( mw.loader.using('ext.wikiEditor'), $.ready ).then(customizeToolbar); } }); }