{% if gcode.category contains 'in-review' %} {% alert info %}This page is marked for review. The following information may be outdated or incorrect.{% endalert %} {% elsif gcode.category contains 'wip' %} {% alert info %}This page is under construction and may not have complete or up-to-date information.{% endalert %} {% endif %}
{% if gcode.related %} {% endif %}{{ code }}
{% if gcode.parameters %}
{% assign list = ('' | split: '|') %}
{% for parm in gcode.parameters %}
{% if parm.tag %}{% assign list = list | push: parm %}{% endif %}
{% endfor %}
{% if list.size > 0 %}
{% assign list = (list | sort: 'tag') %}
{% for parm in list -%}
{%- if parm.optional %}[{% endif -%}
{{- parm.tag -}}
{%- if parm.values.size > 0 -%}
{%- if parm.values.size == 1 -%}
{%- assign pv = parm.values[0] -%}
{%- if pv.type != 'flag' -%}
{%- if pv.optional %}[{% else -%}<{%- endif -%}
{%- if pv.tag -%}
{{ pv.tag }}{%- if pv.unit -%} ({{ pv.unit }}){%- endif -%}
{%- elsif pv.unit -%}
{{ pv.unit }}
{%- elsif pv.type -%}
{{ pv.type }}
{%- else -%}
Unknown
{%- endif -%}
{%- if pv.optional %}]{% else -%}>{%- endif -%}
{%- endif -%}
{%- else -%}
<
{%- for pv in parm.values -%}
{{- pv.tag -}}
{%- if forloop.last != true %}|{% endif -%}
{%- endfor -%}
>
{%- endif -%}
{%- endif -%}
{%- if parm.optional -%}]{% endif -%}
{% endfor %}
{% endif %}
{% endif %}
{%- if parm.experimental %} {% endif -%}
{%- if parm.optional %}[{% endif -%}
{{ parm.tag }}
{%- if parm.values.size > 0 -%}
{%- if parm.values.size == 1 -%}
{%- assign pv = parm.values[0] -%}
{%- if pv.type != 'flag' -%}
{%- if pv.optional -%}[{%- else -%}<{%- endif -%}
{%- if pv.tag -%}
{{- pv.tag }}{%- if pv.unit -%}({{ pv.unit }}){%- endif -%}
{%- elsif pv.unit -%}
{{- pv.unit -}}
{%- elsif pv.type -%}
{{- pv.type -}}
{%- else -%}
Unknown
{%- endif -%}
{%- if pv.optional -%}]{%- else -%}>{%- endif -%}
{%- endif -%}
{%- else -%}
<
{%- for pv in parm.values -%}
{{ pv.tag }}
{%- if forloop.last != true -%}|{%- endif -%}
{%- endfor -%}
>
{%- endif -%}
{%- endif -%}
{%- if parm.optional %}]{% endif -%}
{%- if parm.since %} {{ parm.since }} {% endif -%}
{%- if parm.requires %}{% assign list = (parm.requires | split: ',') -%}
{%- for item in list %}{{item}}{% endfor -%}
{%- endif -%}
|
{{- parm.description | markdownify -}}
{%- if parm.values.size > 0 %}
|