Knowledge (XXG)

Module:Separated entries/sandbox

Source 📝

69: 100: 132: 172: 31: 484: 469: 457: 84: 88: 500: 453: 80: 247:
can be optionally defined if a different separator is desired between the last and second last items. The starting positional parameter can be specified using
227: 106: 117:
very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is
488: 55: 293:
For more complex cases – such as selecting the parameters to list, or preprocessing them, or omitting the last parameters – {{
439: 479: 150: 51: 301:}} is available. The following two examples with “ + ” as delimiter and “ ... ” as conjunction produce a similar result: 110: 37: 118: 158: 496: 447: 76: 251:. Leading and trailing whitespace is stripped. To add deliberate leading and trailing whitespace, use the HTML entity 1461: 195: 114: 222: 201: 185: 41: 17: 157:. The tested changes can be added to this page in a single edit. Consider discussing changes on the 661:-- Decode (convert to Unicode) HTML escape sequences, such as " " for space. 443: 232: 191: 181: 145:
To avoid major disruption and server load, any changes should be tested in the module's
154: 1455: 430: 426: 417: 298: 294: 236: 533:-- "foo, bar, baz and qux". The starting parameter can also be specified. 519:-- an optional separator. The final separator (the "conjunction") can be 512:-- This module takes positional parameters as input and concatenates them with 139: 63: 259:
for a "newline". Separated entries does not raise any errors by design.
1037:'<span style="display:none" data-plural="' 140:
approximately 2,410,000 pages, or roughly 4% of all pages
526:-- specified independently, enabling natural-language lists like 166: 126: 94: 25: 473: 45: 1018:-- flag to ] whether this is a list with >1 element 358: 305: 177:
This module depends on the following other modules:
772:-- Discard values before the starting parameter. 113:in use by a very large number of pages, or is 8: 463:Editors can experiment in this module's 248: 244: 240: 7: 50:See also the companion subpage for 225:serves as a template front-end to 24: 1076:'"></span>' 170: 130: 98: 67: 29: 1: 235:of positional parameters and 873:-- Discard named parameters. 448:Module:Separated entries/doc 559:'Module:TableTools' 138:This Lua module is used on 1478: 1179:'Module:Arguments' 437: 107:subject to page protection 1440: 1436: 1423:'comma-separator' 1384: 1356: 1334: 1330: 1323: 1316: 1291: 1260: 1229: 1198: 1161: 1142: 1108: 1104: 1097: 1087: 1080: 1022: 1015: 951: 902: 877: 870: 863: 820: 807: 776: 769: 708: 665: 658: 636: 614: 161:before implementing them. 153:subpages, or in your own 589: 585: 569: 541: 537: 530: 523: 516: 509: 506: 261: 223:Module:Separated entries 202:Module:Separated entries 42:Module:Separated entries 18:Module:Separated entries 501:Subpages of this module 1377:'<br />' 495:Add categories to the 245:|conjunction= 111:highly visible module 241:|separator= 237:pieces them together 72:Module documentation 889:compressSparseArray 565:compressSparseArray 547:compressSparseArray 1399:makeInvokeFunction 1371:makeInvokeFunction 1349:makeInvokeFunction 1117:makeInvokeFunction 228:mw.text.listToText 315:separated entries 272:separated entries 215: 214: 192:Module:TableTools 165: 164: 125: 124: 62: 61: 1469: 1462:Module sandboxes 1448: 1447: 1444: 1438: 1434: 1433: 1430: 1427: 1424: 1421: 1418: 1415: 1412: 1409: 1406: 1403: 1400: 1397: 1394: 1391: 1388: 1382: 1381: 1378: 1375: 1372: 1369: 1366: 1363: 1360: 1354: 1353: 1350: 1347: 1344: 1341: 1338: 1332: 1328: 1327: 1321: 1320: 1314: 1313: 1310: 1307: 1304: 1301: 1298: 1295: 1289: 1288: 1285: 1282: 1279: 1276: 1273: 1270: 1267: 1264: 1258: 1257: 1254: 1251: 1248: 1245: 1242: 1239: 1236: 1233: 1227: 1226: 1223: 1220: 1217: 1214: 1211: 1208: 1205: 1202: 1196: 1195: 1192: 1189: 1186: 1183: 1180: 1177: 1174: 1171: 1168: 1165: 1159: 1158: 1155: 1152: 1149: 1146: 1140: 1139: 1136: 1133: 1130: 1127: 1124: 1121: 1118: 1115: 1112: 1106: 1102: 1101: 1095: 1094: 1091: 1085: 1084: 1078: 1077: 1074: 1071: 1068: 1065: 1062: 1059: 1056: 1053: 1050: 1047: 1044: 1041: 1038: 1035: 1032: 1029: 1026: 1020: 1019: 1013: 1012: 1009: 1006: 1003: 1000: 997: 994: 991: 988: 985: 982: 979: 976: 973: 970: 967: 964: 961: 958: 955: 949: 948: 945: 942: 939: 936: 933: 930: 927: 924: 921: 918: 915: 912: 909: 906: 900: 899: 896: 893: 890: 887: 884: 881: 875: 874: 868: 867: 861: 860: 857: 854: 851: 848: 845: 842: 839: 836: 833: 830: 827: 824: 818: 817: 814: 811: 805: 804: 801: 798: 795: 792: 789: 786: 783: 780: 774: 773: 767: 766: 763: 760: 757: 754: 751: 748: 745: 742: 739: 736: 733: 730: 727: 724: 721: 718: 715: 712: 706: 705: 702: 699: 696: 693: 690: 687: 684: 681: 678: 675: 672: 669: 663: 662: 656: 655: 652: 649: 646: 643: 640: 634: 633: 630: 627: 624: 621: 618: 612: 611: 608: 605: 602: 599: 596: 593: 587: 583: 582: 579: 576: 573: 567: 566: 563: 560: 557: 554: 551: 548: 545: 539: 535: 534: 528: 527: 521: 520: 514: 513: 492: 477: 461: 422: 416: 404: 403: 399: 395: 391: 387: 383: 379: 375: 371: 367: 364: 361: 355: 354: 351: 347: 344: 341: 338: 335: 331: 328: 325: 322: 318: 314: 311: 308: 289: 285: 282: 279: 275: 271: 268: 265: 258: 255:for a space and 254: 250: 249:|start= 246: 242: 230: 182:Module:Arguments 174: 173: 167: 134: 133: 127: 102: 101: 95: 92: 73: 71: 70: 33: 32: 26: 1477: 1476: 1472: 1471: 1470: 1468: 1467: 1466: 1452: 1451: 1450: 1449: 1445: 1442: 1439: 1435: 1431: 1428: 1425: 1422: 1419: 1416: 1413: 1410: 1407: 1404: 1401: 1398: 1395: 1392: 1389: 1386: 1383: 1379: 1376: 1373: 1370: 1367: 1364: 1361: 1358: 1355: 1351: 1348: 1345: 1342: 1339: 1336: 1333: 1329: 1325: 1322: 1318: 1315: 1311: 1308: 1305: 1302: 1299: 1296: 1293: 1290: 1286: 1283: 1280: 1277: 1274: 1271: 1268: 1265: 1262: 1259: 1255: 1252: 1249: 1246: 1243: 1240: 1237: 1234: 1231: 1228: 1224: 1221: 1218: 1215: 1212: 1209: 1206: 1203: 1200: 1197: 1193: 1190: 1187: 1184: 1181: 1178: 1175: 1172: 1169: 1166: 1163: 1160: 1156: 1153: 1150: 1147: 1144: 1141: 1137: 1134: 1131: 1128: 1125: 1122: 1119: 1116: 1113: 1110: 1107: 1103: 1099: 1096: 1092: 1089: 1086: 1082: 1079: 1075: 1072: 1069: 1066: 1063: 1060: 1057: 1054: 1051: 1048: 1045: 1042: 1039: 1036: 1033: 1030: 1027: 1024: 1021: 1017: 1014: 1010: 1007: 1004: 1001: 998: 995: 992: 989: 986: 983: 980: 977: 974: 971: 968: 965: 962: 959: 956: 953: 950: 946: 943: 940: 937: 934: 931: 928: 925: 922: 919: 916: 913: 910: 907: 904: 901: 897: 894: 891: 888: 885: 882: 879: 876: 872: 869: 865: 862: 858: 855: 852: 849: 846: 843: 840: 837: 834: 831: 828: 825: 822: 819: 815: 812: 809: 806: 802: 799: 796: 793: 790: 787: 784: 781: 778: 775: 771: 768: 764: 761: 758: 755: 752: 749: 746: 743: 740: 737: 734: 731: 728: 725: 722: 719: 716: 713: 710: 707: 703: 700: 697: 694: 691: 688: 685: 682: 679: 676: 673: 670: 667: 664: 660: 657: 653: 650: 647: 644: 641: 638: 635: 631: 628: 625: 622: 619: 616: 613: 609: 606: 603: 600: 597: 594: 591: 588: 584: 580: 577: 574: 571: 568: 564: 561: 558: 555: 552: 549: 546: 543: 540: 536: 532: 529: 525: 522: 518: 515: 511: 508: 505: 504: 494: 482: 467: 462: 451: 436: 420: 414: 411: 401: 397: 393: 389: 385: 381: 380:trimming_values 377: 373: 369: 365: 362: 359: 352: 349: 345: 342: 339: 336: 333: 329: 326: 323: 320: 316: 312: 309: 306: 291: 290: 287: 283: 280: 277: 273: 269: 266: 263: 256: 252: 226: 220: 211: 171: 144: 131: 105:This module is 99: 93: 74: 68: 66: 49: 30: 22: 21: 20: 12: 11: 5: 1475: 1473: 1465: 1464: 1454: 1453: 507: 435: 434: 427:#invoke:params 423: 410: 407: 406: 405: 356: 295:#invoke:params 262: 219: 216: 213: 212: 210: 209: 199: 189: 178: 175: 163: 162: 155:module sandbox 135: 123: 122: 103: 65: 64: 60: 59: 38:module sandbox 34: 23: 15: 14: 13: 10: 9: 6: 4: 3: 2: 1474: 1463: 1460: 1459: 1457: 1441: 1437: 1385: 1357: 1335: 1331: 1324: 1317: 1292: 1261: 1230: 1199: 1162: 1143: 1109: 1105: 1098: 1088: 1081: 1023: 1016: 952: 903: 878: 871: 864: 821: 808: 777: 770: 709: 666: 659: 637: 615: 590: 586: 570: 542: 538: 531: 524: 517: 510: 502: 498: 490: 486: 481: 475: 471: 466: 459: 455: 449: 445: 441: 440:documentation 432: 428: 424: 419: 413: 412: 408: 357: 304: 303: 302: 300: 296: 260: 238: 234: 229: 224: 217: 207: 203: 200: 197: 193: 190: 187: 183: 180: 179: 176: 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: 464: 433:}} 425:{{ 421:}} 415:{{ 292: 221: 205: 146: 137: 36:This is the 1256:conjunction 1244:conjunction 1238:conjunction 1129:conjunction 1067:'0' 1061:'1' 999:conjunction 944:conjunction 756:conjunction 726:conjunction 714:conjunction 444:transcluded 431:list_values 400:list_values 340:conjunction 299:list_values 231:. It takes 115:substituted 87:] [ 83:] [ 79:] [ 957:dataPlural 926:listToText 704:'' 632:dataPlural 620:dataPlural 438:The above 372:sequential 233:any number 151:/testcases 109:. It is a 52:test cases 1225:separator 1213:separator 1207:separator 1123:separator 984:separator 938:separator 765:separator 695:separator 654:separator 642:separator 499:subpage. 480:testcases 376:squeezing 350:&#32; 346:&#32; 334:&#32; 330:&#32; 324:separator 281:separator 257:&#10; 253:&#32; 159:talk page 119:protected 40:page for 1456:Category 1148:function 1114:function 788:tonumber 592:function 409:See also 147:/sandbox 1411:message 1185:getArgs 1173:require 553:require 487:| 472:| 465:sandbox 458:history 456:| 384:setting 363:#invoke 310:#invoke 267:#invoke 206:sandbox 196:sandbox 186:sandbox 85:history 1443:return 1294:return 1145:return 1093:result 1090:return 1049:values 1031:result 1025:result 966:values 932:values 908:result 883:values 744:decode 683:decode 493:pages. 368:params 1429:plain 1393:comma 1303:_main 1287:first 1275:first 1269:first 1191:frame 1164:local 1154:frame 1135:first 1111:local 905:local 880:local 838:start 813:start 800:start 782:start 779:local 711:local 639:local 617:local 601:_main 572:local 544:local 446:from 239:with 218:Usage 91:] 89:purge 75:[ 16:< 1343:main 1309:args 1281:args 1263:args 1250:args 1232:args 1219:args 1201:args 1167:args 1052:> 1011:then 1002:> 987:> 969:> 920:text 895:args 850:args 816:then 794:args 750:args 738:text 720:args 689:args 677:text 648:args 626:args 607:args 497:/doc 485:edit 478:and 474:diff 470:edit 454:edit 418:Enum 396:... 319:main 276:main 81:edit 77:view 46:diff 1432:()) 1417:new 1326:end 1319:end 1100:end 1083:end 1058:and 975:and 960:and 866:end 859:end 856:nil 823:for 729:and 668:and 489:run 442:is 388:i/l 348:... 286:... 149:or 56:run 1458:: 1426:): 1405:mw 1365:br 1352:() 1278:or 1247:or 1216:or 1182:). 1073:.. 1064:or 1040:.. 1034:.. 993:or 954:if 914:mw 847:do 810:if 762:or 732:mw 701:or 671:mw 581:{} 562:). 450:. 402:}} 392:+ 360:{{ 353:}} 307:{{ 288:}} 264:{{ 243:. 58:). 48:). 1446:p 1420:( 1414:. 1408:. 1402:( 1396:= 1390:. 1387:p 1380:) 1374:( 1368:= 1362:. 1359:p 1346:= 1340:. 1337:p 1312:) 1306:( 1300:. 1297:p 1284:. 1272:= 1266:. 1253:. 1241:= 1235:. 1222:. 1210:= 1204:. 1194:) 1188:( 1176:( 1170:= 1157:) 1151:( 1138:) 1132:, 1126:, 1120:( 1070:) 1055:1 1046:# 1043:( 1028:= 1008:) 1005:0 996:# 990:0 981:# 978:( 972:0 963:# 947:) 941:, 935:, 929:( 923:. 917:. 911:= 898:) 892:( 886:= 853:= 844:1 841:- 835:, 832:1 829:= 826:i 803:) 797:. 791:( 785:= 759:) 753:. 747:( 741:. 735:. 723:. 717:= 698:) 692:. 686:( 680:. 674:. 651:. 645:= 629:. 623:= 610:) 604:( 598:. 595:p 578:= 575:p 556:( 550:= 503:. 491:) 483:( 476:) 468:( 460:) 452:( 429:| 398:| 394:| 390:| 386:| 382:| 378:| 374:| 370:| 366:: 343:= 337:| 332:+ 327:= 321:| 317:| 313:: 297:| 284:= 278:| 274:| 270:: 208:) 204:( 198:) 194:( 188:) 184:( 143:. 54:( 44:(

Index

Module:Separated entries
module sandbox
Module:Separated entries
diff
test cases
run
view
edit
history
purge
subject to page protection
highly visible module
substituted
protected
approximately 2,410,000 pages, or roughly 4% of all pages
/sandbox
/testcases
module sandbox
talk page
Module:Arguments
sandbox
Module:TableTools
sandbox
Module:Separated entries
sandbox
Module:Separated entries
mw.text.listToText
any number
pieces them together
#invoke:params

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