%% Table Environment Template
%% Auto-generated by ggen from RDF ontology

\begin{table}[{% raw %}{{ placement | default(value="htbp") }}{% endraw %}]
\centering
\caption{% raw %}{% if short_caption %}[{{ short_caption }}]{% endif %}{{{ caption }}}{% endraw %}
\label{% raw %}{tab:{{ table_id }}}{% endraw %}

{% raw %}{% if is_longtable %}
\begin{longtable}{{{ column_spec }}}
\toprule
{% for header in headers %}
{{ header }}{% if not loop.last %} & {% endif %}
{% endfor %} \\
\midrule
\endfirsthead

\multicolumn{{{ num_columns }}}{c}{{\tablename\ \thetable{} -- continued from previous page}} \\
\toprule
{% for header in headers %}
{{ header }}{% if not loop.last %} & {% endif %}
{% endfor %} \\
\midrule
\endhead

\midrule
\multicolumn{{{ num_columns }}}{r}{{Continued on next page}} \\
\endfoot

\bottomrule
\endlastfoot

{% for row in rows %}
{% for cell in row.cells %}
{{ cell }}{% if not loop.last %} & {% endif %}
{% endfor %} \\
{% if row.is_section_end %}
\midrule
{% endif %}
{% endfor %}

\end{longtable}
{% else %}
\begin{tabular}{{{ column_spec }}}
\toprule
{% for header in headers %}
{{ header }}{% if not loop.last %} & {% endif %}
{% endfor %} \\
\midrule
{% for row in rows %}
{% if row.is_header_row %}
\rowcolor{gray!20}
{% endif %}
{% for cell in row.cells %}
{% if cell.is_bold %}
\textbf{{{ cell.content }}}{% else %}{{ cell.content }}{% endif %}{% if not loop.last %} & {% endif %}
{% endfor %} \\
{% if row.is_section_end %}
\midrule
{% endif %}
{% endfor %}
\bottomrule
\end{tabular}
{% endif %}{% endraw %}

{% raw %}{% if notes %}
\vspace{0.2cm}
\small\textit{Note:} {{ notes }}
{% endif %}{% endraw %}

{% raw %}{% if source %}
\small\textit{Source:} {{ source }}
{% endif %}{% endraw %}

\end{table}
