Lompat ke isi

Modul:Pn/doc

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas

The module returns one value from its list of unnamed parameters.

The named parameter |idx= is the index of the parameter that is to be returned.

Negative indices count backward from the end of the list.

A wrapper template may be used to simplify usage.

Examples[sunting sumber]

  • {{#invoke:Pn |getVal | idx=1}}
  • {{#invoke:Pn |getVal | idx= | a | b | c | d | e | f }} → a
  • {{#invoke:Pn |getVal | idx=0 | a | b | c | d | e | f }}
  • {{#invoke:Pn |getVal | idx=1 | a | b | c | d | e | f }} → a
  • {{#invoke:Pn |getVal | idx=2 | a | b | c | d | e | f }} → b
  • {{#invoke:Pn |getVal | idx=-1 | a | b | c | d | e | f }} → f
  • {{#invoke:Pn |getVal | idx=99 | a | b | c | d | e | f }}

Using a wrapper template, {{P-1}}:

  • {{p-1 | a | b | c | d | e | f }} → f
  • {{wdib|ps=1|P8011|qid=Q84055514}} → 579.957, 625.309, 716.733, 770.764, 830.201, 902.654, 976.363, 1.046.450, 1.107.233, 1.191.946, 1.276.781, 1.357.413, 1.437.788, 1.523.213, 1.609.037, 1.673.688, 1.759.579, 1.854.250, 1.947.041, 2.039.952, 2.134.277, 2.227.642, 2.302.792, 2.404.267, 2.512.388, 2.615.920, 2.719.434, 2.834.798, 2.943.421, 3.033.591, 3.126.119, 3.242.160, 3.362.136, 3.483.838, 3.611.599, 3.737.027, 3.837.207, 3.966.075, 4.103.233, 4.242.718, 4.386.379, 4.524.317, 4.666.386, 4.774.434, 4.916.116, 5.061.332, 5.213.140, 5.363.445, 5.507.182, 5.658.614, 5.774.133, 5.921.069, 6.084.256, 6.249.668, 6.426.627, 6.616.496, 6.807.226, 6.950.493, 7.137.716, 7.352.911, 7.560.782, 7.776.228, 7.996.707, 8.227.802, 8.398.362, 8.608.654, 8.826.585, 9.056.173, 9.297.749, 9.540.132, 9.789.066, 9.969.662, 10.211.092, 10.473.771, 10.740.832, 11.024.491, 11.307.002, 11.587.153, 11.806.256, 12.092.503, 12.412.664, 12.739.490, 13.072.718, 13.433.742, 13.791.869, 14.047.908, 14.381.303, 14.724.546, 15.075.369, 15.428.170, 15.849.068, 16.291.331, 16.806.803, 17.334.885, 17.743.740, 18.190.382, 18.832.970, 19.358.659, 19.821.831, 20.202.858, 20.864.750, 21.484.402, 22.149.351, 22.788.393, 23.387.171, 24.106.535, 24.583.558, 25.281.848, 26.015.297, 26.845.688, 27.694.416, 28.563.095, 29.309.703, 30.041.400, 30.941.264, 31.742.782, 32.661.252, 33.467.237, 34.491.073, 35.292.220, 35.902.137, 36.827.520, 37.651.512, 38.576.510, 39.477.848, 40.406.609, 41.461.636, 42.307.914, 43.324.834, 44.337.201, 45.509.380, 46.679.145, 47.738.491, 48.831.145, 49.551.507, 50.650.128, 51.804.677, 52.934.433, 54.097.975, 55.189.226, 56.260.928, 57.239.428, 58.312.273, 59.429.115, 60.565.728, 61.572.343, 62.454.254, 63.661.060, 64.392.594, 65.325.779, 66.279.462, 67.436.031, 68.928.440, 70.269.975, 71.257.836, 71.967.230, 73.110.041, 74.196.729, 75.619.781, 76.717.728, 77.850.403, 78.992.534, 79.982.394, 81.071.797, 82.271.654, 83.465.975, 84.634.680, 85.798.698, 86.877.242, 87.872.093, 88.945.107, 90.090.122, 91.226.305, 92.254.927, 93.254.017, 94.224.190, 95.083.976, 96.116.771, 97.200.379, 98.670.363, 100.113.085, 101.382.564, 102.523.469, 103.462.778, 104.420.894, 105.487.680, 106.563.440, 107.728.088, 108.796.064, 109.887.303, 110.743.103, 111.789.350, 112.998.959, 114.208.384, 115.429.095, 116.542.304, 117.736.791, 118.572.192, 119.615.857, 120.769.151, 121.962.509, 123.101.739, 124.031.230, 124.836.819, 125.698.525, 126.542.907, 127.480.186, 128.508.389, 129.591.786, 130.657.808, 131.733.134, 132.582.730, 133.682.275, 134.841.307, 135.931.545, 137.062.749, 138.220.354, 139.503.803, 140.379.976, 141.349.298, 142.445.949, 143.557.647, 144.727.749, 145.885.512, 146.986.575, 147.787.656, 148.814.055, 149.836.767, 150.759.726, 151.632.223, 152.697.399, 153.711.833, 154.566.990, 155.560.655, 156.646.280, 157.805.240, 158.918.646, 160.090.514, 161.198.195, 162.098.329, 163.170.557, 164.268.721, 165.308.366, 166.305.762, 167.159.289, 168.102.657, 168.818.054, 169.801.749, 170.922.030, 172.049.274, 173.111.694, 173.941.658, 174.899.783, 175.635.761, 176.531.997, 177.463.405, 178.400.995, 179.336.364, 180.253.315, 181.096.622, 181.755.831, 182.652.887, 183.489.114, 184.232.305, 184.962.401, 185.765.491, 186.544.868, 187.093.036, 187.802.827, 188.566.947, 189.347.782, 190.148.024, 190.985.119, 191.766.871, 192.337.117, 193.062.694, 193.613.120, 194.338.773, 195.081.079, 195.837.408, 196.588.372, 197.092.635, 197.752.057, 198.473.178, 199.216.019, 199.931.795, 200.672.589, 201.368.378, 201.900.614, 202.587.752, 203.324.655, 204.023.840, 204.789.784, 205.533.389, 206.230.512, 206.716.634, 207.332.298, 207.977.229, 208.703.791, 209.474.862, 210.261.480, 210.931.530, 211.551.746, 212.230.431, 213.036.275, 213.829.658, 214.661.465, 215.435.383, 216.231.106, 216.858.774, 217.618.057, 218.403.277, 219.178.908, 219.940.742, 220.692.677, 221.430.507, 221.968.271, 222.716.796, 223.479.877, 224.258.293, 224.998.638, 225.839.273, 226.703.641, 227.407.413, 228.280.763, 229.249.784, 230.313.163, 231.370.546, 232.431.517, 233.565.119, 234.445.774, 235.413.233, 236.438.861, 237.503.882, 238.604.638, 239.769.553, 240.950.842, 241.864.161, 242.650.025, 243.672.940, 244.798.621, 245.912.587, 246.959.192, 248.125.908, 249.019.657, 250.231.269, 251.439.598, 252.677.379, 254.041.584, 255.214.803, 256.626.850, 257.806.986, 259.207.108, 260.618.866, 262.003.415, 263.476.625, 264.972.022, 266.538.416, 267.894.549, 269.414.035, 271.053.392, 272.705.103, 274.445.653, 276.199.222, 277.918.810, 279.321.177, 280.979.877, 282.703.789, 284.471.979, 286.392.086, 288.337.385, 290.142.339, 291.647.037, 293.310.779, 294.852.078, 296.775.209, 298.601.699, 300.410.043, 302.275.471, 303.750.077, 305.600.187, 307.583.991, 309.448.585, 311.324.100, 313.017.193, 314.850.143, 316.423.658, 318.292.881, 320.301.177, 322.356.187, 324.417.870, 326.484.155, 328.607.937, 330.536.064, 332.594.176, 334.811.496, 336.969.353, 339.039.861, 341.119.909, 343.183.748, 344.866.883, 346.792.257, 350.057.330, 353.782.648, 357.433.846, 361.174.142, 364.746.522, 366.334.111, 368.207.596, 370.193.563, 372.198.253, 374.242.384, 376.232.162, 378.132.474, 379.624.626, 381.375.984, 383.306.971, 385.238.220, 387.167.696, 389.207.637, 391.019.083, 392.407.782, 394.072.142, 395.973.198, 397.832.667, 399.568.448, 401.819.892, 404.265.101, 406.371.279, 408.139.287, 410.100.044, 412.021.494, 414.251.520, 416.416.463, 418.254.953, 419.777.457, 421.424.881, 423.332.097, 425.225.897, 427.016.605, 429.041.970, 430.885.470, 432.317.813, 434.058.138, 435.973.639, 438.011.958, 440.023.239, 442.021.954, 443.958.663, 445.422.256, 447.341.133, 449.193.273, 450.911.712, 452.939.545, 454.570.811, 456.289.567, 457.444.011, 459.164.121, 460.900.978, 462.629.773, 464.650.723, 466.427.038, 468.216.510, 469.645.494, 471.294.789, 473.142.307, 474.893.363, 476.533.650, 478.316.964, 480.039.185, 481.767.232, 483.278.545, 485.056.507, 487.370.196, 523.184.293, 528.240.038, 553.621.766
  • {{wdib|ps=1|P8011|qid=Q84055514|list=p-1}} → 553.621.766