MediaWiki:Gadget-EditAddButton.js:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
无编辑摘要
Kangkk​(留言 | 贡献)
无编辑摘要
 
(未显示同一用户的5个中间版本)
第56行: 第56行:
               pre: '{{shc|<syntaxhighlight lang="bash">\n',
               pre: '{{shc|<syntaxhighlight lang="bash">\n',
               peri: 'Insert comment here\n',
               peri: 'Insert comment here\n',
               post: '</syntaxhighlight>|$|/home/kangkk}}'
               post: '</syntaxhighlight>|$|/home/kwy}}'
             }
             }
           }
           }
第250行: 第250行:
             options: {
             options: {
               pre: '<div style="width:300px;">',
               pre: '<div style="width:300px;">',
              peri: 'Insert comment here',
              post: '</div>'
            }
          }
        },
        div_600px_tag: {
          label: 'Div 600px tag for editors',
          type: 'button',
          icon: 'images/toolbar_img/width600px.png',
          action: {
            type: 'encapsulate',
            options: {
              pre: '<div style="width:600px;">',
              peri: 'Insert comment here',
              post: '</div>'
            }
          }
        },
        div_900px_tag: {
          label: 'Div 900px tag for editors',
          type: 'button',
          icon: 'images/toolbar_img/width900px.png',
          action: {
            type: 'encapsulate',
            options: {
              pre: '<div style="width:900px;">',
               peri: 'Insert comment here',
               peri: 'Insert comment here',
               post: '</div>'
               post: '</div>'
第288行: 第262行:
             type: 'encapsulate',
             type: 'encapsulate',
             options: {
             options: {
               pre: '{{leftrightflex|<syntaxhighlight lang="javascript">\n',
               pre: '{{Double-columns|<syntaxhighlight lang="javascript">\n',
               peri: 'Insert comment here\n',
               peri: 'Insert comment here\n',
               post: '</syntaxhighlight>|{{consoleout|<pre>\n</pre>}}}}'
               post: '</syntaxhighlight>|{{consoleout|<pre>\n</pre>}}}}'
第297行: 第271行:
           label: 'bash and console for editors',
           label: 'bash and console for editors',
           type: 'button',
           type: 'button',
           icon: 'images/toolbar_img/js_out.png',
           icon: 'images/toolbar_img/bash_out.png',
           action: {
           action: {
             type: 'encapsulate',
             type: 'encapsulate',
第303行: 第277行:
               pre: '{{Shc_out|<syntaxhighlight lang="bash">\n',
               pre: '{{Shc_out|<syntaxhighlight lang="bash">\n',
               peri: 'Insert comment here\n',
               peri: 'Insert comment here\n',
               post: '</syntaxhighlight>|<syntaxhighlight lang="bash">\n</syntaxhighlight>|$|/home/kangkk}}'
               post: '</syntaxhighlight>|<syntaxhighlight lang="bash">\n</syntaxhighlight>|$|/home/kwy}}'
             }
             }
           }
           }
第323行: 第297行:
           label: 'file text diff for editors',
           label: 'file text diff for editors',
           type: 'button',
           type: 'button',
           icon: 'images/toolbar_img/js_out.png',
           icon: 'images/toolbar_img/file_text_diff.png',
           action: {
           action: {
             type: 'encapsulate',
             type: 'encapsulate',
第330行: 第304行:
               peri: 'Insert comment here\n',
               peri: 'Insert comment here\n',
               post: '</syntaxhighlight>|output2=<syntaxhighlight lang="bash">\n</syntaxhighlight>}}'
               post: '</syntaxhighlight>|output2=<syntaxhighlight lang="bash">\n</syntaxhighlight>}}'
            }
          }
        },
        code_tabs_tag: {
          label: 'code tabs for editors',
          type: 'button',
          icon: 'images/toolbar_img/codetab.png',
          action: {
            type: 'encapsulate',
            options: {
              pre: '{{codetab|tabs=<tabs><tab name="html"><syntaxhighlight lang="html5">\n',
              peri: 'Insert comment here',
              post: '</syntaxhighlight></tab><tab name="css"><syntaxhighlight lang="css">\n</syntaxhighlight></tab><tab name="js"><syntaxhighlight lang="javascript">\n</syntaxhighlight></tab></tabs>}}'
            }
          }
        },
        code_pen_tag: {
          label: 'codepen iframe for editors',
          type: 'button',
          icon: 'images/toolbar_img/codepen.png',
          action: {
            type: 'encapsulate',
            options: {
              pre: '{{codepen|tabs=<tabs><tab name="html"><syntaxhighlight lang="html5">\n',
              peri: 'Insert comment here',
              post: '</syntaxhighlight></tab><tab name="css"><syntaxhighlight lang="css">\n</syntaxhighlight></tab><tab name="js"><syntaxhighlight lang="javascript">\n</syntaxhighlight></tab></tabs>|iframe=<html><iframe src="//iframe.kangkk.cn/" name="kangkk.com"></iframe></html>}}'
            }
          }
        },
        html_iframe_tag: {
          label: 'html iframe for editors',
          type: 'button',
          icon: 'images/toolbar_img/iframe.png',
          action: {
            type: 'encapsulate',
            options: {
              pre: '<html><iframe width="100%" height="300" src="//iframe.kangkk.cn/',
              peri: 'Insert comment here',
              post: '" frameborder="0" name="kangkk.com"></iframe></html>'
             }
             }
           }
           }