{% extends "wiki/base.html" %} {% from "includes/error_list.html" import errorlist %} {% set title = _(document.title + ' | Edit {title}')|fe(title=('Template' if document.is_template else 'Article')) %} {% block title %}{{ page_title(title) }}{% endblock %} {% set classes = 'edit' %} {% block bodyclass %}edit{% if document.is_template %} is-template{% endif %}{% endblock %} {% block site_css %} {{ super() }} {{ css('wiki-edit') }} {{ css('jquery-ui') }} {% endblock %} {% block content %}
{{ csrf() }}
{{ errorlist(revision_form) }} {% if collision %}

{% trans %} Please review the differences between your changes and the changes saved since you started editing. You may save again, but try to resolve any conflicts by hand so that the changes made since you started are not lost. {% endtrans %}

{{ _('Your Changes') }}

{{ _('Revision {id} by {user} on {date}')|fe(id=original_revision.id, user=original_revision.creator, date=datetimeformat(original_revision.created, format='longdatetime')) }}

{{ _('Current Revision:')|f(num=current_revision.id) }}

{{ _('Revision {id} by {user} on {date}')|fe(id=current_revision.id, user=current_revision.creator, date=datetimeformat(current_revision.created, format='longdatetime')) }}

{% set title = request.POST['title'] %} {% set slug = request.POST['slug'] %} {% set keywords = request.POST['request'] %} {% set summary = request.POST['summary'] %} {% if title and current_revision.title and title != current_revision.title %}

{{ _('Title:') }}

{{ title }}

{{ current_revision.title }}

{% endif %} {% if tags and current_revision.tags and tags != current_revision.tags %}

{{ _('Tags:') }}

{{ tags }}

{{ current_revision.tags }}

{% endif %} {% if keywords and current_revision.keywords and keywords != current_revision.keywords %}

{{ _('Keywords:') }}

{{ keywords }}

{{ current_revision.keywords }}

{% endif %} {% if summary and current_revision.summary and summary != current_revision.summary %}

{{ _('Search results summary:') }}

{{ summary }}

{{ current_revision.summary }}

{% endif %} {% if content and current_revision.content and content != current_revision.content %}

{{ _('Content:') }}

{{ diff_table(content, current_content, current_revision.id, "Proposed") }} {% endif %}
{% endif %}

{{ _('Editing {title}')|fe(title=revision.title) }}

{% if not section_id %} {{ _('Edit Page Title and Properties') }}
{% endif %} {% trans %}Draft {% endtrans %}

{% include 'wiki/includes/page_buttons.html' %} {% if revision_form and not section_id %} {% endif %} {% if not collision %} {{ revision_form.current_rev | safe }} {% endif %}
{% if request.user.get_profile().wiki_activity()|count == 0 %}

{{_('Thank you for taking the time to improve MDN!')}}

{% trans url=devmo_url('Project:MDN/Contributing/Editor_guide/') %} It looks like this is your first contribution to MDN. You can find answers to common editing questions within our Editor Guide. {% endtrans %}

{{_("Don't be afraid to break something, you can always revert your changes.")}}

{{_('Have fun and be proud of your contribution!')}}

{% endif %} {% if revision_form %} {% include 'wiki/includes/guide_links.html' %} {% if document.is_template %} {{ revision_form.content | safe }}
{% else %}
{{ revision_form.content | safe }}
{% endif %} {{ revision_form.hidden_fields()|join|safe }}
{% set tags = document.tags.all() %}

{{ _('Tags') }}

{% trans url=devmo_url('Project:MDN/Contributing/Tagging_standards') %} Categorize the article. It will make the article findable under the right filters in the search engine. Read the Tagging Guide. {% endtrans %}

{% include 'wiki/includes/revision_comment.html' %} {% include 'wiki/includes/review_tags.html' %} {% endif %}
{% include 'wiki/includes/wiki_notifier.html' %}
{% include 'wiki/includes/attachment_list.html' %}
{% endblock %} {% block site_js %} {{ super() }} {{ js('jquery-ui') }} {{ js('framebuster') }} {% include 'wiki/includes/tag_suggestions.html' %} {% if document.is_template %} {% include 'wiki/includes/ace_scripts.html' %} {% else %} {% include 'wiki/includes/ckeditor_scripts.html' %} {% endif %} {{ js('wiki-edit') }} {% endblock %}