MediaWiki:Gadget-EditAddButton.js:修订间差异
来自康健生活
无编辑摘要 |
无编辑摘要 |
||
| 第268行: | 第268行: | ||
} | } | ||
}, | }, | ||
div_900px_tag: { | |||
label: 'Div 900px tag for editors', | label: 'Div 900px tag for editors', | ||
type: 'button', | type: 'button', | ||
| 第278行: | 第278行: | ||
peri: 'Insert comment here', | peri: 'Insert comment here', | ||
post: '</div>' | post: '</div>' | ||
} | |||
} | |||
}, | |||
js_out_tag: { | |||
label: 'Js and console for editors', | |||
type: 'button', | |||
icon: 'images/toolbar_img/js_out.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{leftrightflex|<syntaxhighlight lang="javascript">', | |||
peri: 'Insert comment here', | |||
post: '</syntaxhighlight>|{{consoleout|<pre></pre>}}}}' | |||
} | |||
} | |||
}, | |||
bash_out_tag: { | |||
label: 'bash and console for editors', | |||
type: 'button', | |||
icon: 'images/toolbar_img/js_out.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{Shc_out|<syntaxhighlight lang="bash">', | |||
peri: 'Insert comment here', | |||
post: '</syntaxhighlight>|<syntaxhighlight lang="bash"></syntaxhighlight>|$|/home/kangkk}}' | |||
} | |||
} | |||
}, | |||
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">', | |||
peri: 'Insert comment here', | |||
post: '</syntaxhighlight>}}' | |||
} | |||
} | |||
}, | |||
file_text_diff_tag: { | |||
label: 'file text diff for editors', | |||
type: 'button', | |||
icon: 'images/toolbar_img/js_out.png', | |||
action: { | |||
type: 'encapsulate', | |||
options: { | |||
pre: '{{hcdiff|head=|output=<syntaxhighlight lang="bash">', | |||
peri: 'Insert comment here', | |||
post: '</syntaxhighlight>|output2=<syntaxhighlight lang="bash"></syntaxhighlight>}}' | |||
} | } | ||
} | } | ||