MozillaZine Knowledge Base:FormattingFrom MozillaZine Knowledge Base(Redirected from MozillaZine Knowledge Base:How does one edit a page)
[edit] LinksThis is quite easy. Use double [[ ]] or single [ ] brackets, depending on whether you are linking to another page within the Knowledge Base or to an external site. [edit] Linking to another Knowledge Base page
[edit] Link to a category within the knowledge baseLinking to a category is very similar to linking to a page, the only change you need to make is to preface the category with a colon. For example, you can add a link to Category:Visual_customizations_(Thunderbird) using [[:Category:Visual_customizations_(Thunderbird)]] . [edit] Linking to an external siteUse the following syntax when linking to a page outside the Knowledge Base.
Note: If you want to include a web address without a link, use the <nowiki> and </nowiki> tags:
[edit] Linking to bugzilla
Note: The braces make use of a special template . [edit] Document structure[edit] HeadersSection headers within a page are made by putting two or three equal signs on each side of the desired header text: use "==" for a level 2 header or "===" for a level 3 header. Example: in the "Links" section above, the headers were made by inserting the following:
== Links == There are actually six levels of headers that can be created in the same fashion, but most articles in the Knowledge Base use only level 2 and level 3 headers. [edit] ListsPut * or # at the beginning of a line to make an unordered (bulleted) or ordered (numbered) list, respectively. To make a list within a list, use ** or ## instead. Examples:
* list item 1 will produce
Whereas using # instead of * will produce
You can also produce mixed lists, such as a bulleted list within a numbered list. Example:
# list item 1 will produce
[edit] Indented textIndenting is used most often in Talk pages. To indent a line, put a : (colon) at the beginning of the line. For example:
:Hello, I am the first indented line. produces
[edit] TablesTables are explained on a separate page. [edit] Table of ContentsYou can hide the table of contents using __NOTOC__ [edit] Character formatting[edit] EmphasisAlthough the current style guidelines say that italics and bold should be used as sparingly as possible, there are some situations when you may want to use them. To do so:
[edit] CodeCode may be entered as monospace lines by beginning each line with a space. For example: user_pref("mail.ui.display.dateformat.default", 2); produces user_pref("mail.ui.display.dateformat.default", 2);
This will preserve manually inserted spacing within your text, as in this example: for(int a=0;a<1;a++)
{
do_something();
}
For longer, multiline blocks of code, instead of beginning each line with a space, the preferred way is to enclose the whole block of code in a single set of <pre> tags. Also note that HTML and Wiki-code are still processed in monospace lines. [edit] SignaturesThough signatures are not used in regular Knowledge Base articles, it helpful if you include your signature when commenting in a Talk page, so that people reading the Talk page later can understand who said what when. To insert your signature: [edit] See also[edit] External links |
|