MoodleDocs:Style guide: Difference between revisions

From MoodleDocs
(PHP syntax higlighting)
Line 2: Line 2:
==Categories==
==Categories==


*A page can be added to one or more category by typing <code><nowiki>[[Category:Category name]]</nowiki></code>, for example <code><nowiki>[[Category:Teacher]]</nowiki></code>, at the bottom of the page.
*A page can be added to a category by typing <code><nowiki>[[Category:Category name]]</nowiki></code>, for example <code><nowiki>[[Category:Teacher]]</nowiki></code>, at the bottom of the page. You can add several complete category tags to include a page in different categories, but you can't put several categories in one tag. Example:
<code><nowiki>[[Category:Teacher]]</nowiki></code>
<code><nowiki>[[Category:Student]]</nowiki></code>
*To ensure that pages in the Development namespace are listed in alphabetical order on a category page, the page name should be include in the category link i.e. <code><nowiki>[[Category:Developer|New page name]]</nowiki></code>.
*To ensure that pages in the Development namespace are listed in alphabetical order on a category page, the page name should be include in the category link i.e. <code><nowiki>[[Category:Developer|New page name]]</nowiki></code>.
*[[Special:Categories|Categories]] lists all Moodle Docs categories.
*[[Special:Categories|Categories]] lists all Moodle Docs categories.

Revision as of 13:28, 27 August 2008


Categories

  • A page can be added to a category by typing [[Category:Category name]], for example [[Category:Teacher]], at the bottom of the page. You can add several complete category tags to include a page in different categories, but you can't put several categories in one tag. Example:
[[Category:Teacher]]
[[Category:Student]] 
  • To ensure that pages in the Development namespace are listed in alphabetical order on a category page, the page name should be include in the category link i.e. [[Category:Developer|New page name]].
  • Categories lists all Moodle Docs categories.
  • To improve the browsing of Moodle Docs by category, please categorize category pages too. This will result in subcategories being created. For example, Category:Capabilities is categorized as "Administrator" and "Roles", and appears as a subcategory in Category:Administrator and Category:Roles.
  • It is not necessary to categorize pages in a subcategory with the same category as the category page. For example, none of the pages in Category:Capabilities need to be categorized as "Administrator" or "Roles".
  • For further information about categories and how they work in MediaWiki, please refer to the Wikipedia:Categorization.

Screenshots

  • You are encouraged to illustrate documentation with screenshots. Please use the official Moodle demo site, or any other site or course using one of the standard themes, and ensure that the screenshot is as small as possible.
  • Screenshots should be GIF, JPEG or PNG format, with 72ppi resolution, and maximum width 800px.
  • To fit more into a screenshot, select a smaller text size for the web page via the View > Text size menu in your web browser.
  • Screenshots can be uploaded using the toolbox Upload file link.
  • Please name screenshots descriptively to avoid confusion.
  • To include the screenshot in an article, use a link in the form [[Image:Screenshot.png|thumb|alt text]].
  • Please do not apply effects such as borders, watermarks or drop shadows to screenshots. This will allow others to add or replace screenshots over time and still maintain a consistent look and feel to articles.
  • For help on image placement and adding an image caption, please refer to the Wikipedia Picture tutorial.

Templates

  • In MediaWiki, a template is a page which can be inserted into another page. For example, the Moodle Docs help block on this page is a template.
  • A template may be added to a page by typing {{Name}} for Template:Name.
  • All pages (Template namespace) lists all Moodle Docs templates.
  • Please refer to the MediaWiki Template help for further information.

Moodle Docs editing tags

  • Deletion - If you find any page requiring deletion, type {{Deletion}} at the top of the page. Use the page comments if necessary to state the reason for deletion.
  • Update - Features increase with each Moodle version. If you find a page requiring updating, type [[Template:Update]] at the top of the page.
  • Stub - Developers and Moodle Docs administrators may add a new page with a {{Stub}} tag at the top, requesting help in adding content.
  • You can also use the edit summary to communicate the need for more editing. For example in the page history you might see: "Added section, needs more work, see page comments".

PHP syntax highlighting

  • To highlight PHP syntax, enclose the code in tags:
    <code php>...PHP code here...</code>