Knowledge (XXG)

User:Ahecht/Scripts/TemplateSearch

Source 📝

98: 131: 282:
mw.loader.load( "//en.wikipedia.org/search/?title=User:Ahecht/Scripts/TemplateSearch.js&action=raw&ctype=text/javascript" ); // Linkback: ]
88: 279:
Install by adding the following row to your Special:MyPage/common.js, Special:MyPage/skin.js, or meta:Special:MyPage/global.js:
172:"//en.wikipedia.org/search/?title=User:Ahecht/Scripts/TemplateSearch.js&action=raw&ctype=text/javascript" 958: 112: 45: 138: 120: 273:
Allows using "TP:" and "{{" as shortcuts for "Template:" in the search box. See
146: 142: 21: 74: 124: 132:
Knowledge (XXG):Village pump (proposals)/Archive 127#Prefix suggestion: TP: for Template:
214:
before the above code to your common.js, skin.js, or global.js. For example, to replace
952: 130:
Allows using "TP:" and "{{" as shortcuts for "Template:" in the search box. See
80:
Vector 2022, Vector 2010, MonoBook, Timeless, Minerva Neue, Modern, Cologne Blue
41: 17: 270:
Based on ] by ], with added support for the Vector 2022 and Minerva Neue skins.
116: 49: 184: 188: 84: 73: 63: 55: 37: 8: 137:Install by adding the following row to your 30: 855:".search-box, .vector-search-box" 253: 29: 456:"replaceBracesInSearch(this);" 432:"replaceBracesInSearch(this);" 104:User:Ahecht/Scripts/TemplateSearch.js 89:User:Ahecht/Scripts/TemplateSearch.js 7: 218:at the beginning of the search with 97: 28: 357:"cdx-text-input__input" 96: 183:If you wish to add additional 1: 147:meta:Special:MyPage/global.js 119:, with added support for the 32:Ahecht/Scripts/TemplateSearch 113:User:SiBr4/TemplateSearch.js 69:    (5 months ago) 46:User:SiBr4/TemplateSearch.js 975: 816:addSearchBoxChangeListener 765:addSearchBoxChangeListener 291:addSearchBoxChangeListener 504:"^(\\\{\\\{|:)" 732:'mediawiki.util' 264: 224: 151: 139:Special:MyPage/common.js 959:Knowledge (XXG) scripts 405:"searchInput" 516:"\\\}\\\}$ " 143:Special:MyPage/skin.js 531:replaceBracesInSearch 510:"Template:" 462:replaceBracesInSearch 245:"Template:" 450:"onpaste" 426:"onkeyup" 34: 834:"search" 783:"search" 384:"search" 946: 945: 828:getElementsByName 777:getElementsByName 239:"^(T:)" 94: 93: 966: 940: 937: 934: 931: 928: 925: 922: 919: 916: 913: 910: 907: 904: 901: 898: 895: 892: 889: 886: 883: 880: 877: 874: 871: 868: 865: 862: 859: 856: 853: 850: 849:querySelectorAll 847: 844: 841: 838: 835: 832: 829: 826: 823: 820: 817: 814: 811: 808: 805: 802: 801:MutationObserver 799: 796: 793: 790: 787: 784: 781: 778: 775: 772: 769: 766: 763: 760: 757: 754: 751: 748: 745: 742: 739: 736: 733: 730: 727: 724: 721: 718: 715: 712: 709: 706: 703: 700: 697: 694: 691: 688: 685: 682: 679: 676: 673: 670: 667: 664: 661: 658: 655: 652: 649: 646: 643: 640: 637: 634: 631: 628: 625: 622: 619: 616: 613: 610: 607: 604: 601: 598: 595: 592: 589: 586: 583: 580: 577: 574: 571: 568: 565: 562: 559: 556: 553: 550: 547: 544: 541: 538: 535: 532: 529: 526: 523: 520: 517: 514: 511: 508: 505: 502: 499: 496: 493: 490: 487: 484: 481: 478: 475: 472: 469: 466: 463: 460: 457: 454: 451: 448: 445: 442: 439: 436: 433: 430: 427: 424: 421: 418: 415: 412: 409: 406: 403: 400: 397: 394: 391: 388: 385: 382: 379: 376: 373: 370: 367: 364: 361: 358: 355: 352: 349: 346: 343: 340: 337: 334: 331: 328: 325: 322: 319: 316: 313: 310: 307: 304: 301: 298: 295: 292: 289: 286: 283: 280: 277: 274: 271: 268: 254: 249: 246: 243: 240: 237: 234: 231: 228: 221: 217: 213: 212: 209: 206: 203: 200: 197: 194: 191: 179: 176: 173: 170: 167: 164: 161: 158: 155: 111:Script based on 100: 99: 35: 33: 974: 973: 969: 968: 967: 965: 964: 963: 949: 948: 947: 942: 941: 938: 935: 932: 929: 926: 923: 920: 917: 914: 911: 908: 905: 902: 899: 896: 893: 890: 887: 884: 881: 878: 875: 872: 869: 866: 863: 860: 857: 854: 851: 848: 845: 842: 839: 836: 833: 830: 827: 824: 821: 818: 815: 812: 809: 806: 803: 800: 797: 794: 791: 788: 785: 782: 779: 776: 773: 770: 767: 764: 761: 758: 755: 752: 749: 746: 743: 740: 737: 734: 731: 728: 725: 722: 719: 716: 713: 710: 707: 704: 701: 698: 695: 692: 689: 687:'input' 686: 683: 680: 677: 674: 671: 668: 665: 662: 659: 656: 653: 650: 647: 644: 641: 638: 635: 632: 629: 626: 623: 620: 617: 614: 611: 608: 605: 602: 599: 596: 593: 590: 587: 584: 581: 578: 575: 572: 569: 566: 563: 560: 557: 554: 551: 548: 545: 542: 539: 536: 533: 530: 527: 524: 521: 518: 515: 512: 509: 506: 503: 500: 497: 494: 491: 488: 485: 482: 479: 476: 473: 470: 467: 464: 461: 458: 455: 452: 449: 446: 443: 440: 437: 434: 431: 428: 425: 422: 419: 416: 413: 410: 407: 404: 401: 398: 395: 392: 389: 386: 383: 380: 377: 374: 371: 368: 365: 362: 359: 356: 353: 350: 347: 344: 341: 338: 335: 332: 329: 326: 323: 320: 317: 314: 311: 308: 305: 302: 299: 296: 293: 290: 287: 284: 281: 278: 275: 272: 269: 266: 259: 251: 250: 247: 244: 241: 238: 235: 232: 229: 226: 219: 215: 210: 207: 204: 201: 198: 195: 192: 189: 181: 180: 177: 174: 171: 168: 165: 162: 159: 156: 153: 109: 108: 105: 101: 68: 31: 26: 25: 24: 12: 11: 5: 972: 970: 962: 961: 951: 950: 944: 943: 265: 261: 260: 257: 252: 225: 187:searches, add 178:// Linkback: ] 152: 106: 103: 102: 95: 92: 91: 86: 82: 81: 78: 71: 70: 67:March 21, 2024 65: 61: 60: 57: 53: 52: 39: 27: 15: 14: 13: 10: 9: 6: 4: 3: 2: 971: 960: 957: 956: 954: 672:dispatchEvent 660:SearchRegexes 561:SearchRegexes 495:SearchRegexes 489:SearchRegexes 263: 262: 256: 255: 230:SearchRegexes 223: 193:SearchRegexes 186: 150: 148: 144: 140: 135: 133: 128: 126: 122: 118: 114: 90: 87: 83: 79: 77: support 76: 72: 66: 62: 58: 54: 51: 47: 43: 40: 36: 23: 19: 522:"" 444:setAttribute 420:setAttribute 182: 136: 129: 125:Minerva Neue 110: 306:searchboxes 297:searchboxes 258:Source code 121:Vector 2022 44:, based on 18:User:Ahecht 117:User:SiBr4 50:User:SiBr4 915:childList 468:searchbox 438:searchbox 414:searchbox 393:searchbox 372:classList 366:searchbox 345:classList 339:searchbox 324:searchbox 220:Template: 38:Author(s) 953:Category 867:function 843:document 822:document 807:function 771:document 756:function 528:function 378:contains 351:contains 318:function 288:function 20:‎ | 903:subtree 888:observe 861:forEach 648:replace 312:forEach 222:, add: 208:REPLACE 127:skins. 64:Updated 22:Scripts 720:loader 585:search 579:RegExp 555:search 160:loader 107:script 85:Source 59:Stable 56:Status 42:Ahecht 744:ready 726:using 681:Event 642:value 630:value 615:value 185:RegEx 145:, or 16:< 921:true 909:true 750:then 708:when 603:test 202:FIND 166:load 123:and 75:Skin 924:}); 894:box 873:box 840:}); 837:)); 798:new 789:var 786:)); 690:)); 678:new 666:box 636:box 624:box 609:box 576:new 552:var 546:for 537:box 486:var 227:var 190:var 115:by 48:by 955:: 939:// 936:); 930:); 858:). 810:() 759:() 747:). 738:$ 735:), 714:mw 702:$ 663:); 654:re 618:)) 597:re 591:if 588:); 570:re 558:in 525:}; 498:|| 480:); 471:); 459:); 435:); 402:== 399:id 390:|| 363:|| 333:if 285:*/ 276:]. 267:/* 216:T: 175:); 154:mw 149:: 141:, 134:. 933:} 927:} 918:: 912:, 906:: 900:{ 897:, 891:( 885:. 882:x 879:{ 876:) 870:( 864:( 852:( 846:. 831:( 825:. 819:( 813:{ 804:( 795:= 792:x 780:( 774:. 768:( 762:{ 753:( 741:. 729:( 723:. 717:. 711:( 705:. 699:} 696:} 693:} 684:( 675:( 669:. 657:, 651:( 645:. 639:. 633:= 627:. 621:{ 612:. 606:( 600:. 594:( 582:( 573:= 567:{ 564:) 549:( 543:{ 540:) 534:( 519:: 513:, 507:: 501:{ 492:= 483:} 477:} 474:} 465:( 453:, 447:( 441:. 429:, 423:( 417:. 411:{ 408:) 396:. 387:) 381:( 375:. 369:. 360:) 354:( 348:. 342:. 336:( 330:{ 327:) 321:( 315:( 309:. 303:{ 300:) 294:( 248:} 242:: 236:{ 233:= 211:} 205:: 199:{ 196:= 169:( 163:. 157:.

Index

User:Ahecht
Scripts
Ahecht
User:SiBr4/TemplateSearch.js
User:SiBr4
Skin
User:Ahecht/Scripts/TemplateSearch.js
User:SiBr4/TemplateSearch.js
User:SiBr4
Vector 2022
Minerva Neue
Knowledge (XXG):Village pump (proposals)/Archive 127#Prefix suggestion: TP: for Template:
Special:MyPage/common.js
Special:MyPage/skin.js
meta:Special:MyPage/global.js
RegEx
Category
Knowledge (XXG) scripts

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.