Help:Markup

From WikiMSK

To format pages you have two editing options - "Edit" and "Edit source". You can see the two options in the drop down menu when you click "Editing and tools" at the top of the article.

  • By clicking "edit" it will load the visual editor, which is a "visual" way of editing articles. This is the most user friendly method. To learn how to use Visual Editor please click here.
  • By clicking "edit source" it will load the markup editor. Markup is something that has a learning curve but it gives you more control. This article covers the basics of the markup editor. For more details click here.

Line Breaks

A line break creates the white space between two paragraphs. To create a line break, press Enter/Return twice. A single press of Enter/Return will move the cursor to a new line in the editor, but it will not create a line break.

This... ...produces:
Hello.
How are you?

I'm fine.
Hello. How are you?

I'm fine.

Text Formatting

Italics
For italics use two apostrophes ('') on either side, or click the I button after selecting the text:
''italicized text'' produces italicized text
Bold
For bold text use three apostrophes (''') on either side or click the B button after selecting the text:
'''bold text''' produces bold text
Small Text
For small text surround the text with <small> and </small> or click the Small button after selecitng the text:
<small>Small Text</small> produces Small Text
Big Text
For small text surround the text with <small> and </small> or click the Big button after selecitng the text:
<big>Small Text</big> produces Big Text

Section Headings

Create sections headings with equals signs (=) on both sides of the text:

== Level 2 Heading ==
=== Level 3 Heading ===
==== Level 4 Heading ====
etc.

Don't use level 1 headings; that's for the page title!

Note: A Table of Contents will automatically be created after a set number of headings are used.

Indents

Use colons (:) to indent:

: indent once produces:

indent once

:: indent twice produces:

indent twice

Note: Use indents when replying to someone on discussion pages. See Help:Discussion.

Lists

Bulleted Lists

Create bulleted lists with asterisks (*):

This... ...produces:
* Item 1
* Item 2
** Item 2a
** Item 2b
* Item 3
  • Item 1
  • Item 2
    • Item 2a
    • Item 2b
  • Item 3

Numbered Lists

Create numbered lists with number signs (#):

This... ...produces:
# Item 1
# Item 2
## Item 2a
## Item 2b
# Item 3
  1. Item 1
  2. Item 2
    1. Item 2a
    2. Item 2b
  3. Item 3

Mixed Lists

You can mix and match bulleted and numbered lists:

This... ...produces:
# Item 1
# Item 2
#* Item 2a
#* Item 2b
# Item 3
  1. Item 1
  2. Item 2
    • Item 2a
    • Item 2b
  3. Item 3

Description Lists

A description list is a list of bold terms, each followed by one or more lines of indented normal text. To create a description list, place each term on a new line and precede it with a semicolon (;). The following description is then preceded with a colon (:). Use multiple lines if desired. Do not use a semicolon simply to make something bold!

This... ...produces:
;Item 1
: description 1a
: description 1b
;Item 2
: description 2
Item 1
description 1a
description 1b
Item 2
description 2

Links & URLs

Internal Links

An internal link, or wikilink, is a direct link to another article on WikiMSK. Just use double brackets ([[ and ]]) around the article name. Remember, case matters with article titles.

Basic Wikilink
[[Lateral Elbow Tendinoapthy]] produces Lateral Elbow Tendinopathy, which links to the "Lateral Elbow Tendinopathy" article.
Blend Link
Note that you can append to the article name if needed for grammatical purposes.
[[Example]]s produces Examples, which links to the "Example" article.
Renamed Link
More extensive changes can be made with a vertical bar (|) followed by alternate text.
[[Gold|a valuable metal]] produces a valuable metal, which links to the "Gold" article.
Link to a section on a page
Link to a specific section on a page by including a number sign (#) followed by the section name.
[[Lateral Elbow Tendinopathy#Treatment]] produces Lateral Elbow Tendinopathy#Treatment, which links to the "Treatment" section in the "Lateral Elbow Tendinopathy" article.
Link to pages on other namespaces
The methods above assume you're linking to simple articles (on the "main" namespace). If you want to link to a page on another namespace, begin with a colon (:), the namespace, and then another colon.
[[:Help:Contents]] produces Help:Contents, which links to the "Contents" page on the Help namespace.
[[:User:Bob|Bob]] produces Bob, which links to FBstj's User page.
[[:File:Example.jpg|Example]] produces Example, which links to the "Roshar.jpg" File page.
[[:Category:Tendinopathies]] produces Category:Tendinopathies, which links to the "Tendinopathies" Category page.

External Links

External links point to somewhere outside of this website.

Unnamed External Link
Use single brackets ([ and ]) to produce an unnamed external URL.
[http://www.google.com] produces [1].
Named External Link
Follow the URL with a space and some other text to rename the link. This is the preferred method.
[http://www.google.com Google] produces Google.
Wikipedia Link
Use double bracket followed by the article name, then how you wish for the link to appear.
[[wikipedia:Google|Google]] produces Google.
Bare External Link
Simply type the URL for a bare external link. This method should be avoided.
http://www.google.com produces http://www.google.com.

Embedding Videos and Documents

Embed YouTube videos

<youtube>video ID here</youtube>

i.e. if the video's URL is https://www.youtube.com/watch?v=9oiEofZCJQo, then the embed code would be: <youtube>9oiEofZCJQo</youtube>

You shouldn't have to adjust the width and height, but if you wanted to:

<youtube width="200" height="120">9oiEofZCJQo</youtube>

Embed PDF files

<pdf>File:Example.pdf</pdf>

Optional width and height parameters.

<pdf width="500" height="300">File:Example.pdf</pdf>

Scroll to page 10 automatically

<pdf page="10">File:Example.pdf</pdf>

References & Citations

See Help:References for more on how to insert references and citations into an article.

Images

See Help:Images for more on how to insert and format images.

Templates

Templates can be used for some more complicated formatting tricks. Make sure to see Help:Templates for more on these.

Other Tricks

Username and timestamp
Use four tildes (~~~~) to automatically leave your username and a timestamp. Use this on article discussion pages.
Sortable table

add class sortable https://meta.m.wikimedia.org/wiki/Help:Sorting

Ignore Markup

<nowiki> Tag
Surround the text with <nowiki> and </nowiki> to ignore markup.
<small>''small, italic text''</small> produces small, italic text.
<nowiki><small>''small, italic text''</small></nowiki> produces <small>''small, italic text''</small>.
<pre> Tag
Alternatively, use <pre> and </pre>.
It behaves the same as <nowiki>, but also allows mono-spaced font and preserves spacing.