跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
最近更改
随机页面
MediaWiki帮助
中医百科
搜索
搜索
登录
个人工具
登录
深色模式
查看“MediaWiki:Gadget-Edittools-vector.js”的源代码
系统消息
讨论
English
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
清除缓存
常规
链入页面
相关更改
特殊页面
页面信息
页面值
←
MediaWiki:Gadget-Edittools-vector.js
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此JavaScript页面,因为编辑此页面可能会影响所有访问者。
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
/** * SPDX-License-Identifier: CC-BY-SA-4.0 * _addText: '{{Gadget Header|license=CC-BY-SA-4.0}}' * * @base {@link https://zh.wikipedia.org/wiki/MediaWiki:Gadget-Edittools-vector.js} * @source {@link https://git.qiuwen.net.cn/InterfaceAdmin/QiuwenGadgets/src/branch/master/src/Edittools-vector} * @license CC-BY-SA-4.0 {@link https://www.qiuwenbaike.cn/wiki/H:CC-BY-SA-4.0} */ /** * SPDX-License-Identifier: CC-BY-SA-4.0 * * @source {@link https://www.qiuwenbaike.cn/wiki/File:Chinese_conversion_black.svg} * @author Chiefwei * @license CC-BY-SA-4.0 {@link https://www.qiuwenbaike.cn/wiki/H:CC-BY-SA-4.0} */ /** * SPDX-License-Identifier: CC-BY-3.0 * * @source {@link https://www.qiuwenbaike.cn/index.php?title=File:Toolbaricon_bolditalic_A.png} * @author Inductiveload * @license CC-BY-3.0 {@link https://creativecommons.org/licenses/by/3.0/deed.zh} */ /** * +------------------------------------------------------------+ * | === WARNING: GLOBAL GADGET FILE === | * +------------------------------------------------------------+ * | All changes should be made in the repository, | * | otherwise they will be lost. | * +------------------------------------------------------------+ * | Changes to this page may affect many users. | * | Please discuss changes by opening an issue before editing. | * +------------------------------------------------------------+ */ /* <nowiki> */ (() => { "use strict"; // dist/Edittools-vector/Edittools-vector.js //! src/Edittools-vector/images/Toolbaricon_bolditalic_A.png var Toolbaricon_bolditalic_A_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAN1wAADdcBQiibeAAAAAd0SU1FB9oJCAQlOp4jfv4AAAINSURBVDjL7ZW9a1NhFMZ/703uh/eGSCAk9N4ktIWWECyEdigUiTR/QAfBJUsmcXFzcOgkgqCjq5NL/wUnK0QrXRQMVITi5VpKpZFgAvlouC/3dbFQJdUY0anPdjjv+XHe5xkOXOhPtba29u/guVzufq1WU/V6Xbmu++lXb7VJoZ7nJfL5/N1Op6OklEgptb8Cl0olAEzTfOr7vt5sNmm321iW5QBianAqlWJmZuZKNpu93m63N4HPSilisVjCMIzpwTs7O6TT6S3f96WU8kEYhj0pJYAupUxODc7n83XTNJeOj4/vAIRh+DWKIuLxOFEUXZ0a7HnewyAIPgKPT8EAjuMArJ83F//Ntk90Xc+6rvu2Wq3eA2g2m55hGCQSCUzTrIxGo7GzY81XSpFMJrXl5eXh/v6+YZomURShlCKKIhzHUbOzs2J3d1d1u11t4o2FECwsLGy3Wi3j6OioDLw7067Oz88/tywLy7JEt9u1gcFEHhcKhaW5ublrQRBs/wQFeD8YDFBKYds2wOVKpTJZeJlM5pWmaQghbgOsrq6ebX8RQiCEwLZtUqmU12g0WFxc/IERO1vour65sbHxYjgcXur3+5TL5VsnJyeZvb29Z4BWLBaDlZWVR/1+Xzs4OCAMQ4rF4s1erycPDw9fnhueEGJdKeWe+qyUAngDfPj+uxtjchHAa8C/uAH/V98AGqO9LSroGQYAAAAASUVORK5CYII="; //! src/Edittools-vector/images/Chinese_conversion.png var Chinese_conversion_default = "data:image/png;base64,iVBORw0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wv+QYW5e18qogOwPRTEhytapOjYWXxxxGlyksDyLqRuS38rrCH06I3NcWZx/wBkhnIpEY9jzvkJ+TdxHqVOjes2fPn260NRK8xHKCcrWWO6evwInQ0NCQ/+PQwMF59S9cr6wwu/r7++3g4OBoff38syAZ36HzzMDAX/PmL5iMMIrQD1jJT8+C0BGBKUAVqt+rkSMI/YKcGjOux0Oj5z1jVJajshJYQWHUK9+okQ9E9QSlz/4n4HODsy80UYH65xY2ACmEuQH5KLDt/JOPt0+/enOqIrdFqAGqgUeBZaienvANANxoy/soaxD9EhvakU53nb+jRVzXW4qY9QhT08nuu0f8eIjH4/f8sdwH/8r8f8bfh7GPCR5C3YgAAAAASUVORK5CYII="; //! src/Edittools-vector/Edittools-vector.ts var import_ext_gadget = require("ext.gadget.Edittools-customizeToolbar"); (0, import_ext_gadget.customizeToolbar)(function() { const self = this; self.wikiEditor("addToToolbar", { section: "main", group: "insert", tools: { category: { label: "分类", type: "button", oouiIcon: "tag", action: { type: "encapsulate", options: { pre: "[[Category:", post: "]]" } } } } }); self.wikiEditor("addToToolbar", { section: "advanced", group: "format", tools: { bolditalic: { label: "粗斜体", type: "button", icon: Toolbaricon_bolditalic_A_default, action: { type: "encapsulate", options: { pre: "'''''", periMsg: "粗斜体文字", post: "'''''" } } }, strikethrough: { label: "删除线", type: "button", oouiIcon: "strikethrough", action: { type: "encapsulate", options: { pre: "<s>", post: "</s>" } } }, underline: { label: "下划线", type: "button", oouiIcon: "underline", action: { type: "encapsulate", options: { pre: "<u>", post: "</u>" } } }, quote: { label: "块引用", type: "button", oouiIcon: "quotes", action: { type: "encapsulate", options: { pre: "<block".concat("quote>"), post: "</block".concat("quote>") } } }, "justify-left": { label: "左对齐", type: "button", oouiIcon: "alignLeft", action: { type: "encapsulate", options: { pre: '<div style="text-align:left">', post: "</div>" } } }, "justify-center": { label: "居中", type: "button", oouiIcon: "alignCenter", action: { type: "encapsulate", options: { pre: '<div style="text-align: center;">', post: "</div>" } } }, "justify-right": { label: "右对齐", type: "button", oouiIcon: "alignRight", action: { type: "encapsulate", options: { pre: '<div style="text-align: right;">', post: "</div>" } } }, source: { label: "源代码", type: "button", oouiIcon: "markup", action: { type: "encapsulate", options: { pre: '<syntaxhighlight lang="text">', post: "</syntaxhighlight>" } } } } }); self.wikiEditor("addToToolbar", { section: "advanced", group: "insert", tools: { math: { label: "数学公式", type: "button", oouiIcon: "mathematics", action: { type: "encapsulate", options: { pre: "<math>", periMsg: "插入数学公式", post: "</math>" } } }, hidden: { label: "注释或隐藏文字", type: "button", oouiIcon: "notice", action: { type: "encapsulate", options: { pre: "<!-- ", post: " -->" } } }, hline: { label: "水平线", type: "button", oouiIcon: "subtract", action: { type: "encapsulate", options: { pre: "----", ownline: true } } }, "hans-hant": { label: "繁简转换", type: "button", icon: Chinese_conversion_default, action: { type: "encapsulate", options: { pre: "-{", periMsg: "转换文字", post: "}-" } } }, references: { label: "参考文献区", type: "button", oouiIcon: "references", action: { type: "encapsulate", options: { pre: "\n== 参考文献 ==\n{{reflist}}\n" } } } } }); }); })();
该页面使用的模板:
Template:Gadget Header
(
查看源代码
)
Template:Reflist
(
查看源代码
)
返回
MediaWiki:Gadget-Edittools-vector.js
。
开关有限宽度模式