MediaWiki:Gadget-EditAddButton.js:修订间差异
来自康健生活
无编辑摘要 |
无编辑摘要 |
||
| (未显示同一用户的7个中间版本) | |||
| 第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>}}' | post: '</syntaxhighlight>|$|/home/kwy}}' | ||
} | } | ||
} | } | ||
| 第255行: | 第255行: | ||
} | } | ||
}, | }, | ||
js_out_tag: { | |||
label: ' | label: 'Js and console for editors', | ||
type: 'button', | |||
icon: 'images/toolbar_img/js_out.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{Double-columns|<syntaxhighlight lang="javascript">\n', | |||
peri: 'Insert comment here\n', | |||
post: '</syntaxhighlight>|{{consoleout|<pre>\n</pre>}}}}' | |||
} | |||
} | |||
}, | |||
bash_out_tag: { | |||
label: 'bash and console for editors', | |||
type: 'button', | |||
icon: 'images/toolbar_img/bash_out.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{Shc_out|<syntaxhighlight lang="bash">\n', | |||
peri: 'Insert comment here\n', | |||
post: '</syntaxhighlight>|<syntaxhighlight lang="bash">\n</syntaxhighlight>|$|/home/kwy}}' | |||
} | |||
} | |||
}, | |||
file_text_tag: { | |||
label: 'file text for editors', | |||
type: 'button', | |||
icon: 'images/toolbar_img/file_text.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{hc|head=|output=<syntaxhighlight lang="bash">\n', | |||
peri: 'Insert comment here\n', | |||
post: '</syntaxhighlight>}}' | |||
} | |||
} | |||
}, | |||
file_text_diff_tag: { | |||
label: 'file text diff for editors', | |||
type: 'button', | |||
icon: 'images/toolbar_img/file_text_diff.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{hcdiff|head=|output=<syntaxhighlight lang="bash">\n', | |||
peri: 'Insert comment here\n', | |||
post: '</syntaxhighlight>|output2=<syntaxhighlight lang="bash">\n</syntaxhighlight>}}' | |||
} | |||
} | |||
}, | |||
code_tabs_tag: { | |||
label: 'code tabs for editors', | |||
type: 'button', | type: 'button', | ||
icon: 'images/toolbar_img/ | icon: 'images/toolbar_img/codetab.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: '< | pre: '{{codetab|tabs=<tabs><tab name="html"><syntaxhighlight lang="html5">\n', | ||
peri: 'Insert comment here', | peri: 'Insert comment here', | ||
post: '</ | 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: ' | label: 'html iframe for editors', | ||
type: 'button', | type: 'button', | ||
icon: 'images/toolbar_img/ | icon: 'images/toolbar_img/iframe.png', | ||
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
pre: '< | pre: '<html><iframe width="100%" height="300" src="//iframe.kangkk.cn/', | ||
peri: 'Insert comment here', | peri: 'Insert comment here', | ||
post: '</ | post: '" frameborder="0" name="kangkk.com"></iframe></html>' | ||
} | } | ||
} | } | ||