Help:Editing: Difference between revisions
Jump to navigation
Jump to search
(well it's something I guess) |
(added some basics) |
||
Line 1: | Line 1: | ||
For more detail, see [[mw:Help:Editing]]. | For more detail, see [[mw:Help:Editing]]. | ||
==Wikicode== | |||
*{{code demo|'''bold text'''}}; {{code demo|''italic text''}} | |||
*To create a heading, use multiple equals signs: {{code demo|1===Heading==|2=x}} (this is the highest level of heading). The number of signs on each side must match, and they determine the level of the heading; more signs means a smaller heading, sorted under higher headings. Headings on a page automatically create a table of contents. | |||
*To create a link to another page on the wiki: {{code demo|[[page name]]|x}} or {{code demo|[[page name|display text]]|x}} | |||
**If the second portion is omitted, the display text will be the same as the first portion. Underscores are not required. | |||
**Note that the first character of a page's title is not case sensitive; this can be used to make it lowercase if necessary for grammar. | |||
**Any letters placed immediately after the link will automatically become part of the display text. For example, {{code demo|[[toaster]]s|x}} will link to "Toaster" but display "toasters" as a link. | |||
**To link to a non-main namespace, add the namespace prefix before the link. {{code demo|[[Template:Main]]}}. To link to a category, you must put a colon <code>:</code> at the beginning of the link, or it will actually add the category to the page. | |||
*To link to Wikipedia or other wikis, you can often use a prefix. {{code demo|[[wikipedia:Main Page]]}} | |||
**To link to Wikia (Fandom), the format is "wikia:w:c:<wiki name>:<page name>". So {{code demo|[[wikia:w:c:cybernations:NPO]]}}. | |||
*For external links, use a single bracket. {{code demo|[http://www.google.com/ Google]}}. | |||
*To use a template: {{t|CN|Lord of Darkness}} | |||
**This template uses an unnamed parameter. To use a named parameter, place the name after the pipe ( | ) followed by an equals sign: <code><nowiki>{{Template|param=value}}</nowiki></code>. | |||
**Templates can combine any number of named and unnamed parameters. The order of unnamed parameters matters, but named parameters can be specified anywhere, including between unnamed parameters. | |||
**Some templates might have no parameters at all. | |||
**Template pages contain explanations of their parameters and intended usage. | |||
*To create a list, put each item on a new line preceded by an asterisk <code>*</code> (unordered list, bullet points) or a number sign <code>#</code> (order list, numbered). Use multiple of the symbol to create a sub-list; list types can be mixed. Putting an extra line break in between lines will create a separate list. | |||
*MediaWiki is very sensitive to whitespace (spaces and line breaks). A line starting with a space will be displayed as a code box instead of as text or formatting. Using too many line breaks will create excessive space - use only two line breaks (i.e. one blank line) in between paragraphs. | |||
**However, white space surrounding template parameters and the like is stripped, so this can be used for formatting that is easier to read. | |||
==Templates== | |||
Commonly used templates on the wiki: | Commonly used templates on the wiki: | ||
Revision as of 10:42, 3 July 2020
For more detail, see mw:Help:Editing.
Wikicode
'''bold text'''
produces: bold text;''italic text''
produces: italic text- To create a heading, use multiple equals signs:
==Heading==
(this is the highest level of heading). The number of signs on each side must match, and they determine the level of the heading; more signs means a smaller heading, sorted under higher headings. Headings on a page automatically create a table of contents. - To create a link to another page on the wiki:
[[page name]]
or[[page name|display text]]
- If the second portion is omitted, the display text will be the same as the first portion. Underscores are not required.
- Note that the first character of a page's title is not case sensitive; this can be used to make it lowercase if necessary for grammar.
- Any letters placed immediately after the link will automatically become part of the display text. For example,
[[toaster]]s
will link to "Toaster" but display "toasters" as a link. - To link to a non-main namespace, add the namespace prefix before the link.
[[Template:Main]]
produces: Template:Main. To link to a category, you must put a colon:
at the beginning of the link, or it will actually add the category to the page.
- To link to Wikipedia or other wikis, you can often use a prefix.
[[wikipedia:Main Page]]
produces: wikipedia:Main Page- To link to Wikia (Fandom), the format is "wikia:w:c:<wiki name>:<page name>". So
[[wikia:w:c:cybernations:NPO]]
produces: wikia:w:c:cybernations:NPO.
- To link to Wikia (Fandom), the format is "wikia:w:c:<wiki name>:<page name>". So
- For external links, use a single bracket.
[http://www.google.com/ Google]
produces: Google. - To use a template:
{{CN|Lord of Darkness}}
- This template uses an unnamed parameter. To use a named parameter, place the name after the pipe ( | ) followed by an equals sign:
{{Template|param=value}}
. - Templates can combine any number of named and unnamed parameters. The order of unnamed parameters matters, but named parameters can be specified anywhere, including between unnamed parameters.
- Some templates might have no parameters at all.
- Template pages contain explanations of their parameters and intended usage.
- This template uses an unnamed parameter. To use a named parameter, place the name after the pipe ( | ) followed by an equals sign:
- To create a list, put each item on a new line preceded by an asterisk
*
(unordered list, bullet points) or a number sign#
(order list, numbered). Use multiple of the symbol to create a sub-list; list types can be mixed. Putting an extra line break in between lines will create a separate list. - MediaWiki is very sensitive to whitespace (spaces and line breaks). A line starting with a space will be displayed as a code box instead of as text or formatting. Using too many line breaks will create excessive space - use only two line breaks (i.e. one blank line) in between paragraphs.
- However, white space surrounding template parameters and the like is stripped, so this can be used for formatting that is easier to read.
Templates
Commonly used templates on the wiki:
- Infoboxes
- Linking