Knowledge (XXG)

Template:Userscript

Source 📝

21: 52: 129:
If you end up leaving the template with no "(source)" link produced, make sure your documentation page includes complete installation instructions, along with any necessary code page addresses.
216:. If you have reason to disable automatic installation for a particular script (e.g. because it requires more than just the usual importScript line), add the following parameter: 445: 440: 724: 402: 153:
The template will add .js to the documentation page name to get a default code page, or remove .js from the code page name to get a default documentation page.
709: 645: 697: 598: 36: 762: 622: 353: 334: 315: 532: 736: 693: 32: 492: 679: 461: 435: 209: 40: 388: 587: 487: 395: 576: 213: 425: 375: 719: 609: 502: 757: 430: 752: 704: 497: 73: 62: 554: 521: 78: 411: 93: 471: 466: 732: 687: 28: 291: 270: 249: 208:
This template enables an automatic installation link for editors who use automatic installer scripts like
190:
If the default pages don't actually exist, they won't be linked (so defaults shouldn't produce red links).
653: 286: 265: 244: 630: 635: 683: 119:
is required. The template will attempt to determine defaults for any information not entered.
660: 665: 640: 126:
If any defaults are incorrect for your script, enter the necessary parameters explicitly.
89: 66: 193:
If no name is entered, a default name will be produced from the code or doc page name.
746: 238:{{userscript|name=sharebox!!!!!|code=User:TheDJ/sharebox.js|doc=User:TheDJ/sharebox}} 65:
before editing the template. If your edit causes unexpected problems, please
223:
To suppress the creation of a footnote with installation instructions, set
15: 71:
You can conduct experiments, and should test all major changes, in either
69:
it quickly, as this template may appear on a large number of pages.
384: 380: 61:
You are encouraged to familiarise yourself with its setup and
46: 124:
Check the accuracy of the links after placing this template!
58:
This template employs intricate features of template syntax.
168:, and if found, will be linked as the documentation page. 713: 621: 566: 511: 480: 454: 418: 81:, or your user space before changing anything here. 185:, and if found, will be linked as the code page. 303:to produce specific installation instructions: 396: 8: 136:parameter. It is just for display purposes. 703:Editors can experiment in this template's 403: 389: 381: 361:{{subst:lusc|1= User:TheDJ/sharebox.js}} 259:{{userscript|code=User:TheDJ/sharebox.js}} 140: 342:{{subst:lusc|1=User:TheDJ/sharebox.js}} 323:{{subst:lusc|1=User:TheDJ/sharebox.js}} 307: 280:{{userscript|doc=User:TheDJ/sharebox}} 224: 217: 105:{{userscript |code= |name= |doc= }} 763:Knowledge (XXG) user script templates 7: 533:Infobox Knowledge (XXG) user script 599:User script developer upon request 96:, but it can be used on any page. 14: 376:Knowledge (XXG):User scripts/List 210:User:Enterprisey/script-installer 132:You can make up any name for the 88:This template is used to create 50: 19: 92:listings, primarily for use at 498:Default ResourceLoader modules 214:User:Equazcion/ScriptInstaller 1: 431:The category for user scripts 94:Knowledge (XXG):User scripts 218:|noautoinstall=yes 178:will look for a page named 164:will look for a page named 779: 677: 236:All parameters specified: 737:Subpages of this template 355:edit your user JavaScript 352:Copy the following code, 336:edit your user JavaScript 333:Copy the following code, 317:edit your user JavaScript 314:Copy the following code, 79:general template sandbox 758:Knowledge (XXG) scripts 688:Template:Userscript/doc 446:Deprecated scripts list 74:this template's sandbox 731:Add categories to the 588:user script developer2 24:Template documentation 577:user script developer 441:Most imported scripts 203:Additional parameters 145:Default logic details 610:user scripts created 467:Scripts++ Newsletter 753:Intricate templates 503:Values in mw.config 225:|noref=yes 180:User:TheDJ/Sharebox 175:User:TheDJ/Sharebox 166:User:TheDJ/Sharebox 160:User:TheDJ/Sharebox 674: 673: 555:user script table 493:Common techniques 426:Main scripts list 295: 274: 253: 199: 198: 86: 85: 770: 728: 717: 701: 614: 608: 603: 597: 592: 586: 581: 575: 559: 553: 548: 542: 537: 531: 526: 522:Load user script 520: 405: 398: 391: 382: 363: 362: 350: 344: 343: 331: 325: 324: 312: 302: 289: 281: 268: 260: 247: 239: 226: 219: 183: 177: 163: 141: 135: 118: 112: 106: 76: 63:parser functions 54: 53: 47: 44: 25: 23: 22: 778: 777: 773: 772: 771: 769: 768: 767: 743: 742: 741: 740: 730: 722: 707: 702: 691: 676: 675: 670: 617: 612: 606: 601: 595: 590: 584: 579: 573: 562: 557: 551: 546: 540: 535: 529: 524: 518: 507: 476: 450: 414: 409: 372: 367: 366: 360: 359: 351: 347: 341: 340: 332: 328: 322: 321: 313: 309: 300: 279: 258: 237: 234: 205: 200: 181: 172: 157: 146: 133: 116: 110: 104: 102: 82: 72: 70: 51: 45: 26: 20: 18: 12: 11: 5: 776: 774: 766: 765: 760: 755: 745: 744: 672: 671: 669: 668: 663: 658: 657: 656: 648: 643: 638: 633: 627: 625: 619: 618: 616: 615: 604: 593: 582: 570: 568: 564: 563: 561: 560: 549: 538: 527: 515: 513: 509: 508: 506: 505: 500: 495: 490: 484: 482: 481:Script writing 478: 477: 475: 474: 469: 464: 458: 456: 452: 451: 449: 448: 443: 438: 433: 428: 422: 420: 416: 415: 410: 408: 407: 400: 393: 385: 379: 378: 371: 368: 365: 364: 345: 326: 306: 305: 297: 296: 276: 275: 255: 254: 233: 230: 229: 228: 221: 204: 201: 197: 196: 195: 194: 191: 188: 187: 186: 169: 148: 147: 144: 139: 138: 137: 130: 127: 101: 98: 84: 83: 60: 55: 17: 16: 13: 10: 9: 6: 4: 3: 2: 775: 764: 761: 759: 756: 754: 751: 750: 748: 738: 734: 726: 721: 715: 711: 706: 699: 695: 689: 685: 681: 680:documentation 667: 664: 662: 659: 655: 652: 651: 649: 647: 644: 642: 639: 637: 634: 632: 629: 628: 626: 624: 620: 611: 605: 600: 594: 589: 583: 578: 572: 571: 569: 565: 556: 550: 545: 539: 534: 528: 523: 517: 516: 514: 510: 504: 501: 499: 496: 494: 491: 489: 486: 485: 483: 479: 473: 470: 468: 465: 463: 460: 459: 457: 453: 447: 444: 442: 439: 437: 436:Code snippets 434: 432: 429: 427: 424: 423: 421: 419:Scripts lists 417: 413: 406: 401: 399: 394: 392: 387: 386: 383: 377: 374: 373: 369: 358:, then paste: 357: 356: 349: 346: 339:, then paste: 338: 337: 330: 327: 320:, then paste: 319: 318: 311: 308: 304: 293: 288: 284: 283: 282: 272: 267: 263: 262: 261: 251: 246: 245:sharebox!!!!! 242: 241: 240: 231: 222: 215: 211: 207: 206: 202: 192: 189: 184: 176: 170: 167: 161: 155: 154: 152: 151: 150: 149: 143: 142: 131: 128: 125: 122: 121: 120: 115: 107: 99: 97: 95: 91: 80: 75: 68: 64: 59: 56: 49: 48: 42: 38: 34: 30: 646:Greasemonkey 613:}} 607:{{ 602:}} 596:{{ 591:}} 585:{{ 580:}} 574:{{ 558:}} 552:{{ 547:}} 543: 541:{{ 536:}} 530:{{ 525:}} 519:{{ 412:User scripts 354: 348: 335: 329: 316: 310: 298: 277: 256: 235: 179: 174: 165: 159: 123: 113: 108: 103: 87: 57: 684:transcluded 641:User styles 472:Code review 455:New scripts 301:{{reflist}} 257:Code only: 39:] [ 35:] [ 31:] [ 747:Categories 678:The above 666:Extensions 544:userscript 285:Produces: 278:Doc only: 264:Produces: 243:Produces: 90:userscript 735:subpage. 720:testcases 567:Userboxes 512:Templates 171:Entering 156:Entering 109:At least 623:See also 462:Requests 370:See also 287:sharebox 266:sharebox 232:Examples 712:| 705:sandbox 698:history 696:| 654:scripts 631:Gadgets 37:history 729:pages. 292:source 271:source 250:source 158:|code= 111:|code= 77:, the 686:from 636:Tools 488:Guide 173:|doc= 134:|name 117:|doc= 114:-or- 100:Usage 43:] 41:purge 27:[ 733:/doc 725:edit 718:and 714:diff 710:edit 694:edit 661:Bots 650:IRC 299:Use 67:undo 33:edit 29:view 682:is 212:or 182:.js 162:.js 749:: 690:. 739:. 727:) 723:( 716:) 708:( 700:) 692:( 404:e 397:t 390:v 294:) 290:( 273:) 269:( 252:) 248:( 227:. 220:.

Index

view
edit
history
purge
parser functions
undo
this template's sandbox
general template sandbox
userscript
Knowledge (XXG):User scripts
User:Enterprisey/script-installer
User:Equazcion/ScriptInstaller
sharebox!!!!!
source
sharebox
source
sharebox
source
edit your user JavaScript
edit your user JavaScript
edit your user JavaScript
Knowledge (XXG):User scripts/List
v
t
e
User scripts
Main scripts list
The category for user scripts
Code snippets
Most imported scripts

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