Knowledge (XXG)

Module:Pn

Source 📝

21: 176: 194: 36: 222: 190: 32: 40: 180: 184: 167: 163: 68: 64: 28: 127: 15: 250:
Named parameter idx is the index of the parameter that is to be returned
47:
The module returns one value from its list of unnamed parameters.
63:
For accessing both named and unnamed parameters, see {{
243:
Module that returns one value from a list of unnamed parameters
57:
Negative indices count backward from the end of the list.
257:
Negative indices count backward from the end of the list
117:{{#invoke:Pn |getVal | idx=99 | a | b | c | d | e | f }} 111:{{#invoke:Pn |getVal | idx=-1 | a | b | c | d | e | f }} 215: 207: 203: 105:{{#invoke:Pn |getVal | idx=2 | a | b | c | d | e | f }} 99:{{#invoke:Pn |getVal | idx=1 | a | b | c | d | e | f }} 93:{{#invoke:Pn |getVal | idx=0 | a | b | c | d | e | f }} 87:{{#invoke:Pn |getVal | idx= | a | b | c | d | e | f }} 54:
is the index of the parameter that is to be returned.
339:-- copy arguments from frame object and its parent 60:A wrapper template may be used to simplify usage. 200:Editors can experiment in this module's sandbox 8: 150:{{wdib|ps=1|P8011|qid=Q84055514|list=p-1}} 51: 7: 14: 144:{{wdib|ps=1|P8011|qid=Q84055514}} 138:{{p-1 | a | b | c | d | e | f }} 19: 81:{{#invoke:Pn |getVal | idx=1}} 1: 629: 174: 123:Using a wrapper template, 606: 602: 595: 585: 539: 502: 495: 485: 469: 462: 449: 403: 396: 383: 343: 336: 320: 292: 288: 272: 268: 261: 254: 247: 240: 233: 230: 223:Subpages of this module 50:The named parameter 24:Module documentation 620: 614: 613: 610: 604: 600: 599: 593: 592: 589: 583: 582: 579: 576: 573: 570: 567: 564: 561: 558: 555: 552: 549: 546: 543: 537: 536: 533: 530: 527: 524: 521: 518: 515: 512: 509: 506: 500: 499: 493: 492: 489: 483: 482: 479: 476: 473: 467: 466: 460: 459: 456: 453: 447: 446: 443: 440: 437: 434: 431: 428: 425: 422: 419: 416: 413: 410: 407: 401: 400: 394: 393: 390: 387: 381: 380: 377: 374: 371: 368: 365: 362: 359: 356: 353: 350: 347: 341: 340: 334: 333: 330: 327: 324: 318: 317: 314: 311: 308: 305: 302: 299: 296: 290: 286: 285: 282: 279: 276: 270: 266: 265: 259: 258: 252: 251: 245: 244: 238: 237: 219: 211: 198: 151: 145: 139: 132: 126: 118: 112: 106: 100: 94: 88: 82: 53: 44: 25: 23: 22: 628: 627: 623: 622: 621: 619: 618: 617: 616: 615: 611: 608: 605: 601: 597: 594: 590: 587: 584: 580: 577: 574: 571: 568: 565: 562: 559: 556: 553: 550: 547: 544: 541: 538: 534: 531: 528: 525: 522: 519: 516: 513: 510: 507: 504: 501: 497: 494: 490: 487: 484: 480: 477: 474: 471: 468: 464: 461: 457: 454: 451: 448: 444: 441: 438: 435: 432: 429: 426: 423: 420: 417: 414: 411: 408: 405: 402: 398: 395: 391: 388: 385: 382: 378: 375: 372: 369: 366: 363: 360: 357: 354: 351: 348: 345: 342: 338: 335: 331: 328: 325: 322: 319: 315: 312: 309: 306: 303: 300: 297: 294: 291: 287: 283: 280: 277: 274: 271: 267: 263: 260: 256: 253: 249: 246: 242: 239: 235: 232: 227: 226: 221: 213: 201: 199: 188: 173: 159: 149: 143: 137: 130: 124: 116: 110: 104: 98: 92: 86: 80: 77: 45: 26: 20: 18: 12: 11: 5: 626: 624: 231: 212:and testcases 172: 171: 164:#invoke:params 158: 155: 154: 153: 147: 141: 121: 120: 114: 108: 102: 96: 90: 84: 76: 73: 71:}}. 65:#invoke:params 52:|idx= 17: 16: 13: 10: 9: 6: 4: 3: 2: 625: 607: 603: 596: 586: 540: 503: 496: 486: 470: 463: 450: 404: 397: 384: 344: 337: 321: 293: 289: 273: 269: 262: 255: 248: 241: 234: 229: 224: 217: 209: 205: 196: 192: 186: 185:Module:Pn/doc 182: 178: 177:documentation 169: 165: 161: 160: 156: 148: 142: 136: 135: 134: 129: 115: 109: 103: 97: 91: 85: 79: 78: 74: 72: 70: 66: 61: 58: 55: 48: 42: 38: 34: 30: 228: 170:}} 162:{{ 131:}} 125:{{ 122: 62: 59: 56: 49: 46: 181:transcluded 39:] [ 35:] [ 31:] [ 175:The above 433:getParent 514:tonumber 307:function 168:value_of 157:See also 75:Examples 69:value_of 206:| 195:history 193:| 37:history 609:return 588:return 488:return 301:getVal 220:pages. 216:create 208:mirror 204:create 505:local 427:frame 421:pairs 367:frame 361:pairs 323:local 313:frame 275:local 183:from 43:] 41:purge 27:[ 591:args 566:args 554:then 548:< 520:args 481:then 478:args 452:args 439:args 386:args 373:args 326:args 264:==]] 236:--[[ 191:edit 140:→ f 113:→ f 107:→ b 101:→ a 89:→ a 33:edit 29:view 598:end 581:end 572:idx 557:idx 545:idx 526:idx 508:idx 498:end 491:nil 475:not 465:end 436:(). 406:for 399:end 346:for 179:is 128:P-1 542:if 532:or 472:if 445:do 418:in 379:do 358:in 332:{} 284:{} 187:. 133:: 612:p 578:1 575:+ 569:+ 563:# 560:= 551:0 535:1 529:) 523:. 517:( 511:= 458:v 455:= 442:) 430:: 424:( 415:v 412:, 409:k 392:v 389:= 376:) 370:. 364:( 355:v 352:, 349:k 329:= 316:) 310:( 304:= 298:. 295:p 281:= 278:p 225:. 218:) 214:( 210:) 202:( 197:) 189:( 166:| 152:→ 146:→ 119:→ 95:→ 83:→ 67:|

Index

view
edit
history
purge
#invoke:params
value_of
P-1
#invoke:params
value_of
documentation
transcluded
Module:Pn/doc
edit
history
create
mirror
create
Subpages of this module











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