Module:AampIndexedParam: Difference between revisions
no edit summary
imported>Leoetlino (Created page with "-- Utils for Template:AampIndexedParam local pack = {} function pack.get_description(frame) local key = frame.args.key local start_idx = frame.args.start_idx or 0 r...") |
imported>Leoetlino No edit summary |
||
Line 5: | Line 5: | ||
function pack.get_description(frame) | function pack.get_description(frame) | ||
local key = frame.args.key | local key = frame.args.key | ||
local start_idx = frame.args.start_idx or 0 | local start_idx = tonumber(frame.args.start_idx) or 0 | ||
return "Examples: <code>" .. string.format(key, start_idx) .. "</code>, <code>" .. string.format(key, start_idx + 1) .. "</code>, etc.<br>" | return "Examples: <code>" .. string.format(key, start_idx) .. "</code>, <code>" .. string.format(key, start_idx + 1) .. "</code>, etc.<br>" |