MediaWiki:Common.js
From WilhelmWiki
Line 3: | Line 3: | ||
if (mwCustomEditButtons) { | if (mwCustomEditButtons) { | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
- | "imageFile": " | + | "imageFile": "http://www.thewilhelms.net/skins/common/images/Button_redirect.png", |
"speedTip": "Redirect", | "speedTip": "Redirect", | ||
"tagOpen": "#REDIRECT [[", | "tagOpen": "#REDIRECT [[", | ||
Line 11: | Line 11: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
- | "imageFile": " | + | "imageFile": "http://www.thewilhelms.net/skins/common/images/Button_pers.png", |
- | "speedTip": "Blank | + | "speedTip": "Blank person template", |
- | "tagOpen": " | + | "tagOpen": "{{Infobox ancestor\n | name = ", |
- | "tagClose": "", | + | "tagClose": "| image =\n | birthdate =\n | location =\n | deathdate =\n | deathplace =\n | father =\n | mother =\n | spouse =\n }}\n \n '''FirstName MiddleName LastName''' (birthdate - deathdate)\n \n ==Biography==\n \n ==Images==\n ==Sources==\n [[Category:People|LastName, FirstName MiddleName]]", |
- | "sampleText": ""}; | + | "sampleText": "FirstName MiddleName LastName"}; |
} | } |
Revision as of 02:40, 16 April 2012
/* Any JavaScript here will be loaded for all users on every page load. */ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://www.thewilhelms.net/skins/common/images/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#REDIRECT [[", "tagClose": "]]", "sampleText": "Insert text"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://www.thewilhelms.net/skins/common/images/Button_pers.png", "speedTip": "Blank person template", "tagOpen": "{{Infobox ancestor\n | name = ", "tagClose": "| image =\n | birthdate =\n | location =\n | deathdate =\n | deathplace =\n | father =\n | mother =\n | spouse =\n }}\n \n '''FirstName MiddleName LastName''' (birthdate - deathdate)\n \n ==Biography==\n \n ==Images==\n ==Sources==\n [[Category:People|LastName, FirstName MiddleName]]", "sampleText": "FirstName MiddleName LastName"}; }