打开/关闭搜索
搜索
打开/关闭菜单
1.3K
143
375
74K
医林拾薪
导航
首页
医林拾薪论坛
最近更改
随机页面
特殊页面
上传文件
快捷入口
医学本科题库
待翻译的英语单词
待补充英文的名词
小工具
导出ANKI卡组
本科题库创建向导
题库录入工具
录入英语单词
录入名称解释
Toggle preferences menu
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
登录
查看“MediaWiki:Gadget-custom-toolbar.js”的源代码
MediaWiki界面页面
分享此页面
查看
阅读
查看源代码
查看历史
associated-pages
消息
讨论
更多操作
←
MediaWiki:Gadget-custom-toolbar.js
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此JavaScript页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
// Check if we're editing a page. if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) { // Add a hook handler. mw.hook( 'wikiEditor.toolbarReady' ).add( function ( $textarea ) { // Configure a new toolbar entry on the given $textarea jQuery object. //题库模板的下拉菜单 $textarea.wikiEditor( 'addToToolbar', { section: 'main', groups: { list: { tools: { templates: { label: '题库模板', type: 'select', list: { 'standard-tikupage':{ label: '标准题库页面', action: { type: 'encapsulate', options: { pre: '__TOC__\n{{刷题入口}}\n===单选题===\n\n<noinclude>{{目录-{{ROOTPAGENAME}}|display=none}}</noinclude>', post: '' } } } ,'A1-button': { label: 'A1型题', action: { type: 'encapsulate', options: { pre: '{{A型题\n|source=\n|title=\n|choices="A":"","B":"","C":"","D":"","E":""\n|answer=\n|explain=\n}}\n\n', post: '' } } } ,'A2-button': { label: 'A2型题', action: { type: 'encapsulate', options: { pre: '{{A2型题\n|source=\n|title=\n|choices="A":"","B":"","C":"","D":"","E":""\n|answer=\n|explain=\n}}\n\n', post: '' } } } ,'A3-button': { label: 'A3型题', action: { type: 'encapsulate', options: { pre: '{{A3型题\n|source=\n|sourceRange=\n|title="",""\n|choices={"A":"","B":"","C":"","D":"","E":""},{"A":"","B":"","C":"","D":"","E":""}\n|answer="",""\n|explain="",""\n|info=\n}}\n\n', post: '' } } } ,'B-button': { label: 'B型题', action: { type: 'encapsulate', options: { pre: '{{B型题\n|source=\n|sourceRange=\n|title="",""\n|choices="A":"","B":"","C":"","D":"","E":""\n|answer="",""\n|explain="",""\n}}\n\n', post: '' } } } ,'C-button': { label: 'C型题', action: { type: 'encapsulate', options: { pre: '{{C型题\n|source=\n|sourceRange=\n|title="",""\n|choices="A":"","B":"","C":"","D":"","E":""\n|answer="",""\n|explain="",""\n}}\n\n', post: '' } } } ,'X-button': { label: 'X型题', action: { type: 'encapsulate', options: { pre: '{{X型题\n|source=\n|title=\n|choices="A":"","B":"","C":"","D":"","E":""\n|answer=\n|explain=\n}}\n\n', post: '' } } } ,'TK-button': { label: 'TK型题', action: { type: 'encapsulate', options: { pre: '{{TK型题\n|source=\n|pos=\n|title=\n|answer="",""\n|explain=\n}}\n\n', post: '' } } } ,'MJ-button': { label: 'MJ型题', action: { type: 'encapsulate', options: { pre: '{{MJ型题\n|source=\n|inputbox=0\n|title=\n|answer=\n}}\n\n', post: '' } } } ,'PD-button': { label: 'PD型题', action: { type: 'encapsulate', options: { pre: '{{PD型题\n|source=\n|title=\n|answer=\n|explain=\n}}\n\n', post: '' } } } } } } } } } ); $textarea.wikiEditor( 'addToToolbar', { section: 'main', groups: { list: { tools: { templates: { label: '词库模板', type: 'select', list: { 'word-button': { label: '单词模板', action: { type: 'encapsulate', options: { pre: '{{单词\n|wordName=\n|wordPro=\n|wordZh=\n|source=\n|define=\n|relatewords={{relatewords|}}\n}}\n\n', post: '' } } } ,'glossary-button': { label: '名解模板', action: { type: 'encapsulate', options: { pre: '{{名解\n|wordZh=\n|wordEng=\n|source=\n|define=\n|explain=\n|relatewords={{relatewords|}}\n}}\n\n', post: '' } } } } } } } } } ); } ); }
返回
MediaWiki:Gadget-custom-toolbar.js
。