Knowledge (XXG)

User:Tom.Reding/Inc & Dec AWB Module

Source 📝

37:
Surround any numbers you want to increment by 1 with "+++", and any numbers you want to decrement by 1 with "---" (keyboard hyphens);
34:
before your regex rules, so prepare your rules such that pressing F5 (Edit box rclick > Re-parse) doesn't break anything.
27:
I made this since AWB doesn't have native increment/decrement functions, as far as I can tell.
17: 229:@"(PRESS F5 TO INC \+\+\+n\+\+\+ AND DEC ---n---(\s+\=+\s{0,2})?)" 178:// Created to give AWB increment/decrement functions. 8: 181:// User:Tom.Reding/Inc & Dec AWB Module 77:which I like to add so I don't miss it. 63:======================================= 60:PRESS F5 TO INC +++n+++ AND DEC ---n--- 193:@"(?:(\+\+\+)(\d+)(\+\+\+))" 7: 217:// regex pattern for decrementation 199:// regex pattern for incrementation 24: 211:@"(?:(---)(\d+)(---))" 676:// cleanup: remove instructions 1: 82:Inc & Dec Custom Module 797: 85: 30:AWB runs custom modules 48:The script also removes 757:pattern_instructions 706:pattern_instructions 223:pattern_instructions 788: 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: 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: 263: 260: 257: 254: 251: 248: 245: 242: 239: 236: 233: 230: 227: 224: 221: 218: 215: 212: 209: 206: 203: 200: 197: 194: 191: 188: 185: 182: 179: 176: 173: 170: 167: 164: 161: 158: 155: 152: 149: 146: 143: 140: 137: 134: 131: 128: 125: 122: 119: 116: 113: 110: 107: 104: 101: 98: 95: 92: 89: 73: 70: 68: 53: 44: 40: 39:+++19+++---16--- 796: 795: 791: 790: 789: 787: 786: 785: 784: 783: 780: 777: 774: 771: 768: 765: 762: 759: 756: 753: 750: 747: 744: 741: 738: 735: 732: 729: 726: 723: 720: 717: 714: 711: 708: 705: 702: 699: 696: 693: 690: 687: 684: 681: 678: 675: 672: 669: 667:decremented_num 666: 663: 660: 657: 654: 651: 648: 645: 642: 639: 636: 633: 630: 627: 624: 621: 619:decremented_num 618: 615: 612: 609: 606: 603: 600: 597: 594: 591: 588: 585: 582: 579: 576: 573: 570: 567: 564: 561: 558: 555: 552: 549: 546: 543: 540: 537: 534: 531: 528: 525: 522: 519: 516: 513: 510: 507: 504: 501: 498: 495: 492: 489: 486: 483: 480: 477: 474: 471: 469:incremented_num 468: 465: 462: 459: 456: 453: 450: 447: 444: 441: 438: 435: 432: 429: 426: 423: 421:incremented_num 420: 417: 414: 411: 408: 405: 402: 399: 396: 393: 390: 387: 384: 381: 378: 375: 372: 369: 366: 363: 360: 357: 354: 351: 348: 345: 342: 339: 336: 333: 330: 327: 324: 321: 318: 315: 312: 309: 306: 303: 300: 297: 294: 291: 288: 285: 282: 279: 276: 274:decremented_num 273: 270: 267: 265:incremented_num 264: 261: 258: 255: 252: 249: 246: 243: 240: 237: 234: 231: 228: 225: 222: 219: 216: 213: 210: 207: 204: 201: 198: 195: 192: 189: 186: 183: 180: 177: 174: 171: 168: 165: 162: 159: 156: 153: 150: 147: 144: 141: 138: 135: 132: 129: 126: 123: 120: 117: 114: 111: 108: 105: 102: 99: 96: 93: 90: 87: 84: 72: 69: 55: 52: 42: 38: 22: 21: 20: 18:User:Tom.Reding 12: 11: 5: 794: 792: 94:ProcessArticle 86: 83: 80: 79: 78: 67: 66: 65: 64: 61: 50: 49: 46: 35: 28: 23: 15: 14: 13: 10: 9: 6: 4: 3: 2: 793: 121:wikiNamespace 81: 76: 75: 74: 62: 59: 58: 57: 56: 54: 47: 36: 33: 29: 26: 25: 19: 763:"" 559:matched_text 535:matched_text 478:// decrement 361:matched_text 337:matched_text 280:// increment 238:matched_text 172:"" 112:ArticleTitle 71: 51: 31: 775:ArticleText 751:ArticleText 733:ArticleText 700:ArticleText 661:pattern_dec 655:ArticleText 637:ArticleText 595:matched_num 571:'-' 553:matched_num 508:pattern_dec 502:ArticleText 463:pattern_inc 457:ArticleText 439:ArticleText 397:matched_num 373:'+' 355:matched_num 310:pattern_inc 304:ArticleText 247:matched_num 205:pattern_dec 187:pattern_inc 103:ArticleText 41:produces 631:ToString 433:ToString 745:Replace 724:Success 649:Replace 589:ToInt32 583:Convert 526:Success 451:Replace 391:ToInt32 385:Convert 328:Success 166:Summary 133:Summary 772:return 271:string 262:string 244:string 235:string 220:string 202:string 184:string 130:string 109:string 100:string 91:string 88:public 739:Regex 694:Match 688:Regex 679:Match 643:Regex 547:Value 496:Match 490:Regex 481:Match 445:Regex 349:Value 298:Match 292:Regex 283:Match 160:false 32:after 16:< 625:numi 607:numi 601:numi 577:numi 565:Trim 427:numi 409:numi 403:numi 379:numi 367:Trim 256:numi 154:Skip 145:Skip 142:bool 43:2015 634:(); 436:(); 253:int 139:out 127:out 118:int 766:); 718:m3 712:if 709:); 682:m3 670:); 598:); 574:); 541:m2 520:m2 514:if 511:); 484:m2 472:); 400:); 376:); 316:if 313:); 781:} 778:; 769:} 760:, 754:, 748:( 742:. 736:= 730:{ 727:) 721:. 715:( 703:, 697:( 691:. 685:= 673:} 664:, 658:, 652:( 646:. 640:= 628:. 622:= 616:; 613:1 610:- 604:= 592:( 586:. 580:= 568:( 562:. 556:= 550:; 544:. 538:= 532:{ 529:) 523:. 517:( 505:, 499:( 493:. 487:= 475:} 466:, 460:, 454:( 448:. 442:= 430:. 424:= 418:; 415:1 412:+ 406:= 394:( 388:. 382:= 370:( 364:. 358:= 352:; 346:. 343:m 340:= 334:{ 331:) 325:. 322:m 319:( 307:, 301:( 295:. 289:= 286:m 277:; 268:; 259:; 250:; 241:; 232:; 226:= 214:; 208:= 196:; 190:= 175:; 169:= 163:; 157:= 151:{ 148:) 136:, 124:, 115:, 106:, 97:( 45:.

Index

User:Tom.Reding

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