Module:AampIndexedParam: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
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...")
(No difference)

Revision as of 10:49, 15 September 2018

Documentation for this module may be created at Module:AampIndexedParam/doc

-- 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
  
  return "Examples: <code>" .. string.format(key, start_idx) .. "</code>, <code>" .. string.format(key, start_idx + 1) .. "</code>, etc.<br>"
    .. string.format("Note: Indexes start from %u", start_idx)
end

return pack