„MediaWiki:Common.js” változatai közötti eltérés
Innen: Hogyankell.hu
1. sor: | 1. sor: | ||
/* Az ide elhelyezett JavaScript kód minden felhasználó számára lefut az oldalak betöltésekor. */ | /* Az ide elhelyezett JavaScript kód minden felhasználó számára lefut az oldalak betöltésekor. */ | ||
+ | |||
+ | |||
+ | if (mwCustomEditButtons) { | ||
+ | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
+ | "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", | ||
+ | "speedTip": "Redirect", | ||
+ | "tagOpen": "#REDIRECT [[", | ||
+ | "tagClose": "]]", | ||
+ | "sampleText": "Insert text"}; | ||
+ | |||
+ | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
+ | "imageFile": "http://images.wikia.com/central/images/c/c9/Button_strike.png", | ||
+ | "speedTip": "Strike", | ||
+ | "tagOpen": "<s>", | ||
+ | "tagClose": "</s>", | ||
+ | "sampleText": "Strike-through text"}; | ||
+ | |||
+ | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
+ | "imageFile": "http://images.wikia.com/central/images/1/13/Button_enter.png", | ||
+ | "speedTip": "Line break", | ||
+ | "tagOpen": "<br />", | ||
+ | "tagClose": "", | ||
+ | "sampleText": ""}; | ||
+ | |||
+ | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
+ | "imageFile": "http://images.wikia.com/central/images/7/74/Button_comment.png", | ||
+ | "speedTip": "Comment visible only for editors", | ||
+ | "tagOpen": "<!-- ", | ||
+ | "tagClose": " -->", | ||
+ | "sampleText": "Insert comment here"} | ||
+ | } |
A lap 2011. július 5., 09:00-kori változata
/* Az ide elhelyezett JavaScript kód minden felhasználó számára lefut az oldalak betöltésekor. */ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#REDIRECT [[", "tagClose": "]]", "sampleText": "Insert text"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c9/Button_strike.png", "speedTip": "Strike", "tagOpen": "<s>", "tagClose": "</s>", "sampleText": "Strike-through text"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/1/13/Button_enter.png", "speedTip": "Line break", "tagOpen": "<br />", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/7/74/Button_comment.png", "speedTip": "Comment visible only for editors", "tagOpen": "<!-- ", "tagClose": " -->", "sampleText": "Insert comment here"} }