{% extends "wiki/article.html" %} {% load wiki_tags i18n humanize sekizai_tags %} {% block wiki_pagetitle %}{% trans "Template" %}: {{ article.current_revision.title }}{% endblock %} {% block wiki_contents_tab %}

{% trans "The following template are available for this article. Copy the markdown tag to directly refer to a file from the article text." %}

{% if templates %} {% for template in templates %} {{ template.current_revision.created|naturaltime }} {% if template.current_revision.deleted %} {% trans "deleted" %} {% endif %} {% if template.article != article %} From: <{{template.article}}> {% endif %} {% endfor %}
{% trans "Markdown tag" %} {% trans "Created by" %} {% trans "Status" %} {% trans "Action" %}
Tag: {{{{ template.template_title }}}}
{% if template.md_vals %} Val: {{ template.md_vals }} {% endif %}
{% include "wiki/includes/revision_info.html" with revision=template.current_revision hidedate=1 hidenumber=1 %} {% trans "History" %} {% if template|can_write:user %} {% trans "Edit" %} {% if not template.current_revision.deleted %} {% if template.article = article %} {% trans "Delete" %} {% else %} {% if not template.extend_to_children %} {% trans "Detach" %} {% endif %} {% endif %} {% else %} {% trans "Deleted" %} {% endif %} {% endif %}
{% else %}

{% trans "There are no template for this article." %}

{% endif %}
{% if article|can_write:user and not article|is_locked %}
{% if anonymous_disallowed %} {% include "wiki/includes/anonymous_blocked.html" %} {% else %} {% trans "Create new template" %} {% endif %}

{% trans "You can reuse template from other articles. These templates are subject to updates on other articles which may or may not be a good thing." %}

{{ search_form.query }}
{% if article|can_write:user %}
{% for template in deleted_template %}

{{ template.template_title }}

{% if template.current_revision.previous_revision.id %}
{% csrf_token %}
{% endif %}
{% empty %}

{% trans "Nothing to restore" %}

{% endfor %}
{% endif %}
{% else %} {% if article|is_locked %}

{% trans "The article is currently locked for editing, and therefore no new template can be added." %}

{% endif %} {% endif %}
{% include "wiki/includes/modals.html" %} {% addtoblock "js" %} {% endaddtoblock %} {% endblock %}