Module:Numlinks 2-num: Difference between revisions
Created page with "-- This module follows User:Ganaram inukshuk/Provisional style guide for Lua local getArgs = require("Module:Arguments").getArgs local ordinal = require("Module:Ordinal" )._ordinal local yesno = require("Module:Yesno" ) local p = {} -- TODO: add arrows -- Main function function p._numlinks_2_num(args) local args = {} -- Numbers. These are assumed to be the number datatype already (EG, already -- parsed from a string). -- - Current num N is the, well, cur..." |
m remove test args |
||
| Line 10: | Line 10: | ||
-- Main function | -- Main function | ||
function p._numlinks_2_num(args) | function p._numlinks_2_num(args) | ||
-- Numbers. These are assumed to be the number datatype already (EG, already | -- Numbers. These are assumed to be the number datatype already (EG, already | ||
-- parsed from a string). | -- parsed from a string). | ||
| Line 17: | Line 16: | ||
-- if the page were 1L 1s, there would be no link to 0L 0s. | -- if the page were 1L 1s, there would be no link to 0L 0s. | ||
-- - No option exists for the number of links in each direction. | -- - No option exists for the number of links in each direction. | ||
local curr_num_1 = args["Current Num 1"] | local curr_num_1 = args["Current Num 1"] | ||
local curr_num_2 = args["Current Num 2"] | local curr_num_2 = args["Current Num 2"] | ||
local min_num_1 = args["Min 1"] or 1 | local min_num_1 = args["Min 1"] or 1 | ||
local min_num_2 = args["Min 2"] or 1 | local min_num_2 = args["Min 2"] or 1 | ||