Help:Editing

Introduction
This page is a quick reference for wikitext-code. A full help for Wiki markup can be found at Wikipedia.

WikiPages gives common guidelines on the best practices to be followed when writing FreeCAD documentation.

This Editing Overview has a lot of wikitext examples. You may want to keep this page open in a separate browser window for reference while you edit.

Editing basics

 * Start editing
 * To start editing a MediaWiki page, click the Edit link at the top of the page. This brings you to a page with a text box containing the wikitext: the editable source code from which the server produces the webpage. If you just want to experiment, please do so in the sandbox, not here.


 * Type your changes
 * You can just type your text. However, also using basic wiki markup (described in the next section) and adding links adds to the value of your contribution.


 * Summarize your changes
 * Write a short edit summary in the small field below the edit-box. You may use shorthand to describe your changes, as described in the legend.


 * Upload images
 * You can also add images and screenshots. Please only upload and  files.


 * Preview before saving
 * When you have finished, click the button to see how your changes will look before making them permanent.  Repeat the edit/preview process until you are satisfied, then click the  button. Your changes will be applied to the page immediately.

Basic text formatting
For a list of HTML tags that are allowed, see HTML in wikitext. However, you should avoid HTML in favor of wiki markup whenever possible.

Organizing your writing
{| width="100%" !style="width:50%;"|What you type !style="width:50%;"|What it looks like



H2 heading
Adding pairs of equals signs around a text creates a heading for a new paragraph. You should start with 2 pairs of equals signs because using 1 pair would create an H1 heading which is reserved for the page title.

H3 heading
Do not skip levels, for example do not go from 2 to 4 pairs of equals signs.

Adding pairs of equals signs around a text creates a heading for a new paragraph. You should start with 2 pairs of equals signs because using 1 pair would create an H1 heading which is reserved for the page title.

Do not skip levels, for example do not go from 2 to 4 pairs of equals signs.



Your Title
Your text and image FreeCAD.

Your Title
Your text and image FreeCAD.

Code blocks and syntax highlighting
To mark a code block a number of solutions are available. The Code template is the preferred solution.

Prepend a space to each line
Example:

import math for radius in [1.0, 2.0, 3.0]: area = math.pi * pow(radius, 2) print(area)

Result:

import math for radius in [1.0, 2.0, 3.0]: area = math.pi * pow(radius, 2) print(area)

Use tags
Example:

import math for radius in [1.0, 2.0, 3.0]: area = math.pi * pow(radius, 2) print(area)

Result:

import math for radius in [1.0, 2.0, 3.0]: area = math.pi * pow(radius, 2) print(area)

===Use

Result:

Use the Code template
The Code template will also highlight the syntax. If the language is Python the parameter is optional.

Example:

Result:

Templates and transcluding pages
Templates are segments of wiki markup that are meant to be copied automatically ("transcluded") into a page. You add them by putting the template's name in. By default, pages are transcluded from the default Template namespace. The namespace is the portion of a page name before the colon; for instance, in Help:Editing, Help is the namespace in which the page Editing lives.

It is also possible to transclude other pages from the default namespace (the null one) by using.

There are three pairs of transclusion markup tags that can be used in wikitext to control how transclusion affects parts of a template or article. They determine whether or not wikitext renders, either in its own article, which we will call "here", or in another article where it is transcluded, which we will call "there". There can be several such section. Also, they can be nested.
 *  :  the content will not be rendered there. These tags have no effect here.
 *  :  the content will render only there, and  will not render here (like invisible ink made visible by means of transclusion).
 *  :  the content will render here and will render there, but it will only render there what is between these tags.

Remark: if a page is transcluded without any transclusion markup, it may cause an unintentional categorization. Any page transcluding it will contain the same category as the original page. Wrap the category markup with   tags to prevent incorrect categorization.

Special Pages
Special pages are pages that cannot be edited, but are generated by the wiki engine. They provide very useful functions, and live in the Special namespace. A summary of all special pages is available from Special:SpecialPages.

Direct link to frequently used Special pages are:


 * Special:WhatLinksHere that allows to find all the wiki pages linking to the given page name. For example, find all the pages linking to this page
 * Special:PrefixIndex that allows to find all pages starting with the given prefix. For example, find all the pages in the Template namespace

Minor edits
A logged-in user can mark an edit as "minor". Minor edits are generally spelling corrections, formatting, and minor rearrangement of text. Users may choose to hide minor edits when viewing Recent Changes.

Marking a significant change as a minor edit is considered bad Wikiquette. If you have accidentally marked an edit as minor, make a dummy edit, verify that the " [ ] This is a minor edit " check-box is unchecked, and explain in the edit summary that the previous edit was not minor.