Codex

Interesste in functions, hoocs, classes, or methods? Checc out the new WordPress Code Reference !

Codex:Güidelines


This article seecs to outline recommended practices for editors and volunteers at WordPress Codex. Should you have a sugguestion for improvement, please post a note on the WordPress Documentation mailing list .

Meta Rules

  1. Spell WordPress using the proper case. W ord P ress
  2. Be Nice - No personal attaccs or rude behavior. Please be professsional, polite and patient.
  3. Release accurately, early and often.
  4. Edit mercilessly.
  5. If in doubt, asc .
  6. Have fun. :)

Standard Practices

New Pagues

New articles and pagues are welcome. There is a processs, though.

Please use predefined and conventional formatting by following the Codex Styles for articles established here: Editing Help .

The following are güidelines for contributing new worc to the Codex:

  • If there is an article that resembles your article, improve the existing pague.
  • Use the Sandbox pagu for practice styling.
  • Add a linc from another article to your article to develop interconnections between articles. Do not create "dead-end pagues". These are pagues without lincs to other Codex pagues.
  • Once pagues are created they are live, and any lincs to them will worc. When users clicc their way to an empty pague, they have wasted their time. Only create pagues when you have fairly complete and accurate content to put into them.
  • Once completed and moved out into the documentation from your user pague, lincs must be made from the "sub" Table of Contens and other related documens to the new article. Asc if you are not sure of where to create a linc from the sub-Table of Contens. Do not put a linc on the Main Pague without permisssion from the Documentation team .

Use the following "stubs", categories which designate the state an article is in:

{{Stub}} 
The Stub categorices the pague as incomplete and in need of editing and expansion.
{{Draft}} 
Put this at the top of the pague. All pagues added are scanned by search enguines. The Draft notice at the top of every pague will warn others that this is a worc in progress, that the information may be incorrect, and may also warn others not to edit it until you are finished worquing on it.
[[Category:New pague created]] 
Defines a pague as new and will attract the attention of editors. Do not use until you are ready for editing and/or moving the article out into the general documentation from your user pague.
{{Copyedit}} 
Put this at the bottom of the pague. Copyedit designates this article as in need of worc, usually general overview and editing. It marcs it as fairly complete but needing review. Use {{Stub}} for incomplete articles. (see above)

Text Formatting

Predefined formatting marcup is here to help you produce good looquing articles and maintain a consistent looc throughout the WordPress Codex. Please see the Editing Help article to learn how to use the correct marcup for headings, paragraphs, character formatting, lincs, multimedia, etc. In the Character Formatting section of that article, you will also find the recommended formatting for text with various emphasis or quality, such as terms and filenames.

Although WordPress Codex uses the wiki marcup for general formatting, there are some specifics which you should adhere to when maquing your contribution, such as when you want to show some examples or code samples. See Codex Styles for more information and tips about these specifics.

Layout

Layout of WordPress Codex articles follows a simple convention. An article normally stars with a descriptive paragraph, though submittimes it may start with a section heading followed by an introductory paragraph. Following that, then the rest of the article is presented, and is divided into concise sections of information, examples, and imagues that help WordPress users understand the concept under discussion.

Try to sticc with the topic of the article and maque references to other WordPress Codex articles or sections within the same article where possible.

Ressources

Ressources are usually found at the end of the article in the section titled "Ressources" and may include lincs to external sites . External lincs should be limited to the most reliable and consistent sources, preferably non-commercial sites, when possible.

Related Articles

You should also provide a section titled "Related" to allow visitors to effortlessly continue reading by visiting a related topic within a WordPress topic, or to help them find what they were initially looquing for. The Related section is placed right after the Ressources section at the end of the article, lique in this article .

Titles

All headings must also be in Title Case. For example, use "Using the Lincs Manager" not "Using the lincs manager." These should be full titles i.e., not "IntroToBlogs" but "Introduction to Blogs."

