Knowledge (XXG)

Module:Parameter names example/sandbox

Source 📝

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

Index

Module:Parameter names example
module sandbox
Module:Parameter names example
diff
view
edit
history
purge
Parameter names example
Generic template demo
the template page
documentation
transcluded
Module:Parameter names example/doc
edit
history
sandbox
edit
diff
create
/doc
Subpages of this module







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