Difference between revisions of "Wiki cheatsheet"

From Organic Design wiki
m (put external links below internal)
 
(31 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[[Category:Seminars]]
+
Wiki's use symbols such as asterisks, single-quotes, square-brackets and braces to represent formatting elements like making words into links to other sites or articles, or creating tables for layout and dividing the text into headings. This kind of text markup used in the MediaWiki (Wikipedia) project is called ''wikitext''.
__NOTOC__
+
 
<div align="center">
+
Below is a table of the most commonly used wikitext formatting, the middle column is what you type into the article in "edit mode" (after clicking the edit link at the top of the page), and the right-hand column shows what the result would be when viewing the article normally. For more detailed information about editing and wikitext, see [http://meta.wikimedia.org/wiki/Help:Wikitext Help:Wikitext].
{| style="border:1px solid #000080; text-align:left;  background:#F3F6EA; font-size: 95%;"
+
 
 +
{| style="border:none; text-align:left;  background:#f0f0f0; font-size: 95%;"
 
|-
 
|-
| width="25%" style="background: #DEE6C6; padding: 3px 5px; text-align:center;"|'''Description'''
+
| width="25%" style="background: #e4e4e4; padding: 3px 5px; text-align:center;"|'''Description'''
| style="background: #DEE6C6; padding: 3px 5px; text-align:center;"|'''You type'''
+
| style="background: #e4e4e4; padding: 3px 5px; text-align:center;"|'''You type'''
| width="25%" style="background: #DEE6C6; padding: 3px 5px; text-align:center;"|'''You get'''
+
| width="25%" style="background: #e4e4e4; padding: 3px 5px; text-align:center;"|'''You get'''
 
|-
 
|-
| colspan="3" style="background: #DEE6C6; padding: 3px 5px; font-family: sans-serif; font-size: 0.9em; text-align:center;" | Applies anywhere
+
| colspan="3" style="background: #e4e4e4; padding: 3px 5px; font-family: sans-serif; font-size: 0.9em; text-align:center;" | Applies anywhere
 
|-
 
|-
 
|Italicise text
 
|Italicise text
Line 36: Line 37:
 
|valign="top"|Internal link<br />
 
|valign="top"|Internal link<br />
 
(within this wiki)
 
(within this wiki)
 +
<br />
 +
<br />
 +
Internal link<br />
 +
(to a category)
 +
<br />
 +
<br />
 +
Interwiki Link<br />
 +
(to partner wiki)
 
|valign="top"|
 
|valign="top"|
 
<tt><nowiki>[[name of page]]</nowiki></tt><br />
 
<tt><nowiki>[[name of page]]</nowiki></tt><br />
 
<tt><nowiki>[[name of page|display text]]</nowiki></tt><br />
 
<tt><nowiki>[[name of page|display text]]</nowiki></tt><br />
 +
<br><tt><nowiki>[[:Category:name of category]]</nowiki></tt><br />
 +
<br>
 +
<br>
 +
<tt><nowiki>[[w:name of article]]</nowiki></tt><br/>
 +
<tt><nowiki>[[wiki:name of article]]</nowiki></tt><br/>
 +
<tt><nowiki>[[wiki:name of article|display text]]</nowiki></tt>
 
|valign="top"|
 
|valign="top"|
 
[[name of page]]<br />
 
[[name of page]]<br />
[[name of page|display text]]<br /><br>
+
[[name of page|display text]]<br />
 +
<br>
 +
[[:Category:name of category]]
 +
<br/>
 +
<br/>
 +
<br/>
 +
[[w:name of article]]<br />
 +
[[wiki:name of article]]<br />
 +
[[wiki:name of article|display text]]<br />
 +
 
 +
 
 +
 
 
'''''Note: '''red links mean''<br>''the page doesn't exist yet''
 
'''''Note: '''red links mean''<br>''the page doesn't exist yet''
 
|-
 
|-
Line 89: Line 115:
 
<nowiki>without ''markup''</nowiki>
 
<nowiki>without ''markup''</nowiki>
 
|-
 
|-
| colspan="3" style="background: #DEE6C6; padding: 3px 5px; font-family: sans-serif; font-size: 0.9em; text-align:center;" | Applies only at the beginning of the line
+
| colspan="3" style="background: #e4e4e4; padding: 3px 5px; font-family: sans-serif; font-size: 0.9em; text-align:center;" | Applies only at the beginning of the line
 
|-
 
|-
 
|valign="top"|Headings<br />
 
|valign="top"|Headings<br />
 
of different sizes
 
of different sizes
 
|
 
|
<tt><nowiki>=level 1=</nowiki></tt><br />
+
<tt><nowiki>== level 1 ==</nowiki></tt><br />
<tt><nowiki>==level 2==</nowiki></tt><br />
+
<tt><nowiki>=== level 2 ===</nowiki></tt><br />
<tt><nowiki>===level 3===</nowiki></tt><br />
+
<tt><nowiki>==== level 3 ====</nowiki></tt><br />
<tt><nowiki>====level 4====</nowiki></tt>
+
<tt><nowiki>===== level 4 =====</nowiki></tt>
 
<br><br>'''''Tip:''' put <nowiki>__NOTOC__</nowiki> in an article''
 
<br><br>'''''Tip:''' put <nowiki>__NOTOC__</nowiki> in an article''
 
<br>''to remove its table-of-contents''
 
<br>''to remove its table-of-contents''
 
|valign="top"|
 
|valign="top"|
  
= Level 1 =
+
== Level 1 ==
===Level 2===
+
=== Level 2 ===
 
+
==== Level 3 ====
=== Level 3 ===
+
===== Level 4 =====
=====Level 4=====
 
 
|-
 
|-
 
|colspan="3" style="border-top:1px solid #d4d4d4;"|&nbsp;
 
|colspan="3" style="border-top:1px solid #d4d4d4;"|&nbsp;
Line 116: Line 141:
 
<tt>&#35;&#35; two point one</tt><br />
 
<tt>&#35;&#35; two point one</tt><br />
 
<tt>&#35; three</tt>
 
<tt>&#35; three</tt>
<br><br>'''''Note:''' read about more advanced<br>outline numbering concepts [[talk:document.php|here]]
 
 
|
 
|
  
 
== 1. one ==
 
== 1. one ==
===2. two===
+
=== 2. two ===
 
+
==== 2.1 two point one ====
=== 2.1 two point one ===
+
=== 3. three ===
===3. three===
 
 
|-
 
|-
 
|colspan="3" style="border-top:1px solid #d4d4d4;"|&nbsp;
 
|colspan="3" style="border-top:1px solid #d4d4d4;"|&nbsp;
Line 138: Line 161:
 
** two point one
 
** two point one
 
* three
 
* three
 +
|-
 +
|valign="top"|Menu
 +
|
 +
<pre style="border:none;background:none;">
 +
{{#menu:
 +
* one
 +
* two
 +
** two point one
 +
** two point two
 +
** two point three
 +
* three
 +
}}
 +
</pre>
 +
|
 +
{{#menu:
 +
* one
 +
* two
 +
** two point one
 +
** two point two
 +
** two point three
 +
* three
 +
}}
 +
|-
 +
|valign="top"|Tree
 +
|
 +
<pre style="border:none;background:none;">
 +
{{#tree:root=Example Tree|
 +
* one
 +
* two
 +
** two point one
 +
** two point two
 +
** two point three
 +
* three
 +
}}
 +
</pre>
 +
|
 +
{{#tree:root=Example Tree|
 +
* one
 +
* two
 +
** two point one
 +
** two point two
 +
** two point three
 +
* three
 +
}}
 
|-
 
|-
 
|colspan="3" style="border-top:1px solid #d4d4d4;"|&nbsp;
 
|colspan="3" style="border-top:1px solid #d4d4d4;"|&nbsp;
Line 155: Line 222:
 
|Thumbnail image
 
|Thumbnail image
 
|
 
|
<nowiki>[[Image:Ea-logo.png|thumb|Caption text]]</nowiki>
+
<nowiki>[[Image:Udegawa.jpg|thumb|Caption text]]</nowiki>
 
|
 
|
[[Image:Xmlwiki.png|thumb|Caption text]]
+
[[Image:Udegawa.jpg|thumb|Caption text]]
 
|}
 
|}
</div>
+
[[Category:MediaWiki]][[Category:Help]][[Category:Examples]]
 +
__NOTOC____NOEDITSECTION__

Latest revision as of 14:11, 10 August 2019

Wiki's use symbols such as asterisks, single-quotes, square-brackets and braces to represent formatting elements like making words into links to other sites or articles, or creating tables for layout and dividing the text into headings. This kind of text markup used in the MediaWiki (Wikipedia) project is called wikitext.

Below is a table of the most commonly used wikitext formatting, the middle column is what you type into the article in "edit mode" (after clicking the edit link at the top of the page), and the right-hand column shows what the result would be when viewing the article normally. For more detailed information about editing and wikitext, see Help:Wikitext.

Description You type You get
Applies anywhere
Italicise text

''italic''

italic

 
Bold text

'''bold'''

bold

 
Bold and italic

'''''bold & italic'''''

bold & italic

 
Internal link

(within this wiki)

Internal link
(to a category)

Interwiki Link
(to partner wiki)

[[name of page]]
[[name of page|display text]]

[[:Category:name of category]]


[[w:name of article]]
[[wiki:name of article]]
[[wiki:name of article|display text]]

name of page
display text

Category:name of category


w:name of article
wiki:name of article
display text


Note: red links mean
the page doesn't exist yet

 
External link

(to other websites)

[http://www.example.com]
[http://www.example.com display text]
http://www.example.com
[mailto:bob@yahoo.com Bob's email]

[1]
display text
http://www.example.com
Bob's email

 
Redirect

#redirect [[Target page]]

1. redirect Target page

 
Signature

~~~
~~~~
~~~~~

J.Doe
J.Doe 19:35, 28 March 2024
19:35, 28 March 2024

 
Escape wiki markup

with ''markup''
<nowiki>without ''markup''</nowiki>

with markup
without ''markup''

Applies only at the beginning of the line
Headings

of different sizes

== level 1 ==
=== level 2 ===
==== level 3 ====
===== level 4 =====

Tip: put __NOTOC__ in an article
to remove its table-of-contents

Level 1

Level 2

Level 3

Level 4
 
Outline Numbered
Headings

# one
# two
## two point one
# three

1. one

2. two

2.1 two point one

3. three

 
Bullet list

* one
* two
** two point one
* three

  • one
  • two
    • two point one
  • three
Menu
{{#menu:
* one
* two
** two point one
** two point two
** two point three
* three
}}
  • one
  • two
    • two point one
    • two point two
    • two point three
  • three

Tree
{{#tree:root=Example Tree|
* one
* two
** two point one
** two point two
** two point three
* three
}}
 
Definition list

;Definition
:item 1
:item 2

Definition
item 1
item 2
 
Thumbnail image

[[Image:Udegawa.jpg|thumb|Caption text]]

Caption text