Help:Formatting
You can format your text using wiki markup. Wiki markup consists of characters like asterisks (*), single quotes (') or brackets ([) which have a special function in the wiki, sometimes depending on their position. For example, to format a word in italic, you include it in two single quotes like ''this''
Wiki Markup Basics
Fanlore Cheatsheet | |||
Description | You type | You get | |
Italicise text |
''italic'' |
italic | |
Bold text |
'''bold''' |
bold | |
Bold and italic |
'''''bold & italic''''' |
bold & italic | |
Escape wiki markup (prevents the wiki from formatting things) | <nowiki>no ''markup''</nowiki> | no ''markup'' | |
Indenting Text |
no indent (normal) |
no indent (normal)
| |
Bulleted Lists |
* One |
| |
Numbered Lists
Empty lines between list items restarts numbering at 1.
|
# One |
| |
Mixture of bulleted and numbered lists |
# one |
| |
Internal link (within Fanlore) |
[[Name of page]] The link will display in blue if the page exists, and red if it has not been made yet. |
||
External link (to other websites) |
[http://www.example.org Text to display] |
||
Embed thumbnail image |
[[Image:Example.jpg|thumb|Caption text|alt=A field of sunflowers with the words 'Example Image' superimposed on top.]] |
||
Gallery
Formats images as a gallery
|
<gallery> |
||
Headings A Table of Contents will automatically be generated when four headings are added to an article or Talk page. To generate one manually, add the following markup:
|
== Level 1 == |
Level 1Level 2Level 3Level 4Level 5 | |
Quotations Refer to our Restrictions on Quotation, Citation & Linking for information on what should and shouldn't be quoted on Fanlore.
|
{{Quotation| {{Quotation2| {{Quotation Refer to Template:NQuote to learn how to format nested quotes, e.g. Tumblr reblogs. |
With source:
| |
References/Citations
Numbering is generated automatically.
Learn more about adding references to Fanlore pages. |
To add a reference to an external source, use this format:
Article text.<ref>[http://www.example.org Link to source webpage], any additional text (e.g. author, date of publication)</ref> |
Article text.[1] | |
To display references, add a dedicated References header (==References==) with the following code - without this, the article will produce an error:
<references/> |
| ||
Footnotes/Endnotes | To add a footnote, use this format:
Article text.<ref group=note>Text of footnote</ref> |
Article text.[note 1] | |
To display footnotes, add a dedicated Notes section (==Notes==) with the following code - without this, the article will produce an error:
<references group=note /> |
|
||
Categorizing a page |
[[Category:Help]] |
||
Redirect to another page |
#REDIRECT [[Target page]] |
||
DISPLAYTITLE
Changes the capitalization of a page title from Title Case (initial caps) to lowercase.
|
{{DISPLAYTITLE:page title}} |
page title | |
DEFAULTSORT
Alphabetically sorts a page by a letter other than the first letter of its title. Useful for when the page is included in lists and categories.
|
{{DEFAULTSORT:Fanlore Page, A}} |
The page "A Fanlore Page" will be alphabetized under "F" rather than "A" | |
For Talk Pages | |||
Signature |
~~~~ |
Your username 16:59, | |
Paragraphs
MediaWiki ignores normal line breaks. To start a new paragraph, leave an empty line. You can also start a new line with the HTML tags <br> or <br/>.
Indented Text and Long Quotations
There are several ways to indent text on the wiki:
- Put a colon (:) in front of a paragraph.
- Use the HTML tag <blockquote>.
- Use the quotation template, which indents the text and puts a blue border around it.
- Lists are also indented (like this one). Put * or # in front of each block of text you want to be a separate item in the list. Use * for a list with bullets (like this one). Use # for a numbered list.
Using columns
You can avoid whitespace to the right of lengthy, itemised lists using the template {{div col}} and {{div col end}} to format your list into columns. This makes pages easier to read and improves the flow of text. For example:
{{div col|colwidth=35em}} *Programme A *Programme B *Programme C *Programme D *Programme E *Programme F *Programme G *Programme H {{div col end}}
produces:
- Programme A
- Programme B
- Programme C
- Programme D
- Programme E
- Programme F
- Programme G
- Programme H
Similarly, you can force lengthy lists of references into columns using {{reflist}} instead of <references/>, for which no formatting options are available.
HTML
Some HTML tags are allowed in MediaWiki. Examples: <code>, <div>, <span> and <font>.
Other Formatting
Beyond the text formatting markup shown above, here are some other formatting references:
For any other questions, you can use the Talk page or contact the Fanlore Committee.