Common Wiki Markup

From MusicWiki Detroit
Jump to: navigation, search
Wiki markup, also known as wikitext or wikicode, consists of the syntax and keywords used by MusicWiki Detroit to format a page.

It is a simplified/alternative/intermediate to HTML. Its ultimate purpose is to be converted by Wiki software into HTML, which, in turn, is served to web browsers. It was originally created in 1995 to format pages on the original wiki site, WikiWikiWeb. MediaWiki supports many common HTML tags.

Basic Wiki code

Description

You type

You get

Common Wiki Code – applies anywhere

Editor Comments in Code

Everything between
<!-- ***** -->
Does not show on page, only in edit mode.
Used for Tips, Tricks & advice in Page templates.
Brackets are use to denote categories

[[***]] type in [[Category:*****|Jazz Bands]]

It takes you to Jazz Bands

Templates are premade pages you can put in a page you're creating

Using {{Template:TemplateName}} will place contents in page
Example: is the bluebox template with text option enabled.<br>
{{bluebox|TXT='''This is a Stub Page, Content needs to be added.'''}}
This is a Stub Page, Content needs to be added.

Table of Contents
Automatically generated with 4 or more sections

__ToC__ places Table of Contents where you want on page
__NoToC__ turns off Table of Contents on page


Section formatting

Section formatting – only at the beginning of the line. Skip Level 1, it is page name level

Headings of different levels


== Level 2 == 

=== Level 3 === 

==== Level 4 ==== 

===== Level 5 ===== 

====== Level 6 ====== 



An article with 4 or more headings automatically creates a Table of contents (TOC)|table of contents.

Level 2


Level 3


Level 4


Level 5


Level 6

Horizontal rule


Text before
----

Text after

Text before


Text after

Bullet list



* Start each line
* with an asterisk (*).
** More asterisks give deeper
*** and deeper levels.
* Line breaks <br />don't break levels.
*** But jumping levels creates empty space.
Any other start ends the list.

* combine bullet list
** with definition 
::- definition
** creates empty space

* combine bullet list
** with definition 
*:- definition
** without empty spaces

*bullet list
:- definition
:* sublist that doesn't create empty
:* spaces after definition


  • Start each line
  • with an asterisk (*).
    • More asterisks give deeper
      • and deeper levels.
  • Line breaks
    don't break levels.
      • But jumping levels creates empty space.

Any other start ends the list.

  • combine bullet list
    • with definition
- definition
    • creates empty space
  • combine bullet list
    • with definition
    - definition
    • without empty spaces
  • bullet list
- definition
  • sublist that doesn't create empty
  • spaces after definition

Numbered list


# Start each line
# with a number sign (#).
## More number signs give deeper
### and deeper
### levels.
# Line breaks <br> don't break levels.
### But jumping levels creates empty space.
# Blank lines


# end the list and start another.
Any other start also
ends the list.


  1. Start each line
  2. with a number sign (#).
    1. More number signs give deeper
      1. and deeper
      2. levels.
  3. Line breaks
    don't break levels.
      1. But jumping levels creates empty space.
  4. Blank lines


  1. end the list and start another.

Any other start also ends the list.

Definition list



;item 1
: definition 1
;item 2
: definition 2-1
: definition 2-2


item 1
definition 1
item 2
definition 2-1
definition 2-2

Indent text


: Single indent
:: Double indent
::::: Multiple indent


Note:This workaround may harm accessibility.


Single indent
Double indent
Multiple indent

Mixture of different types of list



# one
# two
#* two point one
#* two point two
# three
#; three item one
#: three def one
# four
#: four def one
#: this looks like a continuation
#: and is often used
#: instead <br />of <nowiki><br /></nowiki>
# five
## five sub 1
### five sub 1 sub 1
## five sub 2


Note: The usage of #: and *: for breaking a line within an item may also harm accessibility.


  1. one
  2. two
    • two point one
    • two point two
  3. three
    three item one
    three def one
  4. four
    four def one
    this looks like a continuation
    and is often used
    instead
    of <br />
  5. five
    1. five sub 1
      1. five sub 1 sub 1
    2. five sub 2

Preformatted text



Start each line with a space.
 Text is '''preformatted''' and
 ''markups'' '''''can''''' be done.


Note:This way of preformatting only applies to section formatting. Character formatting markups are still effective.


Start each line with a space.

Text is preformatted and
markups can be done.


Formatting Text

Description

You type

You get

Character (inline) formatting – applies anywhere

Italic text

''italic''

italic

Bold text

'''bold'''

bold

Bold and italic

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

bold & italic

Strike text

<strike> 
strike text </strike>

strike text

Escape wiki markup

<nowiki>
no ''markup''></nowiki>

no''markup''

Section formatting – only at the beginning of the line. Skip Level 1, it is page name level

Headings of different levels


== Level 2 == 

=== Level 3 === 

==== Level 4 ==== 

===== Level 5 ===== 

====== Level 6 ====== 



An article with 4 or more headings automatically creates a Table of contents (TOC)|table of contents.

Level 2


Level 3


Level 4


Level 5


Level 6

Horizontal rule


Text before
----

Text after

Text before


Text after

Bullet list



* Start each line
* with an asterisk (*).
** More asterisks give deeper
*** and deeper levels.
* Line breaks <br />don't break levels.
*** But jumping levels creates empty space.
Any other start ends the list.

* combine bullet list
** with definition 
::- definition
** creates empty space

* combine bullet list
** with definition 
*:- definition
** without empty spaces

*bullet list
:- definition
:* sublist that doesn't create empty
:* spaces after definition


  • Start each line
  • with an asterisk (*).
    • More asterisks give deeper
      • and deeper levels.
  • Line breaks
    don't break levels.
      • But jumping levels creates empty space.

Any other start ends the list.

  • combine bullet list
    • with definition
- definition
    • creates empty space
  • combine bullet list
    • with definition
    - definition
    • without empty spaces
  • bullet list
- definition
  • sublist that doesn't create empty
  • spaces after definition

Numbered list


# Start each line
# with a number sign (#).
## More number signs give deeper
### and deeper
### levels.
# Line breaks <br> don't break levels.
### But jumping levels creates empty space.
# Blank lines


# end the list and start another.
Any other start also
ends the list.


  1. Start each line
  2. with a number sign (#).
    1. More number signs give deeper
      1. and deeper
      2. levels.
  3. Line breaks
    don't break levels.
      1. But jumping levels creates empty space.
  4. Blank lines


  1. end the list and start another.

Any other start also ends the list.

Definition list



;item 1
: definition 1
;item 2
: definition 2-1
: definition 2-2


item 1
definition 1
item 2
definition 2-1
definition 2-2

Indent text


: Single indent
:: Double indent
::::: Multiple indent


Note:This workaround may harm accessibility.


Single indent
Double indent
Multiple indent

Mixture of different types of list



# one
# two
#* two point one
#* two point two
# three
#; three item one
#: three def one
# four
#: four def one
#: this looks like a continuation
#: and is often used
#: instead <br />of <nowiki><br /></nowiki>
# five
## five sub 1
### five sub 1 sub 1
## five sub 2


Note: The usage of #: and *: for breaking a line within an item may also harm accessibility.


  1. one
  2. two
    • two point one
    • two point two
  3. three
    three item one
    three def one
  4. four
    four def one
    this looks like a continuation
    and is often used
    instead
    of <br />
  5. five
    1. five sub 1
      1. five sub 1 sub 1
    2. five sub 2