Help:Syntax: Difference between revisions

From MC Public Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {| class="wikitable" style="width:100%;" ! style="width:33.3%;" | Description ! style="width:33.3%;" | You type ! style="width:33.3%;" | You get |- | Paragraphs | <pre ...")
 
(added gallery syntax)
Line 7: Line 7:
| Paragraphs
| Paragraphs
|
|
<pre style="padding:0;border:0;">A single newline has no
<pre style="padding:0;border:0;">
A single newline has no
effect on the layout.
effect on the layout.


But an empty line starts a new paragraph, or ends a list or indented part.</pre>
But an empty line starts a new paragraph, or ends a list or indented part.
</pre>
|
|
A single newline has no
A single newline has no
Line 19: Line 21:
| Line breaks
| Line breaks
|
|
<pre style="padding:0;border:0;">You can break lines<br />
<pre style="padding:0;border:0;">
without starting a new paragraph.</pre>
You can break lines<br />
without starting a new paragraph.
</pre>
|
|
You can break lines<br />
You can break lines<br />
Line 34: Line 38:
|-
|-
| Bold and italic text
| Bold and italic text
| <code><nowiki>''''''bold and italic'''''</nowiki></code>
| <code><nowiki>'''''bold and italic'''''</nowiki></code>
| '''''bold and italic'''''
| '''''bold and italic'''''
|-
|-
Line 126: Line 130:
| <code><nowiki>&lt;nowiki&gt;[[Link]] ''italic text''&lt;/nowiki&gt;</nowiki></code>
| <code><nowiki>&lt;nowiki&gt;[[Link]] ''italic text''&lt;/nowiki&gt;</nowiki></code>
| <nowiki>[[Link]] ''italic text''</nowiki>
| <nowiki>[[Link]] ''italic text''</nowiki>
|-
| Gallery
<div style="padding:.7em .5em;font-size:.9em;">''<code>perrow</code> should be <code>4</code>''</div>
|
<pre style="padding:0;border:0;">
<gallery perrow="4">
Image:Example.png|Caption
Image:Example.png|Caption
</gallery>
</pre>
|
<gallery perrow="4">
Image:Example.png|Caption
Image:Example.png|Caption
</gallery>
|}
|}

Revision as of 22:00, 29 January 2011

Description You type You get
Paragraphs
A single newline has no
effect on the layout.

But an empty line starts a new paragraph, or ends a list or indented part.

A single newline has no effect on the layout.

But an empty line starts a new paragraph, or ends a list or indented part.

Line breaks
You can break lines<br />
without starting a new paragraph.

You can break lines
without starting a new paragraph.

Italic text ''italic'' italic
Bold text '''bold''' bold
Bold and italic text '''''bold and italic''''' bold and italic
Link to another page [[Name of page]]
[[Name of page|Text to display]]
Name of page
Text to display
Link to an external site [http://www.google.com/]
[http://www.google.com/ Text to display]
[1]
Text to display
Add an image
Parameters can be omitted.
[[File:Example.png|100px|alt=Alt text|Title text]] Alt text
Add a thumbnail
Parameters can be omitted.
The thumbnail will float right if the left parameter is omitted.
[[File:Example.png|thumb|left|alt=Alt text|Caption]]
Alt text
Caption
Add a page to a category [[Category:Category name]] Categories should be placed at the end of pages. The category name will display in a bar at the bottom when the page is previewed or saved.
Signature
Sign your contributions when posting to a talk page.
Do not sign when contributing to an article.
~~~~ Username (talk) 18:00, 24 November 2024 (UTC)
Redirect to another page
Redirects must be placed at the start of the first line.
#REDIRECT [[Target page]] Target page
Section headings
= Level 1 = should not be used.

== Level 2 ==
=== Level 3 ===
==== Level 4 ====
===== Level 5 =====
====== Level 6 ======

Level 2

Level 3

Level 4

Level 5
Level 6
Bulleted list

* One
* Two
** Two point one
* Three

  • One
  • Two
    • Two point one
  • Three
Numbered list

# One
# Two
## Two point one
# Three

  1. One
  2. Two
    1. Two point one
  3. Three
Indented text
This is generally used when replying on a talk page, as it keeps conversations easy to browse.

no indent (normal)
: first indent
:: second indent
::: third indent

no indent (normal)

first indent
second indent
third indent
Ignore wiki markup <nowiki>[[Link]] ''italic text''</nowiki> [[Link]] ''italic text''
Gallery
perrow should be 4
<gallery perrow="4">
Image:Example.png|Caption
Image:Example.png|Caption
</gallery>