<% if module_doc then from = "modules/"..module_doc.name elseif file_doc then from = "files/.."..file_doc.name else from = "" end %>
<%=func.private and "local " or ""%><%=(oop and func.name:gsub("%.",":") or func.name:gsub(".+%.",""))%> (<%=table.concat(func.param or {}, ", ")%>)
<%=func.description or ""%> <%if type(func.param) == "table" and #func.param > 0 then%>

Parameters

<%end%> <%if type(func.usage) == "string" then%>

Usage:

<%=func.usage%> <%elseif type(func.usage) == "table" then%>

Usage

<%end%> <%if type(func.ret) == "string" then%>

Return value:

<%=func.ret%> <%elseif type(func.ret) == "table" then%>

Return values:

    <%for _, ret in ipairs(func.ret) do%>
  1. <%= ret %> <%end%>
<%end%> <%if type(func.see) == "string" then %>

See also:

<%=func.see%> <%elseif type(func.see) == "table" and #func.see > 0 then %>

See also: