--- title: نحوه ایجاد و ویرایش صفحات slug: MDN/Contribute/Howto/Create_and_edit_pages translation_of: MDN/Contribute/Howto/Create_and_edit_pages ---
این مقاله عوامل جدیدی را در روند ویرایش صفحات موجود و ایجاد صفحات جدید معرفی می کند.
To edit a page:
See the guide to Editor UI elements in the MDN Editor guide for more information on using MDN's built-in editor.
To see what your changes look like:
Be careful! Previewing a page does not save your progress. Don't close the editing tab until you've saved your work.
After previewing your changes, you will want to save your revision. Before you save, look for the revision comment box, below the editing box, leaving a comment to inform other contributors why you made changes. For example, you might have added a new section, changed some words to make the terminology more consistent, rewritten a paragraph to clarify the language, or removed information because it was redundant.
The 'On this Page' section of an article, is an auto-generated list of links to the headings on the page. The wording of these can be edited via the headings. It's also possible to remove a table of contents or decrease its number of links, by selecting 'Edit Page Title and Properties', changing the value of the "TOC" drop down.
You can add or remove tags, which describe the page content and purpose, below the editing section. See How to properly tag pages, for information on which tags to apply.
If an expert or experienced contributor should review your edits, please request a technical review (for code, API's, or technologies), and/or an editorial review (for prose, grammar, and content), making sure the appropriate box is checked before you save.
Attaching files requires a special user privilege. See Attachments in the MDN editor for details, including how to request the upload privilege.
When you finish editing and are happy with your preview, publish your work and comments by clicking the green Publish button, to the right of the page title, or towards the bottom of the page. If you wish to continue working, click Publish and keep editing, which publishes your changes and keeps the edit interface open.
If you change your mind, you can discard edits, by clicking the red Discard button. Note that discarding changes permanently discards them.
Pressing Enter in the Revision Comment field is equivalent to clicking Publish and Keep Editing.
Note: If attempting to save, but changes are rejected as invalid, and you feel the content is appropriate for MDN, email the MDN admin team for assistance.
For security reasons, newly-created accounts don't have the ability to create new pages. If you try to do so, you'll see a page instructing you how to get the page created. There are two options:
Once you have page-creation permission, you can begin creating pages.
If you do not know where to place a new article, do not worry. Put it anywhere, we will find it, move to where it belongs, or merge it into existing content. Whatever makes the most sense. Do not worry about making it perfect. We have happy helper gnomes who help to make your content clean and rather luscious.
There are a few ways to create a new page:
As with most wikis, it is possible to create a link to a page that is yet to exist. For example, an author might create a list of all the members of an API, before creating the pages for those members. On MDN, links to non-existent pages are typically displayed in red.
To create a page from a 'missing page' link:
To create a new page without linking from another page, enter a unique page name in the URL field of your browser. For example, if you enter:
https://wiki.developer.mozilla.org/en-US/docs/FooBar
MDN Creates a new page, with the title "FooBar", opening the editor for you to add new content. Refer to the Editing an existing page section of this article, for information on how to use the editor mode.
To create a new page without linking from another page:
https://wiki.developer.mozilla.org/en-US/docs/new
MDN Creates a new page, with a place for a title, opening the editor to add new content to this page. Refer to Editing an existing page, for information on using editor mode.
To create a page you want to be below an existing page, in the page hierarchy:
If there is an existing page, whose format you wish to use as a base for your new page, you can 'clone' that page, and then change its content.
This is a bit of a hybrid. You can create a link on another page, then click the link you just inserted, to create the new page:
If the page does not yet exist, the link is displayed in red. If the page does exist, the link is displayed blue. If you want to create a new page, but the page title you desire is already taken, check if it makes sense helping edit and improve the page already there. Otherwise, think of a unique title for your new page, and create a link for it. Refer to page naming guide for guidelines.
To add content to your new page, click on the red link you just created, after saving and closing the editor. The new page opens in editor mode, enabling you to start writing. Refer to Editing an existing page, for further information on using editor mode.
MDN support of KumaScript macros, and integration of content from other pages can sometimes be hampered by the need for caching of pages, for performance reasons. Pages are built from their source, and this output is cached for future requests. From that moment on, any macros (templates), or integrations (using the macroPage
), will not reflect later changes made to the macro, its output, or the contents of the integrated material.