{% for id, def in defs %} {% if def.shortcode and not def.private %} {% endif %} {% endfor %}
Name id Kind Description Formats
{{ def.name }} {{ id | replace(from="shortcode_", to="") }} {{ def.shortcode.kind }} {{ def.description }} {% for format, tp in def.templates %}{{ format }},{% endfor %}

Shortcodes

{% for id, def in defs %} {% if def.shortcode and not def.private %} {% set shortcode = def.shortcode %}

{{ def.name }}

{{ def.description }}

Syntax:
{% set real_id = id | replace(from="shortcode_", to="") %} {% if shortcode.kind == "block" %}
{{ "{%" }} {{ real_id }}({% for p in shortcode.parameters %}{% if not loop.first %} {% endif %}{{ p.name }}{% if p.optional %} [optional]{% endif %}{% if not loop.last %},{% endif %}{% endfor %}) {{ "%}" }}
body
{{ "{%" }} end_{{ real_id }} {{ "%}" }}
{% else %}
{{ "{{" }} {{ real_id }}({% for p in shortcode.parameters %}{% if not loop.first %} {% endif %}{{ p.name }}{% if p.optional %} [optional]{% endif %}{% if not loop.last %},{% endif %}{% endfor %}) {{ "}}" }}
{% endif %} {% if def.examples %} {% for e in def.examples %}
Example: {{ e.title }}
code
{{ e.body }}
result {{ render(format="html", body=def.examples[0].body) | safe }} {% endfor %} {% endif %} {% endif %} {% endfor %}