Difference between revisions of "Help:Editing advanced"

From LinuxMCE
Jump to: navigation, search
(Line break)
(Table)
Line 150: Line 150:
 
| colspan="3" style="text-align: center;" | H
 
| colspan="3" style="text-align: center;" | H
 
|}
 
|}
 +
 +
=next =

Revision as of 12:51, 28 September 2012

Home | Editing help | Table of contents (2)



Editing an article

An editable article page has a [Edit] tab on top of the page which can be used to enter editing mode for the whole article.

Creating sections in an article

The section heading syntax is the double equal (==) tag.
To create a section, simply add its title within a pair of double equals ( == Title of The Section == ) with nothing else on the line.

Inserting a new section

Inserting a section can be done by editing either the section before or after it. A new section is created anywhere a line starts and ends with a section tag (equal signs).

Subsections

Each additional "=" corresponds to a subsection.

== for section
=== for subsection
==== for sub-subsection

Editing a section

Any section of an article is editable by clicking on the [edit] link that is at the end of the line the section title is on. To make changes to the section, click the [Edit] link.

Subsections are included in the part of the section that is edited.

"__NOEDITSECTION__" anywhere on the page will remove the edit links.


Deleting or merging a section

A section is removed by deleting a heading or a heading's tags, without affecting the content of the section. Removing a section's heading appends its contents to the previous section. The contents of the two are merged.
To delete a section and remove all its contents, delete all the content along with the heading.



Writing comments that won't show

The text between '''here'''
<!-- comment here -->
'''and here''' won't be displayed 

When placed on a page, the above will produce:

The text between here and here won't be displayed



Formatting text

Wiki syntax

In linguistics, syntax (from Ancient Greek σύνταξις "arrangement" from σύν syn, "together", and τάξις táxis, "an ordering") is the study of the principles and rules for constructing sentences in natural languages.

In addition to referring to the discipline, the term syntax is also used to refer directly to the rules and principles that govern the sentence structure of any individual language, as in "the syntax of Modern Irish", and "the syntax of MediaWiki".

...The term syntax is also sometimes used to refer to the rules governing the behavior of mathematical systems, such as logic, artificial formal languages, and computer programming languages[1].

In every section of this guide, you will find the syntax necessary to accomplish the task at hand.

For a list of syntactical items, see Mediawiki syntax



Sub/Superscript

Superscript: <sup> text to superscript </sup> produces: Superscript text
Subscript: <sub> text to superscript </sub> produces: Superscript text


Typewriter font

A typewriter font (<tt> </tt>), sometimes used for technical terms and computer code (<code> </code>).

Caption

You can use <small>small text</small> for captions: small text.

Line break

Line break: <br> or </br> . Alternatively, you can use blank lines to separate paragraphs.


Text box

Text box: <pre> </pre>

A text box looks like this 



Table

From wikimedia manual


caption

Col 1

  • line 1
  • line 2

Col 2

  • line 1
  • line 2

Col 3

  • line 1
  • line 2
next line

Table:

{|border=1 style="border: 1px solid darkgray; background: transparent; color: black; text-align:center; width: 75%; height: 200px" cellspacing="5" cellpadding="2"

caption

|+align="bottom" |'''caption ''' 

heading

!width="50" | Column Name
!   !!   !!

row

|-

row heading

|-
! row heading

cell (defined one per line)

|

multiple cells (all defined on same line)

|   ||   ||

format

|format |cell content
|font-style:italic;
|style="float: right; background: red; color: white" valign="top" | cell content
| bgcolor="red" |  cell content 

By default data in tables is vertically centrally aligned


Column 1 Column 2 Column 3
A B
C D
E F
G
H

next