|
Tags: New redirect Mobile edit Mobile web edit |
(56 intermediate revisions by 10 users not shown) |
Line 1: |
Line 1: |
| '''← [[Help: Contents]]'''
| | #REDIRECT [[Help:Editing]] |
| | |
| 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 [[Tardis:the perfect article|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!)
| |
| | |
| {| class="grey" style="margin: auto;"
| |
| |-
| |
| ! What you type
| |
| ! What you see
| |
| |-
| |
| | <tt><nowiki>''italicized text''</nowiki></tt>
| |
| | ''italicized text''
| |
| |-
| |
| | <tt><nowiki>'''bold text'''</nowiki></tt>
| |
| | '''bold text'''
| |
| |-
| |
| | <tt><nowiki>'''''italicized and bold text'''''</nowiki></tt>
| |
| | '''''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.
| |
| | |
| {| class="grey" style="margin: auto;"
| |
| |-
| |
| ! What you type
| |
| ! What you see
| |
| |-
| |
| |
| |
| Preformatted text
| |
| |
| |
| Preformatted text
| |
| |-
| |
| | <nowiki>: Indented text</nowiki>
| |
| |
| |
| : 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!
| |
| | |
| {| class="grey" style="margin: auto;"
| |
| |-
| |
| ! What you type
| |
| ! What you see
| |
| |-
| |
| | <tt><nowiki>*</nowiki> Item One<br/><nowiki>*</nowiki> Item Two</tt>
| |
| |
| |
| * Item One
| |
| * Item Two
| |
| |-
| |
| | <tt><nowiki>#</nowiki> Item One<br/><nowiki>#</nowiki> Item Two</tt>
| |
| |
| |
| # Item One
| |
| # Item Two
| |
| |-
| |
| | <tt><nowiki>*</nowiki> Item One<br/><nowiki>**</nowiki> Item Two</tt>
| |
| |
| |
| * Item One
| |
| ** Item Two
| |
| |-
| |
| | <tt><nowiki>*</nowiki> Item One<br/><nowiki>*#</nowiki> Item Two</tt>
| |
| |
| |
| * Item One
| |
| *# Item Two
| |
| |-
| |
| | <tt><nowiki>; term : definition</nowiki></tt>
| |
| |
| |
| ; term : definition
| |
| |}
| |
| | |
| == Links and URLs ==
| |
| In a wiki, it's important to help [[Tardis:build the web|build the web]] by creating links to other articles in every appropriate context. Use the following techniques to create "free links" to other Tardis Index File articles:
| |
| | |
| {| class="grey" style="margin: auto;"
| |
| |-
| |
| ! What you type
| |
| ! What you see
| |
| |-
| |
| | <tt><nowiki>[[TARDIS Index File]]</nowiki></tt>
| |
| | [[TARDIS Index File]]
| |
| |-
| |
| | <tt><nowiki>[[SS Bernice|SS ''Bernice'']]</nowiki></tt>
| |
| | [[SS Bernice|SS ''Bernice'']]
| |
| |-
| |
| | <tt><nowiki>[[This article doesn't exist]]</nowiki></tt>
| |
| | [[This article doesn't exist]]
| |
| |-
| |
| | <tt><nowiki>[[Tardis:Policies and Guidelines]]</nowiki></tt>
| |
| | [[Tardis:Policies and Guidelines]]
| |
| |-
| |
| | <tt><nowiki>[[Tardis:Policies and Guidelines|]]</nowiki></tt>
| |
| | [[Tardis:Policies and Guidelines|Policies and Guidelines]]
| |
| |}
| |
| | |
| You can also make external links to other websites using the following formatting rules:
| |
| | |
| {| class="grey" style="margin: auto;"
| |
| |-
| |
| ! What you type
| |
| ! What you see
| |
| |-
| |
| | <tt><nowiki>[[Wikipedia:Doctor Who]]</nowiki></tt>
| |
| | [[Wikipedia:Doctor Who]]
| |
| |-
| |
| | <tt><nowiki>[[Wikipedia:Doctor Who|]]</nowiki></tt>
| |
| | [[Wikipedia:Doctor Who|Doctor Who]]
| |
| |-
| |
| | <tt><nowiki>http://tardis.wikicities.com/</nowiki></tt>
| |
| | http://tardis.wikicities.com/
| |
| |-
| |
| | <tt><nowiki>[http://tardis.wikicities.com/]</nowiki></tt>
| |
| | [http://tardis.wikicities.com/]
| |
| |-
| |
| | <tt><nowiki>[http://tardis.wikicities.com/ TARDIS Index File]</nowiki></tt>
| |
| | [http://tardis.wikicities.com/ TARDIS Index File]
| |
| |}
| |
| | |
| '''See also:''' [[Wikicities:Help:Interwiki link]]
| |
| | |
| == Sections ==
| |
| If an article is long enough, you can divide the page into different [[Tardis:section|section]]s. The TARDIS Index File 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.
| |
| | |
| {| class="grey" style="margin: auto;"
| |
| |-
| |
| ! What you type
| |
| ! What you see
| |
| |-
| |
| | <tt><nowiki>== Header Two ==</nowiki></tt>
| |
| | style="font-size: 112.5%" | Header Two
| |
| |-
| |
| | <tt><nowiki>=== Header Three ===</nowiki></tt>
| |
| | style="font-size: 106.25%; font-weight: bold" | Header Three
| |
| |-
| |
| | <tt><nowiki>==== Header Four ====</nowiki></tt>
| |
| | style="font-size: 103.125%; font-weight: bold" | Header Four
| |
| |-
| |
| | <tt><nowiki>----</nowiki></tt>
| |
| |
| |
| ----
| |
| |}
| |
| | |
| == 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.
| |
| | |
| {| class="grey" style="margin: auto;"
| |
| |-
| |
| ! Code
| |
| ! Effect
| |
| |-
| |
| | <tt><nowiki>{{CURRENTMONTH}}</nowiki></tt>
| |
| | {{CURRENTMONTH}}
| |
| |-
| |
| | <tt><nowiki>{{CURRENTMONTHNAME}}</nowiki></tt>
| |
| | {{CURRENTMONTHNAME}}
| |
| |-
| |
| | <tt><nowiki>{{CURRENTMONTHNAMEGEN}}</nowiki></tt>
| |
| | {{CURRENTMONTHNAMEGEN}}
| |
| |-
| |
| | <tt><nowiki>{{CURRENTDAY}}</nowiki></tt>
| |
| | {{CURRENTDAY}}
| |
| |-
| |
| | <tt><nowiki>{{CURRENTDAYNAME}}</nowiki></tt>
| |
| | {{CURRENTDAYNAME}}
| |
| |-
| |
| | <tt><nowiki>{{CURRENTYEAR}}</nowiki></tt>
| |
| | {{CURRENTYEAR}}
| |
| |-
| |
| | <tt><nowiki>{{CURRENTTIME}}</nowiki></tt>
| |
| | {{CURRENTTIME}}
| |
| |-
| |
| | <tt><nowiki>{{NUMBEROFARTICLES}}</nowiki></tt>
| |
| | {{NUMBEROFARTICLES}}
| |
| |}
| |
| | |
| 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:''' [[Help:Template]]
| |
| | |
| == Suppressing markup ==
| |
| It's also possible to tell MediaWiki to ''ignore'' any of the above rules using a simple tag:
| |
| | |
| {| class="grey" style="margin: auto;"
| |
| |-
| |
| ! What you type
| |
| ! What you see
| |
| |-
| |
| | <tt><nowiki><nowiki>'''text here'''</nowiki></nowiki></tt>
| |
| | <nowiki>'''text here'''</nowiki>
| |
| |}
| |