{{ log.debug("Rendering parameters section") }} {% import "language.html" as lang with context %} {% if config.docstring_section_style == "table" %} {% block table_style scoped %}
{{ section.title or lang.t("Parameters:") }}
{{ lang.t("Name") }} | {{ lang.t("Type") }} | {{ lang.t("Description") }} | {{ lang.t("Default") }} |
---|---|---|---|
{{ parameter.name }} |
{% if parameter.annotation %}
{% with expression = parameter.annotation %}
{% include "expression.html" with context %}
{% endwith %}
{% endif %}
|
{{ parameter.description|convert_markdown(heading_level, html_id) }}
|
{% if parameter.default %}
{% with expression = parameter.default %}
{% include "expression.html" with context %}
{% endwith %}
{% else %}
{{ lang.t("required") }}
{% endif %}
|
{{ section.title or lang.t("Parameters:") }}
{{ parameter.name }}
{% if parameter.annotation %}
{% with expression = parameter.annotation %}
({% include "expression.html" with context %}
{%- if parameter.default %}, {{ lang.t("default:") }}
{% with expression = parameter.default %}
{% include "expression.html" with context %}
{% endwith %}
{% endif %})
{% endwith %}
{% endif %}
–
{{ section.title or lang.t("Parameters:") }}
{{ parameter.name }}
{{ lang.t("TYPE:") }}
{% with expression = parameter.annotation %}
{% include "expression.html" with context %}
{% endwith %}
{{ lang.t("DEFAULT:") }}
{% with expression = parameter.default %}
{% include "expression.html" with context %}
{% endwith %}