Help:Syntax: Difference between revisions

From MC Public Wiki
Jump to navigation Jump to search
(added gallery syntax)
m (moved gallery)
 
Line 59: Line 59:
| <code><nowiki>[[File:Example.png|thumb|left|alt=Alt text|Caption]]</nowiki></code>
| <code><nowiki>[[File:Example.png|thumb|left|alt=Alt text|Caption]]</nowiki></code>
| [[File:Example.png|thumb|left|alt=Alt text|Caption]]
| [[File:Example.png|thumb|left|alt=Alt text|Caption]]
|-
| 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>
|-
|-
| Add a page to a category
| Add a page to a category
Line 130: Line 145:
| <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>
|}
|}

Latest revision as of 05:26, 10 February 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
Gallery
perrow should be 4
<gallery perrow="4">
Image:Example.png|Caption
Image:Example.png|Caption
</gallery>
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:45, 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''