matrix-doc/scripts/templating/matrix_templates/templates/events.tmpl

27 lines
557 B
Cheetah
Raw Normal View History

{% import 'tables.tmpl' as tables -%}
``{{event.type}}``
{{(4 + event.type | length) * title_kind}}
{% if (event.typeof | length) %}
*{{event.typeof}}*
{{event.typeof_info}}
{% endif -%}
{{event.desc}}
2016-02-23 14:43:36 +00:00
{% for table in event.content_fields %}
{{"``"+table.title+"``" if table.title else "" }}
{{ tables.paramtable(table.rows, [(table.title or "Content") ~ " Key", "Type", "Description"]) }}
{% endfor %}
2015-10-28 15:00:53 +00:00
Example{% if examples | length > 1 %}s{% endif %}:
2015-10-28 15:00:53 +00:00
{% for example in examples %}
.. code:: json
{{example | jsonify(4, 4)}}
2015-10-28 15:00:53 +00:00
{% endfor %}