Difference between revisions of "Introduction to MediaWiki syntax"

From NesevoWiki
Jump to navigationJump to search
(New page: == Headings == <nowiki>== Level 1 ==</nowiki><br/> <nowiki>=== Level 2 ===</nowiki><br/> <nowiki>==== Level 3 ====</nowiki><br/> <nowiki>===== Level 4 =====</nowiki> == Basic Formatting=...)
 
Line 10: Line 10:
 
=== Bold and italic ===
 
=== Bold and italic ===
  
<nowiki>''italic text''</nowiki>  -->   ''italic text''
+
<nowiki>''italic text''</nowiki>  &rarr;   ''italic text''
  
<nowiki>'''bold text'''</nowiki>  -->   '''bold text'''
+
<nowiki>'''bold text'''</nowiki>  &rarr;   '''bold text'''
  
<nowiki>'''''bold and italic text'''''</nowiki>  -->   '''''bold and italic text'''''
+
<nowiki>'''''bold and italic text'''''</nowiki>  &rarr;   '''''bold and italic text'''''
  
 
=== monospaced type===
 
=== monospaced type===
Line 27: Line 27:
 
=== misc ===
 
=== misc ===
  
<nowiki><br/></nowiki> --> forced linebreak
+
<nowiki><br/></nowiki> &rarr; forced linebreak
  
<nowiki><nowiki></nowiki></nowiki>  -->   Ignoring the WikiEngine
+
<nowiki><nowiki></nowiki></nowiki>  &rarr;   Ignoring the WikiEngine
  
 
== Listings ==
 
== Listings ==
Line 69: Line 69:
 
=== internal links ===
 
=== internal links ===
  
<nowiki>[[internal link]]</nowiki>  -->   [[internal link]]<br/>
+
<nowiki>[[internal link]]</nowiki>  &rarr;   [[internal link]]<br/>
<nowiki>[[internal link | This is an internal link]]</nowiki>  -->   [[internal link | This is an internal link]]
+
<nowiki>[[internal link | This is an internal link]]</nowiki>  &rarr;   [[internal link | This is an internal link]]
  
 
=== external links ===
 
=== external links ===
  
<nowiki>http://www.externallink.com/</nowiki>  -->   http://www.externallink.com/ <br/>
+
<nowiki>http://www.externallink.com/</nowiki>  &rarr;   http://www.externallink.com/ <br/>
<nowiki>[http://www.externallink.com/]</nowiki>  -->   [http://www.externallink.com/] <br/>
+
<nowiki>[http://www.externallink.com/]</nowiki>  &rarr;   [http://www.externallink.com/] <br/>
<nowiki>[http://www.externallink.com/ This is an external link]</nowiki>  -->   [http://www.externallink.com/ This is an external link]
+
<nowiki>[http://www.externallink.com/ This is an external link]</nowiki>  &rarr;   [http://www.externallink.com/ This is an external link]
  
 
=== referencing uploaded files ===
 
=== referencing uploaded files ===
Line 83: Line 83:
 
|[[Image:Beispiel-pdf.pdf|example PDF]]
 
|[[Image:Beispiel-pdf.pdf|example PDF]]
 
|-
 
|-
|<nowiki>[[Image:IPTLogo.png|IPTrading Logo]]</nowiki>
+
|<nowiki>[[Image:nesevo_wiki_logo.png|NesevoWiki Logo]]</nowiki>
|[[Image:IPTLogo.png|IPTrading Logo]]
+
|[[Image:nesevo_wiki_logo.png|NesevoWiki Logo]]
 
|-
 
|-
|<nowiki>[[Image:IPTLogo.png|framed|IPTrading Logo]]</nowiki>
+
|<nowiki>[[Image:nesevo_wiki_logo.png|framed|NesevoWiki Logo]]</nowiki>
|[[Image:IPTLogo.png|framed|IPTrading Logo]]
+
|[[Image:nesevo_wiki_logo.png|framed|NesevoWiki Logo]]
 
|-
 
|-
|<nowiki>[[Image:IPTLogo.png|thumb|100px|IPTrading Logo]]</nowiki>
+
|<nowiki>[[Image:nesevo_wiki_logo.png|thumb|100px|NesevoWiki Logo]]</nowiki>
|[[Image:IPTLogo.png|thumb|100px|IPTrading Logo]]
+
|[[Image:nesevo_wiki_logo.png|thumb|100px|NesevoWiki Logo]]
 
|}
 
|}
  

Revision as of 14:26, 16 February 2008

Headings

== Level 1 ==
=== Level 2 ===
==== Level 3 ====
===== Level 4 =====

Basic Formatting

Bold and italic

''italic text'' → italic text

'''bold text''' → bold text

'''''bold and italic text''''' → bold and italic text

monospaced type

<code>monospaced type</code> is rendered into
monospaced type

Or: framed monospaced type through leading space:

monospaced type

misc

<br/> → forced linebreak

<nowiki></nowiki> → Ignoring the WikiEngine

Listings

unnumbered

* Topic 1
** Topic 1.1
* Topic 2
** Topic 2.1
** Topic 2.2

is rendered into

  • Topic 1
    • Topic 1.1
  • Topic 2
    • Topic 2.1
    • Topic 2.2

numbered

# Topic 1
## Topic 1.1
# Topic 2
## Topic 2.1
## Topic 2.2

is rendered into

  1. Topic 1
    1. Topic 1.1
  2. Topic 2
    1. Topic 2.1
    2. Topic 2.2

Link

internal links

[[internal link]] → internal link
[[internal link | This is an internal link]] → This is an internal link

external links

http://www.externallink.com/ → http://www.externallink.com/
[http://www.externallink.com/] → [1]
[http://www.externallink.com/ This is an external link] → This is an external link

referencing uploaded files

[[Image:Beispiel-pdf.pdf|example PDF]] File:Beispiel-pdf.pdf
[[Image:nesevo_wiki_logo.png|NesevoWiki Logo]] NesevoWiki Logo
[[Image:nesevo_wiki_logo.png|framed|NesevoWiki Logo]]
NesevoWiki Logo
[[Image:nesevo_wiki_logo.png|thumb|100px|NesevoWiki Logo]]
NesevoWiki Logo

Tables

  • Using html formatting:
{| cellpadding="2" cellspacing="3" border="1"

|cell 1
|cell 2
|-
|cell 3
|cell 4
|-
|cell 5
|cell 6
|}

is rendered into:
cell 1 cell 2
cell 3 cell 4
cell 5 cell 6
{| {{Prettytable}}

|cell 1
|cell 2
|-
|cell 3
|cell 4
|-
|cell 5
|cell 6
|}

is rendered into:
cell 1 cell 2
cell 3 cell 4
cell 5 cell 6