Jump to content

User:MDCollins/monobook.js

From Wikipedia, the free encyclopedia
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
//Interiot's javascript edit counter
if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) {
  mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js&action=raw&ctype=text/javascript'); }

// Script from [[User:AndyZ/peerreviewer.js]]
importScript('User:AndyZ/peerreviewer.js'); //[[User:AndyZ/peerreviewer.js]]

// Script from [[User:Dr pda/persondata.js]]
importScript('User:Dr pda/persondata.js'); //[[User:Dr pda/persondata.js]]

importScript('User:Lightmouse/monobook.js/script.js');

importScript('User:Dr pda/prosesize.js'); //[[User:Dr pda/prosesize.js]]

// add button to insert the template 'infobox cricketer biography'
var emptyinfobox = '{{Infobox cricketer biography\n'
+ ' |          playername = \n'
+ ' |              female = \n'
+ ' |               image = \n'
+ ' |             country = \n'
+ ' |            country2 = \n'
+ ' |            country3 = \n'
+ ' |            fullname = \n'
+ ' |              living = \n'
+ ' |        partialdates = \n'
+ ' |          dayofbirth = \n'
+ ' |        monthofbirth = \n'
+ ' |         yearofbirth = \n'
+ ' |        placeofbirth = \n'
+ ' |      countryofbirth = \n'
+ ' |          dayofdeath = \n'
+ ' |        monthofdeath = \n'
+ ' |         yearofdeath = \n'
+'  |        placeofdeath = \n'
+ ' |      countryofdeath = \n'
+ ' |            nickname = \n'
+ ' |            heightft = \n'
+ ' |          heightinch = \n'
+ ' |             heightm = \n'
+ ' |             batting = \n'
+ ' |             bowling = \n'
+ ' |                role = \n'
+ ' |              family = \n'
+ ' |\n' 
+ ' |       international = \n'
+ ' |             onetest = \n'
+ ' |       testdebutdate = \n'
+ ' |       testdebutyear = \n'
+ ' |        testdebutfor = \n'
+ ' |    testdebutagainst = \n'
+ ' |             testcap = \n'
+ ' |        lasttestdate = \n'
+ ' |        lasttestyear = \n'
+ ' |         lasttestfor = \n'
+ ' |     lasttestagainst = \n'
+ ' |              oneodi = \n'
+ ' |        odidebutdate = \n'
+ ' |        odidebutyear = \n'
+ ' |         odidebutfor = \n'
+ ' |     odidebutagainst = \n'
+ ' |              odicap = \n'
+ ' |         lastodidate = \n'
+ ' |         lastodiyear = \n'
+ ' |          lastodifor = \n'
+ ' |      lastodiagainst = \n'
+ ' |            odishirt = \n'
+ ' |             oneT20I = \n'
+ ' |       T20Idebutdate = \n'
+ ' |       T20Idebutyear = \n'
+ ' |        T20Idebutfor = \n'
+ ' |    T20Idebutagainst = \n'
+ ' |             T20Icap = \n'
+ ' |        lastT20Idate = \n'
+ ' |        lastT20Iyear = \n'
+ ' |         lastT20Ifor = \n'
+ ' |     lastT20Iagainst = \n'
+ ' |           T20Ishirt = \n'
+ ' |\n'  
+ ' |               club1 = \n'
+ ' |               year1 = \n'
+ ' |         clubnumber1 = \n'
+ ' |               club2 = \n'
+ ' |               year2 = \n'
+ ' |         clubnumber2 = \n'
+ ' |               club3 = \n'
+ ' |               year3 = \n'
+ ' |         clubnumber3 = \n'
+ ' |               club4 = \n'
+ ' |               year4 = \n'
+ ' |         clubnumber4 = \n'
+ ' |               club5 = \n'
+ ' |               year5 = \n'
+ ' |         clubnumber5 = \n'
+ ' |               club6 = \n'
+ ' |               year6 = \n'
+ ' |         clubnumber6 = \n'
+ ' |               club7 = \n'
+ ' |               year7 = \n'
+ ' |         clubnumber7 = \n'
+ ' |               club8 = \n'
+ ' |               year8 = \n'
+ ' |         clubnumber8 = \n'
+ ' |               club9 = \n'
+ ' |               year9 = \n'
+ ' |         clubnumber9 = \n'
+ ' |              club10 = \n'
+ ' |              year10 = \n'
+ ' |        clubnumber10 = \n'
+ ' |              club11 = \n'
+ ' |              year11 = \n'
+ ' |        clubnumber11 = \n'
+ ' |              club12 = \n'
+ ' |              year12 = \n'
+ ' |        clubnumber12 = \n'
+ ' |              club13 = \n'
+ ' |              year13 = \n'
+ ' |        clubnumber13 = \n'
+ ' |              club14 = \n'
+ ' |              year14 = \n'
+ ' |        clubnumber14 = \n'
+ ' |              club15 = \n'
+ ' |              year15 = \n'
+ ' |        clubnumber15 = \n'
+ ' |\n'  
+ ' |               type1 = \n'
+ ' |            onetype1 = \n'
+ ' |          debutdate1 = \n'
+ ' |          debutyear1 = \n'
+ ' |           debutfor1 = \n'
+ ' |       debutagainst1 = \n'
+ ' |           lastdate1 = \n'
+ ' |           lastyear1 = \n'
+ ' |            lastfor1 = \n'
+ ' |        lastagainst1 = \n'
+ ' |               type2 = \n'
+ ' |            onetype2 = \n'
+ ' |          debutdate2 = \n'
+ ' |          debutyear2 = \n'
+ ' |           debutfor2 = \n'
+ ' |       debutagainst2 = \n'
+ ' |           lastdate2 = \n'
+ ' |           lastyear2 = \n'
+ ' |            lastfor2 = \n'
+ ' |        lastagainst2 = \n'
+ ' |\n'  
+ ' |              umpire = \n'
+ ' |        testsumpired = \n'
+ ' |      umptestdebutyr = \n'
+ ' |       umptestlastyr = \n'
+ ' |         odisumpired = \n'
+ ' |       umpodidebutyr = \n'
+ ' |        umpodilastyr = \n'
+ ' |    twenty20sumpired = \n'
+ ' |  umptwenty20debutyr = \n'
+ ' |   umptwenty20lastyr = \n'
+ ' |\n'  
+ ' |      hidedeliveries = \n'
+ ' |             columns = \n'
+ ' |             column1 = \n'
+ ' |            matches1 = \n'
+ ' |               runs1 = \n'
+ ' |            bat avg1 = \n'
+ ' |           100s/50s1 = \n'
+ ' |          top score1 = \n'
+ ' |         deliveries1 = \n'
+ ' |            wickets1 = \n'
+ ' |           bowl avg1 = \n'
+ ' |            fivefor1 = \n'
+ ' |             tenfor1 = \n'
+ ' |       best bowling1 = \n'
+ ' |  catches/stumpings1 = \n'
+ ' |             column2 = \n'
+ ' |            matches2 = \n'
+ ' |               runs2 = \n'
+ ' |            bat avg2 = \n'
+ ' |           100s/50s2 = \n'
+ ' |          top score2 = \n'
+ ' |         deliveries2 = \n'
+ ' |            wickets2 = \n'
+ ' |           bowl avg2 = \n'
+ ' |            fivefor2 = \n'
+ ' |             tenfor2 = \n'
+ ' |       best bowling2 = \n'
+ ' |  catches/stumpings2 = \n'
+ ' |             column3 = \n'
+ ' |            matches3 = \n'
+ ' |               runs3 = \n'
+ ' |            bat avg3 = \n'
+ ' |           100s/50s3 = \n'
+ ' |          top score3 = \n'
+ ' |         deliveries3 = \n'
+ ' |            wickets3 = \n'
+ ' |           bowl avg3 = \n'
+ ' |            fivefor3 = \n'
+ ' |             tenfor3 = \n'
+ ' |       best bowling3 = \n'
+ ' |  catches/stumpings3 = \n'
+ ' |             column4 = \n'
+ ' |            matches4 = \n'
+ ' |               runs4 = \n'
+ ' |            bat avg4 = \n'
+ ' |           100s/50s4 = \n'
+ ' |          top score4 = \n'
+ ' |         deliveries4 = \n'
+ ' |            wickets4 = \n'
+ ' |           bowl avg4 = \n'
+ ' |            fivefor4 = \n'
+ ' |             tenfor4 = \n'
+ ' |       best bowling4 = \n'
+ ' |  catches/stumpings4 = \n'
+ ' |\n'  
+ ' |                date = \n'
+ ' |                year = \n'
+ ' |              source = \n'
+ '}}\n';
mwCustomEditButtons[mwCustomEditButtons.length] =
    {"imageId":    'mw-editbutton-emptyinfobox',
     "imageFile":  '/media/wikipedia/commons/b/bd/Btn_plus.png',
     "speedTip":   'InfoboxCricketer',
     "tagOpen":    emptyinfobox,
     "tagClose":   '',
     "sampleText": ''};