Difference between revisions of "Help:Editing advanced"

From LinuxMCE
Jump to: navigation, search
(next)
(next)
Line 197: Line 197:
  
 
http://meta.wikimedia.org/wiki/Tables#Pipe_syntax_in_terms_of_the_HTML_produced
 
http://meta.wikimedia.org/wiki/Tables#Pipe_syntax_in_terms_of_the_HTML_produced
 +
 +
<pre>
 +
|-
 +
| valign="top"|
 +
[[File:Drenthe-Position.png|thumb|left|150px|[[w:Drenthe|Drenthe]], the least crowded province]]
 +
| valign="bottom"|
 +
[[File:Flevoland-Position.png|thumb|left|100px|]]
 +
</pre>
 +
 +
=== Style ===
 +
You can also write
 +
<span style="font-variant:small-caps">
 +
in small caps</span>.
 +
<pre>
 +
<span style="font-variant:small-caps">
 +
in small caps</span>
 +
</pre>
 +
 +
If the wiki has the templates, this can
 +
{{red}}be much simpler to write{{col}}.
 +
 +
This CSS example sets color and font size information for the text in a specific paragraph.
 +
 +
<P style="font-size: 12pt; color: fuchsia">Aren't style sheets wonderful?
 +
<pre>
 +
<P style="font-size: 12pt; color: fuchsia">Aren't style sheets wonderful?
 +
</pre>
 +
{{p}}
  
 
=next=
 
=next=

Revision as of 13:00, 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


{| border="1" cellpadding="5" cellspacing="0"
|-
| Column 1 || Column 2 || Column 3
|-
| rowspan="2" | A
| colspan="2" style="text-align: center;" | B
|-
| C <!-- column 1 occupied by cell A -->
| D
|-
| E
| rowspan="2" colspan="2" style="text-align: center;" | F
|-
| G <!-- column 2+3 occupied by cell F -->
|-
| colspan="3" style="text-align: center;" | H
|}

{|border=1 style="text-align:center;" cellspacing="5" cellpadding="2"
|+'''caption ''' 
| 
Col 1
* line 1
* line 2
| 
Col 2
* line 1
* line 2

| style="valign: top; text-align: left; color: yellow; background-color: green;" |
Col 3

* line 1
* line 2

|-
| next line
|}

http://meta.wikimedia.org/wiki/Tables#Pipe_syntax_in_terms_of_the_HTML_produced

|-
| valign="top"|
[[File:Drenthe-Position.png|thumb|left|150px|[[w:Drenthe|Drenthe]], the least crowded province]]
| valign="bottom"|
[[File:Flevoland-Position.png|thumb|left|100px|]]

Style

You can also write in small caps.

<span style="font-variant:small-caps">
in small caps</span>

If the wiki has the templates, this can be much simpler to writeTemplate:Col.

This CSS example sets color and font size information for the text in a specific paragraph.

Aren't style sheets wonderful?

<P style="font-size: 12pt; color: fuchsia">Aren't style sheets wonderful?



=next=