- Подписка на печатную версию:
- Подписка на электронную версию:
- Подшивки старых номеров журнала (печатные версии)
MediaWiki:Common.js
Материал из Linuxformat.
(Различия между версиями)
(Новая: /* Размещённый здесь код JavaScript будет загружен всем пользователям при обращении к какой-либо странице *...) |
(Added "Insert table" button to the toolbar) |
||
| Строка 9: | Строка 9: | ||
} | } | ||
} | } | ||
| + | |||
| + | if (mwCustomEditButtons) { | ||
| + | |||
| + | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
| + | "imageFile": "/skins/common/images/button_insert table.png", | ||
| + | "speedTip": "Insert table (3 by 3)", | ||
| + | "tagOpen": "{|", | ||
| + | "tagClose": "|}", | ||
| + | "sampleText": "class=wikitable border=1 cellpadding=5 | ||
| + | |+ table name | ||
| + | |- | ||
| + | ! header 1 | ||
| + | ! header 2 | ||
| + | ! header 3 | ||
| + | |- | ||
| + | | row 1, cell 1 | ||
| + | | row 1, cell 2 | ||
| + | | row 1, cell 3 | ||
| + | |- | ||
| + | | row 2, cell 1 | ||
| + | | row 2, cell 2 | ||
| + | | row 2, cell 3 | ||
| + | |-"} | ||
| + | } | ||
Версия 07:35, 26 мая 2009
/* Размещённый здесь код JavaScript будет загружен всем пользователям при обращении к какой-либо странице */
var auto_comment = 0;
if (document.URL.indexOf('action=edit') > 0 || document.URL.indexOf('action=submit') > 0) {
if (wgCanonicalNamespace != 'Special') {
document.write('<script type="text/javascript" src="http://ru.wikipedia.org/w/index.php' +
'?title=MediaWiki:Onlyifediting.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');
}
}
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/skins/common/images/button_insert table.png",
"speedTip": "Insert table (3 by 3)",
"tagOpen": "{|",
"tagClose": "|}",
"sampleText": "class=wikitable border=1 cellpadding=5
|+ table name |- ! header 1 ! header 2 ! header 3 |- | row 1, cell 1 | row 1, cell 2 | row 1, cell 3 |- | row 2, cell 1 | row 2, cell 2 | row 2, cell 3 |-"}
}


