Project:Wiki Markup Code: Difference between revisions
| Line 1: | Line 1: | ||
Wiki markup code is a lightweight markup language used to write pages in wiki websites, such as [[Main Page|Kanzenshuu]], and is a simplified alternative/intermediate to [http://en.wikipedia.org/wiki/HTML HTML], allowing those with limited HTML knowledge to create, edit, and format pages. Its ultimate purpose is to be converted by wiki software into HTML, which in turn is served to web browsers. | |||
==Formatting== | ==Formatting== | ||
There is a range of text formatting options available in | There is a range of text formatting options available in wiki markup. Some of these are based on HTML code. Some types of HTML code can be used, but wiki markup is preferred when at all possible. | ||
{| class="wikitable" style="min-width:50%" | {| class="wikitable" style="min-width:50%" | ||
| Line 11: | Line 13: | ||
|Bold & italic||<nowiki>'''''Bold & italic text'''''</nowiki>||'''''Bold & italic text''''' | |Bold & italic||<nowiki>'''''Bold & italic text'''''</nowiki>||'''''Bold & italic text''''' | ||
|- | |- | ||
|Color||<nowiki><span style="color:#CC0000">Red text</span></nowiki>||<span style=" | |Color||<nowiki>{{color|CC0000|Red text}}</nowiki>||<span style="color:#CC0000">Red text</span> | ||
|- | |||
|Small capital letters||<nowiki>{{smallcaps|Small caps text}}</nowiki>||<span style="font-variant:small-caps;">Small caps text</span> | |||
|- | |||
|Code||<nowiki><code>Coded text</code></nowiki>||<code>Coded text</code> | |||
|- | |||
|Small||<nowiki><small>Small text</small></nowiki>||<small>Small text</small> | |||
|- | |||
|Big||<nowiki><big>Big text</big></nowiki>||<big>Big text</big> | |||
|- | |||
|Hover text||<nowiki>{{tt|Text|Title Text}}</nowiki>||{{tt|Text|Title Text}} | |||
|} | |} | ||
Revision as of 13:47, 16 December 2013
Wiki markup code is a lightweight markup language used to write pages in wiki websites, such as Kanzenshuu, and is a simplified alternative/intermediate to HTML, allowing those with limited HTML knowledge to create, edit, and format pages. Its ultimate purpose is to be converted by wiki software into HTML, which in turn is served to web browsers.
Formatting
There is a range of text formatting options available in wiki markup. Some of these are based on HTML code. Some types of HTML code can be used, but wiki markup is preferred when at all possible.
| Formatting | Input | Output |
|---|---|---|
| Italic | ''Italic text'' | Italic text |
| Bold | '''Bold text''' | Bold text |
| Bold & italic | '''''Bold & italic text''''' | Bold & italic text |
| Color | {{color|CC0000|Red text}} | Red text |
| Small capital letters | {{smallcaps|Small caps text}} | Small caps text |
| Code | <code>Coded text</code> | Coded text
|
| Small | <small>Small text</small> | Small text |
| Big | <big>Big text</big> | Big text |
| Hover text | {{tt|Text|Title Text}} | Text |
Links
Linking helps connect various pages on the wiki together. Users can also link to websites outside of Kanzenshuu.
| Formatting | Input | Output |
|---|---|---|
| Internal link | [[Page title|Link label]] [[Page title]] |
Link label Page title |
| External link | [http://www.example.org Link label] [http://www.example.org] http://www.example.org |
Link label [1] http://www.example.org |
Section Headings
The = through ====== markup are headings for the sections with which they are associated.
- A single = is styled as the page title and should not be used within a page or article.
- Headings are styled through CSS and add an [edit] link.
| Formatting | Input | Output |
|---|---|---|
| 2nd level heading | ==Heading text== | Heading text |
| 3rd level heading | ===Heading text=== | Heading text |
| 4th level heading | ====Heading text==== | Heading text |
| 5th level heading | =====Heading text===== | Heading text |
| 6th level heading | ======Heading text====== | Heading text |
Lists
Do not leave blank lines between items in a list unless there is a reason to do so, since this causes the MediaWiki software to interpret each item as beginning a new list.
| Formatting | Input | Output |
|---|---|---|
| Unordered list | * List item ** List item *** List item |
|
| Ordered list | # List item ## List item ### List item |
|
To list terms and definitions, start a new line with a semicolon (;) followed by the term. Then, type a colon (:) followed by a definition.
Definition lists consist of group names corresponding to values. Group names (terms) are in bold. Values (definitions) are indented. Each group must include one or more definitions. For a single or first value, the : can be placed on the same line after ; – but subsequent values must be placed on separate lines.
Do not use a semicolon (;) simply to bold a line without defining a value using a colon (:).
| Formatting | Input | Output |
|---|---|---|
| Definition list | ; Term : Definition1 : Definition2 |
|
Indenting
Indentation is most commonly used on talk pages.
| Formatting | Input | Output |
|---|---|---|
| Indent text | Normal text : Indented text :: Indented text |
Normal text
|
| |||||||||||