Wikitext, also known as Wiki markup or Wiki code, consists of the syntax and keywords used by the MediaWiki software to format a page. To learn how to see this markup, and to save an edit, see: Help:Editing. It is recommended that you do not use the Visual Editor. Click here and select the source editor in the preferred editor dropdown.
Layout
The =
through ======
markup are headings for the sections with which they are associated.
- A single
=
is styled as the article title and should not be used within an article.
Section headings
Code | Renders as |
---|---|
= Heading 1 = |
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
|
Table of contents
When a page has at least four headings, a table of contents (TOC) will automatically appear before the first heading. The TOC can be controlled by magic words or templates:
__TOC__
forces the TOC to appear where the magic word is inserted instead of the normal location.__NOTOC__
disables the TOC entirely.
makes the TOC float on the right side of the page.{{
Tocright
}}
Line breaks
Line breaks or newlines are used for making space or separating paragraphs.
- A line break that is visible in the content is inserted by pressing ↵ Enter twice.
- Pressing ↵ Enter once will place a line break in the markup, but it will not show in the rendered content
Code | Renders as |
---|---|
A single newline here But an empty line starts a new paragraph, or ends a list or an indented part. |
A single newline here has no effect on the layout. But an empty line starts a new paragraph, or ends a list or an indented part. |
Lists
Do not leave blank lines between items in a list unless there is a reason to do so since this causes the code to interpret each item as beginning a new list.
Unordered lists
Code | Renders as |
---|---|
* Item 1 |
|
Ordered lists
Code | Renders as |
---|---|
# Item 1 |
|
Mix of both
Code | Renders as |
---|---|
* Item 1 |
|
Format
Text formatting
Code | Renders as |
---|---|
''italics'' | italics |
'''bold''' | bold |
'''''bold and italicized''''' | bold and italicized |
<pre>Preformatted text</pre> | Preformatted text |
<syntaxhighlight lang="css">
}</syntaxhighlight> |
.selector {
color: red;
}
|
Links and URLs
Link to another wiki article
- A red 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.
Code | Renders as |
---|---|
[[Loomians]] | Loomians |
[[Loomians#List of Loomians]] | Loomians#List of Loomians |
[[Loomians#List of Loomians|Loomian List]] | Loomian List |
[[Project:Rules|]] | Rules |
Interwiki links
To link to a page on a different community, enter w:c:
followed by the domain of that wiki, followed by the page's name. See Help:Interwiki link for more information.
Description | Code | Renders as |
---|---|---|
Linking to another Fandom wiki page. | [[w:c:roblox:Loomian Legacy]] | w:c:roblox:Loomian Legacy |
Linking to the Wikipedia. | [[wp:en:roblox]] | wp:en:roblox |
External Links
To link to a page outside of FANDOM's domain, use single brackets followed by the raw URL, then the link text. Links without a link text will appear as [x], where x is the nth external link on the page without a link text.
Code | Renders as |
---|---|
[https://www.google.com] | [1] |
[https://www.google.com Google] |
Linking to a category or image
When linking to a category for demonstrative purposes rather than for categorizing a page, or if you want to link to an image file page without the actual image showing, put a colon after the double opening square brackets.
Code | Renders as |
---|---|
[[:Category:Loomian Legacy Wiki]] | Category:Loomian Legacy Wiki |
[[:File:Wiki-wordmark.png]] | File:Wiki-wordmark.png |
Tables
Tables are essential for displaying information in short and concise ways.
{|
starts a table. Addingclass="article-table"
after it automatically styles the table, giving it borders and background color.|
starts a normal table cell in the row it is in.!
starts a table header cell in the row it is in.|-
starts a new table row beneath the previous row.|}
ends a table.
Code | Renders as | ||||||
---|---|---|---|---|---|---|---|
{| class="article-table"
! Heading 1 |
|
Templates
Using Templates
- Templates can be used in a page by inserting
{{Template Name}}
into a page. - Variables can be set values by inserting
Variable Name = Value
after the template name. Variables are separated using pipes (|). Some variables do not have names and just require an input value directly after the pipe, such as in the first example listed below.
Code | Renders as |
---|---|
{{Move Category|Ranged}} |
Ranged |
{{Move Category|Ranged|Picture=only}} |
Creating Templates
Templates are pages whose content can be translated onto another page. Template pages can be found by searching up Template:Template Name
in the search bar. To create a new Template, change the URL to /wiki/Template:Template Name
and click create.
Template Syntax
When creating templates, using variables and Parser Functions can be especially effective. Though there are many parser functions, this guide will only focus on the two most useful parser functions.
- Use
{{{VariableName|Value if no input for variable}}}
to create a variable in a template. Naming a variable "1" will detect the first value after the template name and will not require an equal sign to set its value (i.e.{{Move Category|Ranged}}
). - Parser functions are intiated in the following way:
{{#FunctionName:Input
- The
#switch
parser function gives different, designated outputs when specific inputs are inputted and a default output when the input does not match a designated output. - The
#if
parser function tests if an input is empty. When using the#if
parser function in conjunction with variables, be sure to write{{{VariableName|}}}
. This will ensure that the output for the variable is nothing when there is no input for the variable.
- The
Code | Renders as |
---|---|
{{#switch:Cat|Cat = This is a Cat|Dog = This is a Dog|#default = Animal not in data}} |
This is a Cat |
{{#switch:Dog|Cat = This is a Cat|Dog = This is a Dog|#default = Animal not in data}} |
This is a Dog |
{{#switch:Cow|Cat = This is a Cat|Dog = This is a Dog|#default = Animal not in data}} |
Animal not in data |
{{#if:Testing123|Yes Input|No Input}} |
Yes Input |
{{#if:|Yes Input|No Input}} |
No Input |