Wiki Markup Reference: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk
imported>Tlosk
Line 130: Line 130:
|-
|-
|
|
<nowiki>{|align=right</nowiki><br>
<nowiki>{|align=right cellpadding=10</nowiki><br>
<nowiki>| __TOC__</nowiki><br>
<nowiki>| __TOC__</nowiki><br>
<nowiki>|}</nowiki>
<nowiki>|}</nowiki>

Revision as of 23:15, 12 December 2008

If you find new markup that you need to use, please add it for future reference.

Text

Bold Text

Italics Text

Bold Italics Text

Big Text

Small Text

Stricken Text

Underlined Text

SuperScript

SubScript

small caps

Red Text

Green Text

Links

External Links

[1]

Turbine

Internal Links

Armor

Link to Armor

Category:Armor

What Links Here

Lists

Unordered Lists

  • Item A
  • Item B
  • Item C

Numbered Lists

  1. First Item
  2. Second Item
  3. Third Item

Nested Lists

Putting an unordered list within a numbered list:

  1. Numbered List 1
  2. Numbered List 2
    • Unordered List A
    • Unordered List B
  3. Numbered List 3

Indentation, Alignment, and Spacing

Centered text
Single Indentation
Double Indentation
Triple Indentation
Definition List Term
Definition List Definition

Special Wiki Code

Signing Comments

It's helpful to sign comments made on disscussion/talk pages so later on we know who left the comment and when it was made. Clicking the Signature button on the edit toolbar will automatically insert wiki code that will be translated into a link to your user page and the current time when you click the Save Page button. Alternatively you can insert the code yourself:

--~~~~

What Links Here

You can create a hard link to the Whatlinkshere function. Use either a particular article name, or you can use a variable. The primary benefit to using a whatlinkshere function as opposed to just listing items, is in the future when more items are added to the wiki, a whatlinkshere will automatically reflect the new additions. A static list will depend on being correctly updated, something that may or may not happen.

[[:Special:Whatlinkshere/Pack (White)|Vendors that sell White Packs.]]

[[:Special:Whatlinkshere/{{PAGENAME}}|Variable]]

Search

You can create a wiki link to a search for a particular term or variable. For example to create a link that searches for the term Geomancy:

[[:Special:Search/Geomancy|Geomancy]]

For more than one word, separate terms with +, such as:

[[:Special:Search/Fire+Cold]]

You can also use variables such as:

[[:Special:Search/{{PAGENAME}}|Article]]

Note that a search term that exactly matches the name of an existing article will resolve to that article, not a search.

Magic Words

Word Description
__NOTOC__ Hides ToC on the current page.
__FORCETOC__ Forces the table of contents to appear.
__TOC__ Places a ToC here (overriding any __NOTOC__). Multiple ToCs are no longer supported. If __TOC__ is used multiple times, only the first occurrence causes a ToC to appear.

{|align=right cellpadding=10
| __TOC__
|}

Place the table of contents into a floating table on the right side, in other words the table of contents appears the same, just to the right side with text flowing normally alongside on the left.
__NOEDITSECTION__ Hides the edit links beside headings. Also, will no longer automatically edit only one section at a time when double- or right-clicking a heading (if you have that feature enabled in your preferences)
__NEWSECTIONLINK__ [MW1.7+] Gives a "+"-link next to the edit-tab to make a new section on a non-talk page (post-a-comment feature).
__NOCONTENTCONVERT__
__NOCC__
Don't perform the content language conversion (character and phase) in article display; for example, Chinese zh with zh_cn, zh_tw, zh_sg, zh_hk.
__NOGALLERY__ [MW1.7+] This magic word allows images in category pages to be displayed as inline links instead of gallery.
__NOTITLECONVERT__
__NOTC__
Like __NOCC__ but affecting article title only.
__END__ Allows for trailing whitespace to be included in the page save (does not seem to work anymore).
__START__ This magic word has no effect but an ID in MagicWord.php (MAG_START).
__HIDDENCAT__ When placed anywhere on a category page, this magic word causes that category not to appear in the horizontal box near the bottom of every member page. See Help:Category#Hidden_categories for further detail.

Variables

{{PAGENAME}} - Name of the article where the variable is used.

{{??}} - ??