- This is a personal developmental wiki, it may often be in an unstable or experimental state and the lack of meaningful content on a page is often intentional; however, you can participate. Please: 1) create an account, 2) confirm your e-mail, 3) send Deirdre and e-mail telling her who you are and why you are interested. Thanks, --Deirdre(talk • contribs)
Difference between revisions of "User:Deirdre/custombuttons.js"
From DeeDeeswiki
(create - copied from enWS) |
m (DeeDee moved page User:Doug/custombuttons.js to User:Deirdre/custombuttons.js without leaving a redirect: Automatically moved page while renaming the user "Doug" to "Deirdre") |
||
(One intermediate revision by one other user not shown) | |||
Line 16: | Line 16: | ||
"imageFile": "//upload.wikimedia.org/wikipedia/commons/7/7f/Button_link_to_Wikipedia.png", | "imageFile": "//upload.wikimedia.org/wikipedia/commons/7/7f/Button_link_to_Wikipedia.png", | ||
"speedTip": "Wikipedia link", | "speedTip": "Wikipedia link", | ||
− | "tagOpen": '[[ | + | "tagOpen": '[[wikipedia:', |
"tagClose": '|]]', | "tagClose": '|]]', | ||
+ | "sampleText": ""}; | ||
+ | }; | ||
+ | |||
+ | if (mwCustomEditButtons) { | ||
+ | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
+ | //"imageFile": "//upload.wikimedia.org/wikipedia/commons/7/7f/Button_link_to_Wikipedia.png", | ||
+ | "speedTip": "Wikisource link", | ||
+ | "tagOpen": '[[wikisource:', | ||
+ | "tagClose": '|]]', | ||
+ | "sampleText": ""}; | ||
+ | }; | ||
+ | |||
+ | if (mwCustomEditButtons) { | ||
+ | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
+ | //"imageFile": "//upload.wikimedia.org/wikipedia/commons/7/7f/Button_link_to_Wikipedia.png", | ||
+ | "speedTip": "Meta-Wiki link", | ||
+ | "tagOpen": '[[meta:', | ||
+ | "tagClose": '|]]', | ||
+ | "sampleText": ""}; | ||
+ | }; | ||
+ | |||
+ | if (mwCustomEditButtons) { | ||
+ | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
+ | //"imageFile": "//upload.wikimedia.org/wikipedia/commons/7/7f/Button_link_to_Wikipedia.png", | ||
+ | "speedTip": "MediaWiki link", | ||
+ | "tagOpen": '[[mw:', | ||
+ | "tagClose": '|]]', | ||
+ | "sampleText": ""}; | ||
+ | }; | ||
+ | |||
+ | if (mwCustomEditButtons) { | ||
+ | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
+ | //"imageFile": "//upload.wikimedia.org/wikipedia/commons/7/7f/Button_link_to_Wikipedia.png", | ||
+ | "speedTip": "external link", | ||
+ | "tagOpen": '[http://', | ||
+ | "tagClose": ' ]', | ||
"sampleText": ""}; | "sampleText": ""}; | ||
}; | }; | ||
Line 143: | Line 179: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": "", | "imageFile": "", | ||
− | "speedTip": " | + | "speedTip": "book link", |
"tagOpen": "''[[", | "tagOpen": "''[[", | ||
"tagClose": "]]''", | "tagClose": "]]''", | ||
Line 152: | Line 188: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": "", | "imageFile": "", | ||
− | "speedTip": " | + | "speedTip": "Anchor link", |
"tagOpen": '{{anchor link|anchor=', | "tagOpen": '{{anchor link|anchor=', | ||
"tagClose": '|pageno=}}', | "tagClose": '|pageno=}}', |
Latest revision as of 23:50, 4 March 2017
//<pre>
// == CUSTOM EDIT BUTTONS ==
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "",
"speedTip": "spm",
"tagOpen": '{{block center|<poem style="font-size:smaller">',
"tagClose": '</poem>}}',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/commons/7/7f/Button_link_to_Wikipedia.png",
"speedTip": "Wikipedia link",
"tagOpen": '[[wikipedia:',
"tagClose": '|]]',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
//"imageFile": "//upload.wikimedia.org/wikipedia/commons/7/7f/Button_link_to_Wikipedia.png",
"speedTip": "Wikisource link",
"tagOpen": '[[wikisource:',
"tagClose": '|]]',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
//"imageFile": "//upload.wikimedia.org/wikipedia/commons/7/7f/Button_link_to_Wikipedia.png",
"speedTip": "Meta-Wiki link",
"tagOpen": '[[meta:',
"tagClose": '|]]',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
//"imageFile": "//upload.wikimedia.org/wikipedia/commons/7/7f/Button_link_to_Wikipedia.png",
"speedTip": "MediaWiki link",
"tagOpen": '[[mw:',
"tagClose": '|]]',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
//"imageFile": "//upload.wikimedia.org/wikipedia/commons/7/7f/Button_link_to_Wikipedia.png",
"speedTip": "external link",
"tagOpen": '[http://',
"tagClose": ' ]',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/commons/5/56/Button_big.png",
"speedTip": "Larger",
"tagOpen": '{{larger|',
"tagClose": '}}',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "",
"speedTip": "Sm ",
"tagOpen": '{{smaller|',
"tagClose": '}}',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "",
"speedTip": "f/s ",
"tagOpen": '{{'+'subst:ucfirst:{{'+'subst:lc:',
"tagClose": '}}}}',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/commons/5/5f/Button_center.png",
"speedTip": "Centre text",
"tagOpen": '{{center|',
"tagClose": '}}',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/commons/8/83/Button_biocitas.png",
"speedTip": "Author link",
"tagOpen": '[[Author:',
"tagClose": '|]]',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png",
"speedTip": "Reference",
"tagOpen": '<ref>',
"tagClose": '</ref>',
"sampleText": ""};
};
// === SMALL CAPS BUTTON === /*duplicate, see below*/
/*if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "",
"speedTip": "sc ",
"tagOpen": '{{sc|',
"tagClose": '}}',
"sampleText": ""};
};*/
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "",
"speedTip": "hws ",
"tagOpen": '{{hyphenated word start|',
"tagClose": '|}}',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "",
"speedTip": "hwe ",
"tagOpen": '{{hyphenated word end|',
"tagClose": '|}}',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "",
"speedTip": "br ",
"tagOpen": '<br>',
"tagClose": '',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/commons/0/06/Tag_green.png",
"speedTip": "section begin",
"tagOpen": '<section begin="',
"tagClose": '" />',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/commons/d/dd/Tag_red.png",
"speedTip": "section end",
"tagOpen": '<section end="',
"tagClose": '" />',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "",
"speedTip": "pg ",
"tagOpen": '<pages index=".djvu" from= to= fromsection="" tosection=""',
"tagClose": '/>',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "",
"speedTip": "book link",
"tagOpen": "''[[",
"tagClose": "]]''",
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "",
"speedTip": "Anchor link",
"tagOpen": '{{anchor link|anchor=',
"tagClose": '|pageno=}}',
"sampleText": ""};
};
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/commons/c/cf/Left.png",
"speedTip": "Force s/n",
"tagOpen": '{{Force sidenote|left|',
"tagClose": '}}',
"sampleText": ""};
};
// === JUST AN EXAMPLE === /*copied from User:Billinghurst/monobook.js for an example*/
if (isIrishBio) {
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "",
"speedTip": "IBr ",
"tagOpen": '{{IrishBio ref|page=|ref=',
"tagClose": '}}',
"sampleText": ""};
};
};
// === Small Caps button
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/commons/4/4e/Button_romain.png",
"speedTip": "Small caps",
"tagOpen": '{{small caps|',
"tagClose": '}}',
"sampleText": ""};
};
//</pre>