@ -7,10 +7,9 @@
{% else %}
{% else %}
{% set title = module %}
{% set title = module %}
{% endif %}
{% endif %}
{% set title_len = title|length %}
@{ title }@
@{ title }@
@{ '+' * title_len }@
@{ '+' * title|length }@
{% if version_added is defined and version_added != '' -%}
{% if version_added is defined and version_added != '' -%}
.. versionadded:: @{ version_added | default('') }@
.. versionadded:: @{ version_added | default('') }@
@ -91,14 +90,14 @@ Options
<table border=0 cellpadding=0 class="documentation-table">
<table border=0 cellpadding=0 class="documentation-table">
{# Header of the documentation #}
{# Header of the documentation #}
<tr>
<tr>
<th class="head"><div class="cell-border">p arameter</div></th>
<th class="head"><div class="cell-border">P arameter</div></th>
<th class="head"><div class="cell-border">required </div></th>
<th class="head"><div class="cell-border">Required? </div></th>
<th class="head"><div class="cell-border">d efault</div></th>
<th class="head"><div class="cell-border">D efault</div></th>
<th class="head"><div class="cell-border">c hoices</div></th>
<th class="head"><div class="cell-border">C hoices</div></th>
{% if plugin_type != 'module' %}
{% if plugin_type != 'module' %}
<th class="head"><div class="cell-border">c onfiguration</div></th>
<th class="head"><div class="cell-border">C onfiguration</div></th>
{% endif %}
{% endif %}
<th class="head"><div class="cell-border">c omments</div></th>
<th class="head"><div class="cell-border">C omments</div></th>
</tr>
</tr>
{% for key, value in options|dictsort recursive %}
{% for key, value in options|dictsort recursive %}
<tr class="return-value-column">
<tr class="return-value-column">
@ -110,14 +109,14 @@ Options
</div>
</div>
{% endfor %}
{% endfor %}
<div class="elbow-key">
<div class="elbow-key">
@{ key }@<br/><div style="font-size: small;">{% if value.version_added %} (added in @{value.version_added}@){% endif %}</div>
<b> @{ key }@</b> <br/><div style="font-size: small;">{% if value.version_added %} (added in @{value.version_added}@){% endif %}</div>
</div>
</div>
<div class="outer-elbow-container">
<div class="outer-elbow-container">
</td>
</td>
{# required #}
{# required #}
<td><div class="cell-border">{% if value.get('required', False) %}required{% else %}optional{% e ndif %}</div></td>
<td><div class="cell-border">{% if value.get('required', False) %}required{% endif %}</div></td>
{# default value #}
{# default value #}
<td><div class="cell-border">{% if value.default %}@{ value.default }@{% endif %}</div></td>
<td><div class="cell-border">{% if value.default %}@{ value.default | html_ify }@{% endif %}</div></td>
{# choices #}
{# choices #}
<td>
<td>
<div class="cell-border">
<div class="cell-border">
@ -217,11 +216,11 @@ Common return values are documented :ref:`here <common_return_values>`, the foll
<table border=0 cellpadding=0 class="documentation-table">
<table border=0 cellpadding=0 class="documentation-table">
<tr>
<tr>
<th class="head"><div class="cell-border">n ame</div></th>
<th class="head"><div class="cell-border">N ame</div></th>
<th class="head"><div class="cell-border">d escription</div></th>
<th class="head"><div class="cell-border">D escription</div></th>
<th class="head"><div class="cell-border">r eturned</div></th>
<th class="head"><div class="cell-border">R eturned</div></th>
<th class="head"><div class="cell-border">t ype</div></th>
<th class="head"><div class="cell-border">T ype</div></th>
<th class="head"><div class="cell-border">s ample</div></th>
<th class="head"><div class="cell-border">S ample</div></th>
</tr>
</tr>
{% for key, value in returndocs|dictsort recursive %}
{% for key, value in returndocs|dictsort recursive %}
<tr class="return-value-column">
<tr class="return-value-column">
@ -232,7 +231,7 @@ Common return values are documented :ref:`here <common_return_values>`, the foll
</div>
</div>
{% endfor %}
{% endfor %}
<div class="elbow-key">
<div class="elbow-key">
@{ key }@
<b> @{ key }@</b>
</div>
</div>
</div>
</div>
</td>
</td>
@ -245,9 +244,9 @@ Common return values are documented :ref:`here <common_return_values>`, the foll
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
</td>
</td>
<td align=center ><div class="cell-border">@{ value.returned }@</div></td>
<td><div class="cell-border">@{ value.returned }@</div></td>
<td align=center ><div class="cell-border">@{ value.type }@</div></td>
<td><div class="cell-border">@{ value.type }@</div></td>
<td align=center ><div class="cell-border">@{ value.sample | replace('\n', '\n ') | html_ify }@</div></td>
<td><div class="cell-border">@{ value.sample | replace('\n', '\n ') | html_ify }@</div></td>
</tr>
</tr>
{# ---------------------------------------------------------
{# ---------------------------------------------------------
# sadly we cannot blindly iterate through the child dicts,
# sadly we cannot blindly iterate through the child dicts,