Scheduled system upgrade on Sunday 21 April 2024 15:00-16:00 UTC - On that day, the wiki and other services might go down for 5-15 minutes.

Module:AampIndexedParam

From ZeldaMods (Breath of the Wild)
Revision as of 11:26, 15 September 2018 by imported>Leoetlino
Jump to navigation Jump to search

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 = tonumber(frame.args.start_idx) or 0
  
  return "The first element is called <code>" .. string.format(key, start_idx) .. "</code>,<br>then <code>" .. string.format(key, start_idx + 1) .. "</code>, etc.<br>"
    .. string.format("Note: Indexes start from %u", start_idx)
end

return pack