imported>=海豚= |
imported>=海豚= |
第1行: |
第1行: |
| /* Generic code */ | | <includeonly>{{#Widget:TalkToc}} __FORCETOC__</includeonly>__NOINDEX__ |
| window.customizeToolbar = function( customizer ) {
| | <div style="text-align: center; background-color:#FFFAF0; border: 1px solid #ddd;" id="commonTalkBox"> |
| /* Check if we are in edit mode and the required modules are available and then customize the toolbar */
| | <span style="font-size: 19px;font-weight: bold;">{{color|#CD853F|这里是讨论版}}</span> |
| if ( $.inArray( mw.config.get( 'wgAction' ), ['edit', 'submit'] ) !== -1 ) {
| | ---- |
| if ( mw.user.options.get('usebetatoolbar') ) {
| | <poem> |
| mw.loader.using( 'ext.wikiEditor.toolbar', function () {
| | ''' 询问界面显示问题及错误报告''',请转至:'''[[User talk:= 海豚=|管理员的讨论页]]'''。 |
| $(document).ready( function() {
| | 如果与H萌娘无关的求助,如使用WIKI编辑时出现的问题等,请前往'''[[萌百:提问求助区]]'''。 |
| customizer.call( $( '#wpTextbox1' ) );
| | <del>''' 参与重要问题讨论''',请参阅:'''[[讨论:提案]]'''</del>。 |
| } );
| | 关于'''某一特定条目'''的讨论,请转至'''该条目讨论页''' 。 |
| } );
| | 如要开始一个新的会话,请单击页顶右上角的“添加话题”,然后输入内容,保存。 |
| }
| | 每次编辑会话后,请使用<code><nowiki>--~~~~</nowiki></code>签名。 |
| }
| | 如果要删除意见等,请'''不要'''直接删除,而是使用<code><nowiki><del></nowiki></code>将原有的内容划掉。 |
| }
| | </poem> |
| | ---- |
| | “君子和而不同”,讨论时请[[zhmoe:project:礼仪|保持理性]],[[zhmoe:project:方针|不要人身攻击]]。斯言之玷,不可为也。 |
|
| |
|
| /* If the user manually chose this gadget */
| | 这里是''' 公共讨论页''' ,一般情况下,'''[[ 萌百: 萌娘百科: 讨论页面|不要删除]]''' 已经发表的留言。 |
| if ( mw.user.options.get('gadget-Edittools-vector') ) {
| | </div> |
| customizeToolbar( function() {
| | <div style="padding-left:.5em; font-size:14px; background-color:#FFEBCD; border:1px solid #DFDFDF;"> 这里的讨论串不会被存档,请大胆提出你的问题。跳至本页的:[[#toc|目录]]{{w}}<span class="nomobile">[[#footer|底端]]</span><span class="mobileonly">[[#mw-mf-display-toggle|底端]]</span></div><hr /> |
| this.wikiEditor('addToToolbar', {
| | {{info |
| 'section': 'main',
| | |color= orange |
| 'group': 'insert',
| | |leftimage= [[image:Commons-emblem-scales.svg|50px|link=]] |
| 'tools': {
| | |H萌娘是一个网络百科全书。''' 不是论坛,不是图库''' ,不能在条目中随意添加大量主观的见解(即编辑时不能使用“我喜欢/ 讨厌”“我认为”等词句),或者大量上传低质量图片。<br />H萌娘''' 不是'''[[wikipedia:zh:|维基百科]],所以格式排版等稍有不同。 |
| 'category': {
| | }}{{info |
| label: '分類',
| | |color= purple |
| type: 'button',
| | |leftimage= [[image:Ambox humor.svg|50px|link=]] |
| icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/00/Structure_du_site_ic%C3%B4ne.svg/23px-Structure_du_site_ic%C3%B4ne.svg.png',
| | |目前H萌娘并未大规模建设,且常住人口为个位数,目前您想申请管理员可以去向[[user_talk:hice|站长的讨论页]]直接申请{{ 黑幕|<s> ,或者进行一场肮脏的屁眼交易即可</s>}} 。}} |
| action: {
| | {{Clear}} |
| type: 'encapsulate',
| | ----<noinclude> |
| options: {
| | [[ 分类: 功能模板]]</noinclude> |
| pre: "[\[Category:",
| |
| post: "]]"
| |
| }
| |
| }
| |
| }
| |
| }
| |
| } );
| |
| | |
| this.wikiEditor('addToToolbar', {
| |
| 'section': 'advanced',
| |
| 'group': 'format',
| |
| 'tools': {
| |
| 'bolditalic': {
| |
| label: '粗斜體',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/b/be/Toolbaricon_bolditalic_A.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: "'''''",
| |
| periMsg: '粗斜體文字',
| |
| post: "'''''"
| |
| }
| |
| }
| |
| },
| |
| | |
| 'strikethrough': {
| |
| label: '刪除線',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/1/1a/Toolbaricon_strike.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: "<s>",
| |
| post: "</s>"
| |
| }
| |
| }
| |
| },
| |
| | |
| 'underline': {
| |
| label: '底線',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/thumb/9/99/Gnome-format-text-underline.svg/22px-Gnome-format-text-underline.svg.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: "<u>",
| |
| post: "</u>"
| |
| }
| |
| }
| |
| },
| |
| 'quote': {
| |
| label: '引用區塊',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/2/2f/Toolbaricon_quote_1.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: "<blockquote>",
| |
| post: "</blockquote>"
| |
| }
| |
| }
| |
| },
| |
| | |
| 'justify-left': {
| |
| label: '靠左對齊',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/8/81/Toolbaricon_justify-left.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: "<div style=\"text-align: left;\">",
| |
| post: "</div>"
| |
| }
| |
| }
| |
| },
| |
| | |
| 'justify-center': {
| |
| label: '置中對齊',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/thumb/c/ce/Gnome-format-justify-center.svg/23px-Gnome-format-justify-center.svg.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: "<div style=\"text-align: center;\">",
| |
| post: "</div>"
| |
| }
| |
| }
| |
| },
| |
| | |
| 'justify-right': {
| |
| label: '靠右對齊',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/thumb/f/fb/Gnome-format-justify-right.svg/23px-Gnome-format-justify-right.svg.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: "<div style=\"text-align: right;\">",
| |
| post: "</div>"
| |
| }
| |
| }
| |
| },
| |
| | |
| 'indent-more': {
| |
| label: '定義',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/thumb/8/84/Gnome-format-indent-more.svg/23px-Gnome-format-indent-more.svg.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: ";"
| |
| }
| |
| }
| |
| },
| |
| 'source': {
| |
| label: ' 來源',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/thumb/1/1b/Toolbaricon_source.svg/22px-Toolbaricon_source.svg.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: "<source lang=\"text\">",
| |
| post: '</source>'
| |
| }
| |
| }
| |
| }
| |
| }
| |
| } );
| |
| | |
| this.wikiEditor('addToToolbar', {
| |
| 'section': 'advanced',
| |
| 'group': 'insert',
| |
| 'tools': {
| |
| 'math': {
| |
| label: '數學公式',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/thumb/c/c2/Nuvola_apps_edu_mathematics-p.svg/22px-Nuvola_apps_edu_mathematics-p.svg.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: "<math>",
| |
| periMsg: '插入數學公式',
| |
| post: "</math>"
| |
| }
| |
| }
| |
| },
| |
| | |
| 'template': {
| |
| label: '模板',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Curly_Brackets.svg/22px-Curly_Brackets.svg.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: "{\{",
| |
| periMsg: '模板名稱',
| |
| post: "}}"
| |
| }
| |
| }
| |
| },
| |
| | |
| 'hidden': {
| |
| label: '註解(隱藏文字)',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/1/11/Toolbaricon_hiddencomment.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: "<!-- ",
| |
| post: " -->"
| |
| }
| |
| }
| |
| },
| |
| | |
| 'hline': {
| |
| label: '分隔線',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/2/2c/Norwegian_ndash_sign.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: "----",
| |
| ownline: true
| |
| }
| |
| }
| |
| },
| |
| | |
| 'hans-hant': {
| |
| label: '繁簡轉換',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/9/9d/Toolbaricon_sr.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: "-{",
| |
| periMsg: '轉換文字',
| |
| post: "}-"
| |
| }
| |
| }
| |
| },
| |
| | |
| 'mediafile': {
| |
| label: '媒體檔案連結',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/6/65/Toolbaricon_media.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: "[[Media:",
| |
| periMsg: 'Example.ogg',
| |
| post: "]]"
| |
| }
| |
| }
| |
| },
| |
| | |
| 'references': {
| |
| label: '參考文獻(備註)列表',
| |
| type: 'button',
| |
| icon: '//upload.wikimedia.org/wikipedia/commons/8/8d/Wikieditor-references.png',
| |
| action: {
| |
| type: 'encapsulate',
| |
| options: {
| |
| pre: "\n==備註==\n{\{reflist}}\n",
| |
| }
| |
| }
| |
| }
| |
| }
| |
| } );
| |
| } );
| |
| }
| |