Knowledge

Module:EditAtWikidata/sandbox

Source 📝

69: 100: 132: 31: 246:
This message is only displayed if a local_parameter is not supplied, i.e. when called from a template, it can be coded not to display the message when a local parameter is in use, preventing the value form Wikidata being
363: 45: 117:
very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is
374: 359: 347: 84: 198: 106: 88: 390: 343: 228: 80: 378: 218: 55: 139: 188: 329: 369: 183: 150: 51: 110: 37: 193: 118: 207: 158: 1146: 386: 337: 223: 76: 157:. The tested changes can be added to this page in a single edit. Consider discussing changes on the 321: 178: 114: 203: 41: 17: 430:-- The qid of a Wikidata entry can optionally be supplied for testing outside the article. 8: 145:
To avoid major disruption and server load, any changes should be tested in the module's
250:
The qid of a Wikidata entry can optionally be supplied for testing outside the article.
402:-- Module to display an icon with a tooltip such as "Edit this at Wikidata". 333: 906:"[[File:OOjs UI icon edit-ltr-progressive.svg|frameless|text-top|10px" 423:-- i.e. when called from a template, it can be coded not to display the message. 451:-- {{#invoke:EditAtWikidata|showMessage|qid=<ArticleID>|local_parameter}} 243:
Icon will be linked to the Wikidata entry for the article where this is placed.
154: 1140: 409:-- Icon is linked to the Wikidata entry for the article where this is placed. 306:{{#invoke:EditAtWikidata|showMessage|pid=<PropertyID>|local_parameter}} 292:{{#invoke:EditAtWikidata|showMessage|qid=<ArticleID>|local_parameter}} 63: 801:-- Parameter pid=x uses x as an anchor in the link to the Wikidata entry. 239:
Module to display an icon with a tooltip such as "Edit this at Wikidata"
416:-- This message is only displayed if a local_parameter is not supplied 702:-- This is not normally used except for testing outside the article. 301:
To make the link point to the given property at the Wikidata entry:
140:
approximately 2,050,000 pages, or roughly 3% of all pages
273:
To display the icon depending on a local parameter not existing:
695:-- Parameter qid=x specifies the Wikidata ID for the article. 839:-- Parameter nbsp replaces the leading space with &nbsp; 444:-- {{#invoke:EditAtWikidata|showMessage|local_parameter}} 278:{{#invoke:EditAtWikidata|showMessage|local_parameter}} 287:To test the functionality outside of an article: 1138: 113:in use by a very large number of pages, or is 938:"|link=https://www.wikidata.org/" 66: 545:-- Return trimmed non-empty text, or nil. 353:Editors can experiment in this module's 14: 1139: 264:{{#invoke:EditAtWikidata|showMessage}} 126: 94: 25: 50:See also the companion subpage for 23: 24: 1158: 505:"Edit this at Wikidata" 130: 98: 67: 29: 13: 1: 259:To always display the icon: 7: 315: 138:This Lua module is used on 10: 1163: 994:"|class=noprint" 327: 107:subject to page protection 1125: 1124: 1121: 1120: 1114: 1113: 1083: 1082: 1058: 1057: 1054: 1053: 1047: 1046: 1037: 1036: 1030: 1029: 1023: 1022: 1001: 1000: 991: 990: 951: 950: 935: 934: 913: 912: 903: 902: 893: 892: 886: 885: 843: 842: 836: 835: 805: 804: 798: 797: 758: 757: 751:getEntityIdForCurrentPage 706: 705: 699: 698: 692: 691: 670: 669: 645: 644: 620: 619: 616: 615: 609: 608: 602: 601: 577: 576: 549: 548: 542: 541: 520: 519: 516: 515: 509: 508: 499: 498: 492: 491: 479: 478: 475: 474: 459: 458: 338:Module:EditAtWikidata/doc 161:before implementing them. 153:subpages, or in your own 455: 454: 448: 447: 441: 440: 434: 433: 427: 426: 420: 419: 413: 412: 406: 405: 399: 398: 396: 254: 391:Subpages of this module 322:Template:EditAtWikidata 876:"&nbsp;" 385:Add categories to the 595:'(%S.-)%s*$ ' 111:highly visible module 42:Module:EditAtWikidata 18:Module:EditAtWikidata 72:Module documentation 189:Template testcases 916:"|alt=" 237: 236: 199:Template subpages 165: 164: 125: 124: 62: 61: 1154: 1147:Module sandboxes 1133: 1132: 1129: 1123: 1119: 1118: 1112: 1111: 1108: 1105: 1102: 1099: 1096: 1093: 1090: 1087: 1081: 1080: 1077: 1074: 1071: 1068: 1065: 1062: 1056: 1052: 1051: 1045: 1044: 1041: 1035: 1034: 1028: 1027: 1021: 1020: 1017: 1014: 1011: 1008: 1005: 999: 998: 995: 989: 988: 985: 982: 979: 976: 973: 970: 967: 964: 961: 958: 955: 949: 948: 945: 942: 939: 933: 932: 929: 926: 923: 920: 917: 911: 910: 907: 901: 900: 897: 891: 890: 884: 883: 880: 877: 874: 871: 868: 865: 862: 859: 856: 853: 850: 847: 841: 840: 834: 833: 830: 827: 824: 821: 818: 815: 812: 809: 803: 802: 796: 795: 792: 789: 786: 783: 780: 777: 774: 771: 768: 765: 762: 756: 755: 752: 749: 746: 743: 740: 737: 734: 731: 728: 725: 722: 719: 716: 713: 710: 704: 703: 697: 696: 690: 689: 686: 683: 680: 677: 674: 668: 667: 664: 661: 658: 655: 652: 649: 643: 642: 639: 636: 633: 630: 627: 624: 618: 614: 613: 607: 606: 600: 599: 596: 593: 590: 587: 584: 581: 575: 574: 571: 570:'string' 568: 565: 562: 559: 556: 553: 547: 546: 540: 539: 536: 533: 530: 527: 524: 518: 514: 513: 507: 506: 503: 497: 496: 490: 489: 486: 483: 477: 473: 472: 469: 466: 463: 457: 453: 452: 446: 445: 439: 438: 432: 431: 425: 424: 418: 417: 411: 410: 404: 403: 382: 367: 351: 307: 293: 279: 265: 219:Module testcases 184:Template sandbox 167: 166: 134: 133: 127: 102: 101: 95: 92: 73: 71: 70: 33: 32: 26: 1162: 1161: 1157: 1156: 1155: 1153: 1152: 1151: 1137: 1136: 1135: 1134: 1130: 1127: 1116: 1109: 1106: 1103: 1100: 1097: 1094: 1091: 1088: 1085: 1078: 1075: 1072: 1069: 1066: 1063: 1060: 1049: 1042: 1039: 1032: 1025: 1018: 1015: 1012: 1009: 1006: 1003: 996: 993: 986: 983: 980: 977: 974: 971: 968: 965: 962: 959: 956: 953: 946: 943: 940: 937: 930: 927: 924: 921: 918: 915: 908: 905: 898: 895: 888: 881: 878: 875: 872: 869: 866: 863: 860: 857: 854: 851: 848: 845: 838: 831: 828: 825: 822: 819: 816: 813: 810: 807: 800: 793: 790: 787: 784: 781: 778: 775: 772: 769: 766: 763: 760: 753: 750: 747: 744: 741: 738: 735: 732: 729: 726: 723: 720: 717: 714: 711: 708: 701: 694: 687: 684: 681: 678: 675: 672: 665: 662: 659: 656: 653: 650: 647: 640: 637: 634: 631: 628: 625: 622: 611: 604: 597: 594: 591: 588: 585: 582: 579: 572: 569: 566: 563: 560: 557: 554: 551: 544: 537: 534: 531: 528: 525: 522: 511: 504: 501: 494: 487: 484: 481: 470: 467: 464: 461: 450: 443: 436: 429: 422: 415: 408: 401: 395: 394: 384: 372: 357: 352: 341: 326: 318: 305: 291: 277: 263: 257: 233: 229:Module subpages 144: 131: 105:This module is 99: 93: 74: 68: 49: 30: 22: 21: 20: 12: 11: 5: 1160: 1150: 1149: 1026:"]]" 397: 325: 324: 317: 314: 313: 312: 309: 308: 299: 298: 295: 294: 285: 284: 281: 280: 271: 270: 267: 266: 256: 253: 252: 251: 248: 244: 235: 234: 232: 231: 226: 221: 216: 214:Module sandbox 211: 201: 196: 191: 186: 181: 175: 172: 171: 163: 162: 155:module sandbox 135: 123: 122: 103: 65: 64: 60: 59: 38:module sandbox 34: 15: 9: 6: 4: 3: 2: 1159: 1148: 1145: 1144: 1142: 1126: 1122: 1115: 1084: 1059: 1055: 1048: 1038: 1031: 1024: 1004:"|" 1002: 992: 966:"#" 952: 936: 914: 904: 894: 887: 882:" " 844: 837: 806: 799: 759: 707: 700: 693: 671: 646: 621: 617: 610: 603: 578: 550: 543: 521: 517: 510: 500: 493: 480: 476: 460: 456: 449: 442: 435: 428: 421: 414: 407: 400: 392: 388: 380: 376: 371: 365: 361: 356: 349: 345: 339: 335: 331: 330:documentation 323: 320: 319: 311: 310: 304: 303: 302: 297: 296: 290: 289: 288: 283: 282: 276: 275: 274: 269: 268: 262: 261: 260: 249: 245: 242: 241: 240: 230: 227: 225: 222: 220: 217: 215: 212: 209: 205: 202: 200: 197: 195: 192: 190: 187: 185: 182: 180: 177: 176: 174: 173: 170:Related pages 169: 168: 160: 156: 152: 148: 142: 141: 136: 129: 128: 121:from editing. 120: 116: 112: 108: 104: 97: 96: 90: 86: 82: 78: 57: 53: 47: 43: 39: 35: 28: 27: 19: 1095:_showMessage 1043:"" 981:"" 782:entityExists 685:"" 632:_showMessage 354: 300: 286: 272: 258: 238: 213: 194:Template doc 146: 137: 36:This is the 1070:showMessage 334:transcluded 115:substituted 87:] [ 83:] [ 79:] [ 676:local_parm 651:local_parm 328:The above 224:Module doc 151:/testcases 109:. It is a 52:test cases 855:trimToNil 817:trimToNil 718:trimToNil 657:trimToNil 529:trimToNil 437:-- Usage: 389:subpage. 370:testcases 159:talk page 119:protected 40:page for 1141:Category 1061:function 776:wikibase 745:wikibase 623:function 526:function 316:See also 247:fetched. 179:Template 147:/sandbox 1016:message 928:message 377:| 362:| 355:sandbox 348:history 346:| 85:history 1128:return 1086:return 1040:return 972:anchor 957:anchor 889:return 811:anchor 682:return 580:return 383:pages. 204:Module 1101:frame 1076:frame 896:space 849:space 846:local 808:local 709:local 648:local 589:match 523:local 482:local 462:local 336:from 255:Usage 91:] 89:purge 75:[ 16:< 1107:args 1010:i18n 922:i18n 867:nbsp 861:args 823:args 794:then 724:args 679:then 663:args 638:args 583:text 573:then 561:text 555:type 535:text 485:i18n 387:/doc 375:edit 368:and 364:diff 360:edit 344:edit 208:talk 81:edit 77:view 46:diff 1117:end 1050:end 1033:end 960:and 944:qid 873:and 829:pid 788:qid 767:and 764:qid 730:qid 712:qid 688:end 612:end 605:end 379:run 332:is 149:or 56:run 1143:: 1019:.. 1007:.. 997:.. 987:.. 978:or 969:.. 947:.. 941:.. 931:.. 919:.. 909:.. 899:.. 879:or 770:mw 761:if 754:() 739:mw 736:or 673:if 567:== 552:if 471:{} 340:. 58:). 48:). 1131:p 1110:) 1104:. 1098:( 1092:. 1089:p 1079:) 1073:( 1067:. 1064:p 1013:. 984:) 975:) 963:( 954:( 925:. 870:) 864:. 858:( 852:= 832:) 826:. 820:( 814:= 791:) 785:( 779:. 773:. 748:. 742:. 733:) 727:. 721:( 715:= 666:) 660:( 654:= 641:) 635:( 629:. 626:p 598:) 592:( 586:: 564:) 558:( 538:) 532:( 512:} 502:= 495:{ 488:= 468:= 465:p 393:. 381:) 373:( 366:) 358:( 350:) 342:( 210:) 206:( 143:. 54:( 44:(

Index

Module:EditAtWikidata
module sandbox
Module:EditAtWikidata
diff
test cases
run
view
edit
history
purge
subject to page protection
highly visible module
substituted
protected
approximately 2,050,000 pages, or roughly 3% of all pages
/sandbox
/testcases
module sandbox
talk page
Template
Template sandbox
Template testcases
Template doc
Template subpages
Module
talk
Module sandbox
Module testcases
Module doc
Module subpages

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