「MediaWiki:Gadget-Edittools-vector.js」:修訂間差異
跳至導覽
跳至搜尋
無編輯摘要
imported>=海豚= 無編輯摘要 |
imported>=海豚= 無編輯摘要 |
||
| 行 24: | 行 24: | ||
label: '分类', | label: '分类', | ||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons | icon: '//upload.wikimedia.org/wikipedia/commons/0/0c/VisualEditor_-_Icon_-_Tag.svg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "[\[ | pre: "[\[ 分类:", | ||
post: "]]" | post: "]]" | ||
} | } | ||
| 行 35: | 行 35: | ||
} | } | ||
} ); | } ); | ||
this.wikiEditor('addToToolbar', { | this.wikiEditor('addToToolbar', { | ||
'section': 'advanced', | 'section': 'advanced', | ||
'group': 'format', | 'group': 'format', | ||
'tools': { | 'tools': { | ||
'strikethrough': { | 'strikethrough': { | ||
label: '删除线', | label: '删除线', | ||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons | icon: '//upload.wikimedia.org/wikipedia/commons/7/72/VisualEditor_-_Icon_-_Strikethrough-s.svg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
| 行 70: | 行 55: | ||
label: '下划线', | label: '下划线', | ||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons | icon: '//upload.wikimedia.org/wikipedia/commons/a/a9/VisualEditor_-_Icon_-_Underline-u.svg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
| 行 79: | 行 64: | ||
} | } | ||
}, | }, | ||
' | |||
label: ' | 'source': { | ||
label: ' 模板 引用', | |||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons/ | icon: '//upload.wikimedia.org/wikipedia/commons/2/2c/VisualEditor_-_Icon_-_Source.svg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: " | pre: "{{", | ||
post: | post: '}}' | ||
} | } | ||
} | } | ||
| 行 95: | 行 81: | ||
label: '左对齐', | label: '左对齐', | ||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons | icon: '//upload.wikimedia.org/wikipedia/commons/7/7f/OOjs_UI_icon_alignLeft.svg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
| 行 108: | 行 94: | ||
label: '居中', | label: '居中', | ||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons | icon: '//upload.wikimedia.org/wikipedia/commons/b/ba/OOjs_UI_icon_alignCenter.svg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
| 行 121: | 行 107: | ||
label: '右对齐', | label: '右对齐', | ||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons | icon: '//upload.wikimedia.org/wikipedia/commons/1/13/OOjs_UI_icon_alignRight.svg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
| 行 127: | 行 113: | ||
pre: "<div style=\"text-align: right;\">", | pre: "<div style=\"text-align: right;\">", | ||
post: "</div>" | post: "</div>" | ||
} | } | ||
} | } | ||
| 行 150: | 行 123: | ||
'group': 'insert', | 'group': 'insert', | ||
'tools': { | 'tools': { | ||
'hidden': { | 'hidden': { | ||
label: '注释或隐藏文字', | label: '注释或隐藏文字', | ||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons | icon: '//upload.wikimedia.org/wikipedia/commons/d/d1/VisualEditor_-_Icon_-_Comment.svg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
| 行 180: | 行 140: | ||
label: '水平线', | label: '水平线', | ||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons | icon: '//upload.wikimedia.org/wikipedia/commons/0/0e/VisualEditor_-_Icon_-_Remove-item.svg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
| 行 186: | 行 146: | ||
pre: "----", | pre: "----", | ||
ownline: true | ownline: true | ||
} | } | ||
} | } | ||
| 行 207: | 行 153: | ||
label: '参考文献区', | label: '参考文献区', | ||
type: 'button', | type: 'button', | ||
icon: '//upload.wikimedia.org/wikipedia/commons | icon: '//upload.wikimedia.org/wikipedia/commons/f/f9/VisualEditor_-_Icon_-_References.svg', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: "\n== | pre: "\n\n== 注释与外部链接==\n<references/>\n\n", | ||
} | } | ||
} | } | ||