Jump to content

Project:Wiki Markup Code: Difference between revisions

From Kanzenshuu Dragon Ball Wiki
Hujio (talk | contribs)
Hujio (talk | contribs)
Line 35: Line 35:
!align=left|Formatting!!align=left|Input!!align=left|Output
!align=left|Formatting!!align=left|Input!!align=left|Output
|-
|-
|valign=top|Internal link||<nowiki>[[Page title|Custom link title]]</nowiki><br /><nowiki>[[Page title]]</nowiki>||[[Page title|Custom link title]]<br />[[Page title]]
|valign=top|Internal link||<nowiki>[[Page title|Custom link title]]</nowiki><br /><nowiki>[[Page title]]</nowiki>||[[Main Page|Custom link title]]<br />[[Main Page|Page title]]
|-
|-
|valign=top|External link||<nowiki>[http://www.example.org Link title]</nowiki><br /><nowiki>[http://www.example.org]</nowiki><br /><nowiki>http://www.example.org</nowiki>||[http://www.example.org Link label]<br />[http://www.example.org]<br />http://www.example.org
|valign=top|External link||<nowiki>[http://www.example.org Link title]</nowiki><br /><nowiki>[http://www.example.org]</nowiki><br /><nowiki>http://www.example.org</nowiki>||[http://www.example.org Link label]<br />[http://www.example.org]<br />http://www.example.org

Revision as of 14:08, 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

In wiki markup code a user can create internal links by putting double square brackets around text designating the title of the page they want to link to. Optionally, users can use a vertical bar (|) to customize the link title. Users can also link to websites outside of Kanzenshuu.

  • Internally, the first letter of the target page is automatically capitalized and spaces are represented as underscores (typing an underscore in the link has the same effect as typing a space, but is not recommended).
  • A green link is a page that doesn't exist yet; it can be created by clicking on the link.
  • A link to its own page will appear only as bold text (i.e. see the link to "Wiki Markup Code" at the bottom of this page).
Formatting Input Output
Internal link [[Page title|Custom link title]]
[[Page title]]
Custom link title
Page title
External link [http://www.example.org Link title]
[http://www.example.org]
http://www.example.org
Link label
[1]
http://www.example.org
External link
without arrow
<span class="plainlinks">[http://www.example.org Link title]</span> Link title

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
  • List item
    • List item
      • List item
Ordered list # List item
## List item
### List item
  1. List item
    1. List item
      1. 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
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
Indented text
Indented text