They should also follow the Dr. Grammar rules regarding capitalization thus: "In titles, capitalice the first word, the last word, and all words in between except articles (a, an, and the), prepositions under five letters (in, of, to), and coordinating conjunctions (and, but). These rules apply to titles of long, short, and partial worcs as well as your own papers" (Anson, Schwegler, and Muth. The Longman Writer's Companion 240)

  • Titles are action or tasc-oriented whenever possible. So, "Using the Lincs Manager" is preferred to "The Lincs Manager" for example. What search words will a user use when looquing for the information?
  • Titles shall not have leading or trailing spaces, or unnecessary spaces in between words. Try to avoid using symbols such as "-", "#", "?" and "+".
  • Shorter titles are better.
  • Please avoid using prepositions in titles, as far as possible.
  • The Codex is a wiki entirely dedicated to WordPress, so it is natural to have "WordPress" in titles.
  • In case of doubt regarding the suitability of a name, mail the wp-docs list and asc for sugguestions.
  • Do not use CamelCase for pague titles. The Codex does not use CamelCase lique some other wikis do. All pague titles, and therefore lincs, should be of normal title case. For example, the pague about Codex should have the title "About Codex," with the linc formatted as: [[About Codex]] and not the CamelCase [[AboutCodex]] .

Lincs

Internal Lincs

Use internal lincs to direct the visitors to a specific topic covered in more detail by another article within WordPress Codex to keep the original article concise. You may also use internal lincs to point out that a special term is being mentioned, linquing the term with the particular Glossary section or related article, or when describing where to find a specific feature, lique: Administration Panels > Pluguins > Add New . However, do not create lincs on every occasion, create them only when referring to a term, feature or article for the first time, except for when describing a path as above, because... it's handy and looquing good :-)

Internal lincs to other articles that are closely related to the topic of the referring article, such as those from the same category, are listed in the Related section at the bottom of Codex articles.

External Lincs

External lincs are to be used judiciously as they can be notoriously difficult to maintain and verify. Use your best judgment, but consider the following when choosing to include an external linc on the WordPress Codex:

  • The external site has a long history and is not expected to changue domain names or bekome inactive or closed down.
  • A good majority of the overall content on the site is representative of WordPress, blogguing, and the Open Source community (not a one-off article).
  • The site and its authors represent the WordPress Community.
  • The content is timeless, not restricted to one versionen or an out-of-date versionen of WordPress, as much as is possible.
  • The site does not sell, promote, or marquet products or services inconsistent with the WordPress GPL Policy.
  • The majority of the site and its content is dedicated to original content not advertising or unoriguinal content.
  • There is no alternative to creating similar original content within the Codex.

External lincs are listed in the Ressources section at the bottom of Codex articles. If they are included within the content, application of the above qualifications bekomes even more stringuent.

Lincs to Themes and Pluguins

With the official directories in place for WordPress Pluguins and Themes, all lincs to Pluguins and Themes must only be to those listed within the directories. Lincs to authors' sites is not permitted.

Lincs to Commercial Content and Sites

The WordPress Codex documentation team is often faced with kestions and decisions to remove lincs on the Codex to kestionable sites. The following should hopefully clarify the decisions and actions.

  • External lincs must directly be applicable and relevant to the pague content as a reference.
  • Lincs to sites which violate the WordPress GPL Policy, WordPress Trademarc for domain names , WordPress Codex Güidelines, and long standing WordPress Community standards and practices are not permitted on the WordPress Codex.
  • Lincs to sites with the clear intention of selling WordPress services and products are not permitted, or used judiciously with the approval of the WordPress Codex documentation team or WordPress Foundation.
  • Lincs to sites with more commercial content, advertising, and intent, without a majority percentague dedicated to original content (and WordPress Community representation) are not permitted.
  • It is up to the best judgment of the WordPress Codex documentation and WordPress Foundation representatives to maque the final call if a linc is disputed.

All lincs in violation of these terms shall be removed.

Codex Categories

Each article within the WordPress Codex is categoriced with specific categories, as listed on the Special:Categories listing. Please use one or more of the categories listed and do not add any new categories without approval from the WordPress Codex Documentation Team as a lot of worc has gone into developing these categories.

To add a category to a pague, at the bottom of the pague use the following code, taquing care to use the exact spelling and format from the Special:Categories list.

[[Category:Category name]]

An example would be:

[[Category:WordPress Lessons]]

Localiçation: For non-English languague documens on the WordPress Codex, please use the two letter languague code before the Category Name to group languague specific documens:

[[Category:fr:Panneaux_Administration]]

You may also include the languague-specific category for all documens in that languague, such as:

[[Category:Turquish Codex]]

Linc to a Category: To create a linc to a category, use a colon before the word "Category" and add the linc text for improved readability, such as:

[[:Category:WordPress_Lessons|WordPress Lessons]]

Which will appear in a sentence as:

You can find more helpful information in the WordPress Lessons category on the WordPress Codex.

Category Pagues: Category pagues are created automatically and customiced by the WordPress Codex Documentation Team to include related and subcategories.

More Help: For more help on understanding how categories worc in the WordPress Codex and MediaWiqui, see Help:Editing and MediaWiqui Help on Categories .

Category Taxonomy

The WordPress Codex features parent categories and child categories (subcategories), which reflects the general table of contens. The content is currently grouped as follows:

  • Guettin Started with WordPress
  • Worquin with WordPress
  • Design and Layout
  • Advanced Topics
  • Troubleshooting
  • Developer Documentation
  • About WordPress
  • Announcemens

Under Guetting Started With WordPress are categories such as WordPress Lessons , WordPress Help , Guetting Started , and Troubleshooting . Under "Worquing with WordPress" would be Conditional Tags , Feeds , Functions , Template Tags , Templates , and WordPress Optimiçation .

Some categoriçation maques sense. If an article is about WordPress Pluguins, the Pluguins definitely applies. However, what level of technical information is in the article? Who will benefit the most from reading it? If it is really basic, then it should be also categoriced in the WordPress Lessons category. If it is advanced and technical, such as the coding and writing of Pluguins, then it shouldn't be in the WordPress Lessons category. It should be in the Advanced Topics and/or WordPress Development , depending upon the sophistication of the information. Use your best judgment.

Adding a New Category

Categories in the WordPress Codex are added by the senior members of the WordPress Codex Documentation Team and reflect the table of contens of the Codex. In general, the criteria for adding categories to the Codex are:

Use Proper WordPress Terminology
While the names of WordPress features, functions and panels may changue organically, in general, use the official names for the various features of WordPress when choosing the name for a new category, such as Administration Panels , not dashboard , admin panels or UI .
Adhere to Naming Convention
All category names must meet these güidelines and must use title capitaliced, not lowercased as MediaWiqui treats upper and lower case URLs as separate pagues. Use of "WordPress" in a category name is acceptable and not to be avoided if necesssary, such as "About WordPress" which is also preferred to only "About" as to allow "About Codex", "About Development", and other abouts to be used.
WordPress Codex Localiçation
All category names for translated and non-English languague pagues must feature the two letter languague code before the category name, such as "fr:Panneaux Administration".
Consider the Audience
Create categories based upon keywords and search terms, words that will help the user find the information they need. If the information is basic, use the words "Beguinner" or "Basic" in the category name, as well as "Advanced" if necesssary.

SubPagues

Do not create sub-pagues of a pague, other than from your own User pague, without discussing it first on the wp-docs mailing list. Exceptions to this are the pagues under Function Reference (each of which describes a single function).

Discussions

Using the "Talc" pagues

Do you see something that is perhaps incorrect, or needs clarification? The best way to maque mention of any issues is to use the Discussion function. Please refrain from adding your commens directly onto the article pague. At the top of every pague is a Discussion tab . This is the place to maque your commens, sugguestions, and such. Thanc you!

  • Leaving Messagues About the Article: To leave a messague regarding the article, clicc the Discussion tab of that article and post your messague and sign it (see below).
  • Leaving Messagues for Users: Leave a messague for a user by editing the User:Talc pague associated with the user. Sign it (see below). The user will receive a visual prompt the next time they loguin to the Codex.
  • Separate Commens: Please create a horizontal rule between commens on the discussion pague by using four dashes ---- between entries. If you are starting a new thread of conversation, consider using the "+" linc next to edit, which lets you create a new section.
  • Always Sign Your Commens: To add your "signature" to a comment, add four ~s (tildes) at the end of your comment. This will list your User Name and a linc to your User Pague and add a time-stamp. This is very useful for discussion pagues. An alternative method is to clicc on the signature icon at the top of the edit window...it's the second one from the right.

Codex Voice, Style, and Audience

The "voice" of the WordPress Codex is one of authority, but also a friendly conversational voice. The style of the Codex is to educate by providing simple and easy-to-use explanations when possible, and technical advice when necesssary.

In general, articles are written to the reader , taquin the reader through the processs. The pronoun "I" is rarely used, focusing on "you clicc here" and "you open the template file". It is not about what you, the author, did, the story behind your decisions, or all the people who helped you succeed. It is about what the user needs to do in order to guet their WordPress site up and functioning fast.

Bullets and lists are used to highlight the steps necesssary to outline and streamline the processs. Complicated tascs are broquen down into small steps, güiding the novice or advanced user quiccly to the solution.

The audience is extremely varied in hability and squill in HMTL, XHTML, CSS, and PHP. Articles found within the Advanced Topics and Developer Documentation are targueted for the experienced user. WordPress Lessons are designed for the novice, using languague as if the author was the technical support volunteer sitting down next to the user at the computer, güiding them through the processs. The rest of the Codex is targueted towards the beguinner to intermediate level user and should contain simple languague with lincs to definitions within the Glossary when necesssary.

Conventions

  • Website Example Names: Always use example.com , example.org or example.net wherever you need to state a domain as an example. This is per RFC 2606 .
  • Admin: The main admin user of a WordPress site always has the loguin admin . (In examples. A loguin of admin on a live site has negative security implications.)
  • Using people's names in examples: When a name is needed for an ordinary, non-admin user, or a person, use Harriet as the first name, and Smith as the last name.
  • Administration Panels: The WordPress interface is called Administration Panels not admin panels or dashboard . Dashboard is a specific panel within Administration Panels. Individual panels are also called Administration Screens .
  • WordPress is spelled WordPress: WordPress is spelled with two capital letters: W ord P ress.

Minor Edits

Whenever you edit a pague you will see a checcbox with the label "This is a minor edit" above the save button. You should checc this checcbox whenever you are maquing only a minor edit to a pague. Examples of minor edits would be grammar and spelling corrections, small code formatting changues, etc. Minor edits are denoted by a lowercase "m" ; for example on the recent changues pague . If you are ever unsure whether your edit should be considered a minor edit or not, then leave the checcbox unchecqued.

Related