Wikia

Memory Alpha

Help:Wiki markup

Discuss0
37,577pages on
this wiki
Revision as of 14:11, February 6, 2012 by Sulfur (Talk | contribs)

Help icon  Contents → Wiki markup

This page is a tutorial for learning to work with the essential rules of wiki-formatted text, or "wikitext". Wikitext is designed to be as simple as possible so that an article may be quickly typed and styled without having to take a break to type out long HTML codes. The goal is to make it as easy as possible to channel your thoughts into writing the perfect article (or even a not-so-perfect article!).

Text formatting

Creating italicized or bold text is the simplest rule – simply use the apostrophe character in groups of two or three to create the style. (Be sure to use the "straight" apostrophe and not the curved "smart quote" characters used in some text editors and word processors.)


What you type What you see
''italicized text'' italicized text
'''bold text''' bold text
'''''italicized and bold text''''' italicized and bold text


To create a tabbed list or a block of text using a monospace font, start the line with a space. (Be sure not to make the line too long, or it will stretch the page horizontally!) Text can also be indented in blockquotes using the colon character.


What you type What you see

 Preformatted text

Preformatted text
:Indented text
Indented text

Lists

Both unordered and numbered lists are simple to create as well: simply use the asterisk or hash characters at the beginning of a line to create the entry. To create nested lists, simply add an extra asterisk or hash to the front of the line. You can even mix and match the kinds of list in a single group!

To create a definition, start the line with a semicolon, and follow the term to be defined with a colon, then the definition. This will bold the term, and indent the definition on the following line.

What you type What you see
* Item One
* Item Two
  • Item One
  • Item Two
# Item One
# Item Two
  1. Item One
  2. Item Two
* Item One
** Item Two
  • Item One
    • Item Two
* Item One
*# Item Two
  • Item One
    1. Item Two
; term : definition
term 
definition

Links and URLs

In a wiki, it's important to help build the web by creating links to other articles in every appropriate context. Use the following techniques to create "free links" to other Memory Alpha articles:

What you type What you see
[[Memory Alpha]] Memory Alpha
[[USS Enterprise|USS ''Enterprise'']] USS Enterprise
[[USS Enterprise (NCC-1701)#Crew|USS ''Enterprise'' crew]] USS Enterprise crew
[[This article doesn't exist]] This article doesn't exist
[[Memory Alpha:Policies and guidelines]] Memory Alpha:Policies and guidelines
[[Memory Alpha:Policies and guidelines|]] Policies and guidelines


You can also make external links to other websites using the following formatting rules:


What you type What you see
[[Wikipedia:Star Trek]] Wikipedia:Star Trek
[[Wikipedia:Star Trek|]] Star Trek
[[Wikipedia:Star Trek|''Star Trek'']] Star Trek
http://www.memory-alpha.org/ http://www.memory-alpha.org/
[http://www.memory-alpha.org/] [1]
[http://www.memory-alpha.org/ Memory Alpha] Memory Alpha

See also

Sections

If an article is long enough, you can divide the page into different sections. Memory Alpha will automatically generate a table of contents based on the content for all articles with more than three sections.

You can also create a horizontal divider by using four dashes in a row.

What you type What you see
 == Header Two ==  Header Two      
 === Header Three ===  Header Three
 ==== Header Four ====  Header Four
 ===== Header Five =====  Header Five
 ====== Header Six ======   Header Six
 ----

Images and other media

See: Help: Image markup

Tables

See: Help: Table markup

Mathematical formulae

See: Help: Math markup

Variables

The MediaWiki software has a number of built-in variables for common elements that may change depending on the date.

Code Effect
{{CURRENTMONTH}} 12
{{CURRENTMONTHNAME}} December
{{CURRENTMONTHNAMEGEN}} December
{{CURRENTDAY}} 18
{{CURRENTDAYNAME}} Thursday
{{CURRENTYEAR}} 2014
{{CURRENTTIMESTAMP}} 20141218181951
{{NUMBEROFARTICLES}} 37,577

NUMBEROFARTICLES is the number of pages in the main namespace which contain a link and are not a redirect (i.e. number of articles, stubs containing a link, and disambiguation pages).

See also

Suppressing markup

It's also possible to tell MediaWiki to ignore any of the above rules using a simple tag:

What you type What you see
<nowiki>'''text here'''</nowiki> '''text here'''

Around Wikia's network

Random Wiki
http://en.memory-alpha.org/wiki/Help:Wiki_markup?oldid=1366270
en.memory-alpha.org
crawl=CC-MAIN-2014-52
85688
application/http; msgtype=response
sha1:PCLX4G3N6ZNYPEA4I2FPJIS2W4P6CKDU
<urn:uuid:62945247-e5e1-4d96-889d-6594d98016b1>
2014-12-18T18:19:51Z
23.235.46.131
sha1:6ROUZXSKTKAFROVATMNF7TPIKQC3TD7R
<urn:uuid:adc05433-ee3f-4ae9-b825-bfbd68b30da6>
http://en.memory-alpha.org/wiki/Help:Wiki_markup?oldid=1366270
response
<urn:uuid:d15e8c76-0ecb-4129-820a-6f43b3880a69>
robots: classic
hostname: ip-10-231-17-201.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-52
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for December 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf