MediaWiki:Gadget-EditAddButton.js:修订间差异
来自康健生活
无编辑摘要 |
无编辑摘要 |
||
| (未显示同一用户的3个中间版本) | |||
| 第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/ | post: '</syntaxhighlight>|$|/home/kwy}}' | ||
} | } | ||
} | } | ||
| 第262行: | 第262行: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: '{{ | 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>}}}}' | ||
| 第271行: | 第271行: | ||
label: 'bash and console for editors', | label: 'bash and console for editors', | ||
type: 'button', | type: 'button', | ||
icon: 'images/toolbar_img/ | icon: 'images/toolbar_img/bash_out.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
| 第277行: | 第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/ | post: '</syntaxhighlight>|<syntaxhighlight lang="bash">\n</syntaxhighlight>|$|/home/kwy}}' | ||
} | } | ||
} | } | ||
| 第297行: | 第297行: | ||
label: 'file text diff for editors', | label: 'file text diff for editors', | ||
type: 'button', | type: 'button', | ||
icon: 'images/toolbar_img/ | icon: 'images/toolbar_img/file_text_diff.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
| 第329行: | 第329行: | ||
pre: '{{codepen|tabs=<tabs><tab name="html"><syntaxhighlight lang="html5">\n', | pre: '{{codepen|tabs=<tabs><tab name="html"><syntaxhighlight lang="html5">\n', | ||
peri: 'Insert comment here', | 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=" | 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>' | |||
} | } | ||
} | } | ||