|
Tags: New redirect Mobile edit Mobile web edit |
(43 intermediate revisions by 6 users not shown) |
Line 1: |
Line 1: |
| '''← [[Tardis:Help]]'''
| | #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 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
| |
| |-
| |
| |
| |
| <nowiki> Preformatted text</nowiki>
| |
| |
| |
| 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 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|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]
| |
| |}
| |
| ===The "pipe trick"===
| |
| One of the most helpful shortcuts one can learn in linking to articles is the so-called "pipe trick". By placing a pipe (|) after certain strings of text, one can eliminate the need to type huge amounts of replacement text. For example, if the name of an episode of ''[[Doctor Who]]'' is shared with a person, place or thing in the [[Doctor Who universe|DWU]], then it will be "disambiguated" with the parenthetical "(TV story)". [[Castrovalva]] refers to the city, whereas [[Castrovalva (TV story)]] links to the page about the episode. Generally, when writing a sentence about the TV story, one doesn't want "(TV story)" to appear in the body of text. To get rid of it, one must enter some replacement text separated by the full article name by a pipe (|}. The long way of doing that is:
| |
| <pre>
| |
| [[Castrovalva (TV story)|Castrovalva]]
| |
| </pre>
| |
| This is cumbersome, however, and there's a fair chance one might make a typing error somewhere along the way. Thus the easier way to proceed is:
| |
| <pre>
| |
| [[Castrovalva (TV story)|]]
| |
| </pre>
| |
| The pipe trick can also be used to get rid of namespace that precedes an article name. If you're on a talk page and you wish to refer to another user's name, you might type:
| |
| <pre>
| |
| [[User:ILoveDaleksWhenTheyCry|ILoveDaleksWhenTheyCry]]
| |
| </pre>
| |
| but that's a lot of work. Instead, just type:
| |
| <pre>
| |
| [[User:ILoveDaleksWhenTheyCry|]]
| |
| </pre>
| |
| | |
| Similarly, you might want to refer to an article outside mainspace. For instance, maybe you're arguing a stylistic point on a talk page, and you want to refer to [[Tardis:Manual of style]]. By typing:
| |
| <pre>
| |
| [[Tardis:Manual of style|]]
| |
| </pre>
| |
| you end up with just [[Tardis:Manual of style|Manual of style]].
| |
| | |
| And then there are cases when you have a link that has both a namespace and a disambiguating parenthetical. The pipe trick can take care of this, too. This frequently happens when linking to a wikipedia article. You could type:
| |
| <pre>
| |
| [[wikipedia:Life on Mars (TV series)|Life on Mars]]
| |
| </pre>
| |
| but why do that when
| |
| <pre>
| |
| [[wikipedia:Life on Mars (TV series)|]]
| |
| </pre>
| |
| also gives you [[wikipedia:Life on Mars (TV series)|Life on Mars]].
| |
| ===The "slash trick"===
| |
| There are some pages here which have a number of subpages. A subpage is a page that branches off of the page one is currently viewing. If this page had a subpage about slash tricks, it would be in the format of [[Help:Wiki markup/Slash trick]]. This syntax, however, is how one would link to the subpage from any other page on the wiki. '''On this page only''' the same link could be generated by typing
| |
| <pre>
| |
| [[/Slash trick]]
| |
| </pre>
| |
| When entered '''on this page''', the preceding slash stands in for [[Help:Wiki markup]]. However, the result of typing in <nowiki>[[/Slash trick]]</nowiki> is the rather ugly [[/Slash trick]], that includes the preceding slash. If one wanted to create a link that appeared '''on this page''' as just [[Slash trick]], one could type:
| |
| <pre>
| |
| [[/Slash trick|Slash trick]]
| |
| </pre>
| |
| However, this can be simplified even further by typing:
| |
| <pre>
| |
| [[/Slash trick/]]
| |
| </pre>
| |
| This eliminates the preceding slash.
| |
| ====When you might not want to apply the slash trick====
| |
| Generally, getting rid of preceding slashes is a great idea. But there are occasionally times when the preceding slash might need to be retained. A good example is [[Forum:Doctor Who television discontinuity and plot holes]] where the preceding slashes emphasize to the reader that a subpage was being linked to, rather than a page in the main article space with the same name.
| |
| | |
| A suggested guideline is that if the subpage has the same name as a proper article in mainspace, retain the slash for clarity. Thus [[/The Chase]] versus [[The Chase]].
| |
| ===Interwiki link===
| |
| There are times when one might wish to link to another wikia. For example, if one wanted to talk about [[Michelle Ryan]]'s character on ''The Bionic Woman'', one could link to the article on The Bionic Wiki, instead of relying on Wikipedia. This can be achieved by the following syntax:
| |
| <pre>
| |
| [[w:c:nameofwiki:articlename|articlename]]
| |
| or, for this specific case,
| |
| [[w:c:bionic:Jaime Sommers (2007)|Jaime Sommers]]
| |
| </pre>
| |
| Note that the pipe trick discussed above won't work as well on interwiki links because there are too many preceding colons. A pipe trick does this to an interwiki link: [[w:c:bionic:Jaime Sommers (2007)|c:bionic:Jaime Sommers]], which is close, but not really close enough. Thus, to make a "clean" link to an article on another link, one has to type out the whole thing, with replacement text, as shown immediately above.
| |
| ====How to figure out the name of a wiki====
| |
| The real trick in performing interwiki links is knowing what is the true name of the wiki to which one is linking. For instance, we call ourselves "TARDIS Index File Wiki", but our ''true'' name is "tardis". Links to our article about Matt Smith from other wikias would be:
| |
| <pre>
| |
| [[w:c:tardis:Matt Smith|Matt Smith]]
| |
| </pre>
| |
| The key to finding the true name is to look at the URL address in one's browser window. The name is almost always the word which precedes the word "wikia". The URL to the ''Doctor Who'' page at Wikisimpsons is http://simpsons.wikia.com/wiki/Doctor_Who. This is the usual format for a wikia wiki. Thus: [[w:c:simpsons:Doctor Who]] is how you link to that page from within an article here at our wiki. Again, to clean it up a bit, you might type something like <nowiki>[[w:c:simpsons:Doctor Who|Doctor Who on ''The Simpsons'']]</nowiki>. This syntax will work in most cases. For instance, it works for linkage to all of our sister sites, thus:
| |
|
| |
| *[[w:c:whospecialfeatures:Category:Easter egg]] links to the Easter Egg category at our sister site, Doctor Who Special Features Index
| |
| *[[w:c:doctor-who-collectors:Items released in 1994]] links to all DW merchandise released in 1994 at our sister site, the Doctor Who Collectors Wiki
| |
| *[[w:c:dwexpanded:Planet Skaro Audios]] links to the fan-made ''Planet Skaro Audios'' at our sister site, Doctor Who Expanded Wiki
| |
| *[[w:c:doctorwhofanon:Phoenix (Series 5)]] links to a fan-imagined series 5 which would have starred [[David Tennant]] instead of [[Matt Smith]] at our sister site, Doctor Who Fanon
| |
| | |
| Unfortunately, this isn't completely universal. Depending on the wiki's relationship to the wikia family of wikis, it might not be so straightforward. A prime example is [[w:c:memoryalpha:Main Page|Memory Alpha, the main Star Trek Wiki]]. The actual URL of its ''Doctor Who'' page is: http://memory-alpha.org/en/wiki/Doctor_Who. This is immediately confusing, because there's no reference to wikia at all in the URL. However, linkage to this page can still be achieved within an article here at this wiki. It is accomplished by [[w:c:memoryalpha:Doctor Who]]. In cases where the wiki URLs don't have the "wikia.com", you will have to search through that wiki's help files to find an article that tells you how to perform an interwiki link. Or you might have to ask an admin there for help. You can also try consulting [[Wikia:Help:Interwiki link|the Interwiki link page at Wikia Central]].
| |
| ====Even easier linking to "big" wikis====
| |
| Some bigger wikis are even easier to link to. For some wikis, linkage is exactly like Wikipedia linkage.
| |
| *[[wikipedia:Julian Glover]]
| |
| *[[starwars:Julian Glover]]
| |
| *[[memoryalpha:Doctor Who]]
| |
| To test whether the wiki is big enough to have its own prefix, enter '''wikiname:articlename''' in our search box on the top left of this page. If it takes you to the appropriate page, then you can use that syntax in a link. If it just creates a search error, then you have to use the '''w:c:wikiname:articlename''' syntax.
| |
| ====Beware the false blue link====
| |
| Note that interwiki linking, whether by using a special prefix like <nowiki>[[wikipedia:articlename]] or the standard [[w:c:wikiname:articlename]] syntax</nowiki>, '''always''' produces a blue link. You must, therefore, go back and click the link you've made to ensure that it actually links properly. Just to illustrate, here are some obviously ridiculous page names that nevertheless appear to be valid links:
| |
| | |
| *[[wikipedia:adlfkjadfj3oiujeqwrjidaf2234232adlfkj]]
| |
| *[[w:c:jamesbond:No, Mr. Dalton, I expect you to become Rassilon]]
| |
| *[[memoryalpha:Logic insists that the Eighth Doctor wasn't half-Human, but in fact half-Vulcan]]
| |
| | |
| == Sections ==
| |
| ===The usual way===
| |
| If an article is long enough, you can divide the page into different sections. 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>
| |
| |
| |
| ----
| |
| |}
| |
| ===Another approach to headers===
| |
| The above method doesn't just generate a header. It also automatically creates a little edit link beside the header, allowing the user to edit just that section. But there are times when one may wish to have a sectional header that isn't editable. This is particularly true in templates which generate a lot of text that need to be sectionalized for greater understanding. To achieve section heads which don't produce an edit link, use the following simple code:
| |
| <pre>
| |
| <hx>Header</hx>, where x stands for the number of equal signs (=) you want.
| |
| | |
| For example,
| |
| | |
| <h3>Header</h3>
| |
| | |
| is the edit-link-less version of
| |
| | |
| ===Header===
| |
| </pre>
| |
| | |
| == Images and other media ==
| |
| '''See:''' [[Help: Image markup]]
| |
| | |
| == Tables ==
| |
| '''See:''' [[Help: Table markup]]
| |
| | |
| | |
| == Templates ==
| |
| Using templates will save you a great deal of repetitive typing when listing information on different articles which fall under the same category, such as television stories or novels. Just go to the [[Tardis:Templates|Templates page]] and scan down the list for the ones you need. Put <nowiki>{{template}}</nowiki> in your edit, replacing "template" with the name of the specific one you are using, such "Infobox CD". For infoboxes, you will need to fill in the specific information, such as director, writer, or broadcast date.
| |
| | |
| == 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>
| |
| |}
| |
| | |
| [[Category:TARDIS_Index_File_Wiki]]
| |