Revision as of 12:45, 31 May 2006 (edit) Madmax (Talk | contribs) ← Previous diff |
Current revision (10:07, 14 May 2010) (edit) (undo) Glenn (Talk | contribs) |
(5 intermediate revisions not shown.) |
Line 1: |
Line 1: |
- | ''''' This is a copy of the [http://meta.wikimedia.org/wiki/Help:Editing master help page at Meta] ''''' | + | #REDIRECT [[Wiki editing]] |
- | == [[w:wikitext|Wikitext]] markup -- making your page look the way you want== | + | |
- | | + | |
- | <!-- This is the part everybody wants, therefore transcluded and not just linked.--> | + | |
- | | + | |
- | === Basic text formatting === | + | |
- | | + | |
- | {| border="1" cellpadding="2" cellspacing="0" | + | |
- | |- | + | |
- | !What it looks like | + | |
- | !What you type | + | |
- | |- | + | |
- | | | + | |
- | You can ''emphasize text'' by putting two | + | |
- | apostrophes on each side. Three apostrophes | + | |
- | will emphasize it '''strongly'''. Five | + | |
- | apostrophes is '''''even stronger'''''. | + | |
- | |<pre><nowiki> | + | |
- | You can ''emphasize text'' by putting two | + | |
- | apostrophes on each side. Three apostrophes | + | |
- | will emphasize it '''strongly'''. Five | + | |
- | apostrophes is '''''even stronger'''''. | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | A single newline | + | |
- | has no effect | + | |
- | on the layout. | + | |
- | | + | |
- | But an empty line | + | |
- | starts a new paragraph. | + | |
- | |<pre><nowiki> | + | |
- | A single newline | + | |
- | has no effect | + | |
- | on the layout. | + | |
- | | + | |
- | But an empty line | + | |
- | starts a new paragraph. | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | You can break lines<br> | + | |
- | without starting a new paragraph.<br> | + | |
- | Please use this sparingly. | + | |
- | |<pre><nowiki> | + | |
- | You can break lines<br> | + | |
- | without starting a new paragraph.<br> | + | |
- | Please use this sparingly. | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | You should "sign" your comments on talk pages: | + | |
- | : Three tildes gives your user name: [[User:Karl Wick|Karl Wick]] | + | |
- | : Four tildes give your user name plus date/time: [[User:Karl Wick|Karl Wick]] 07:46, 27 November 2005 (UTC) | + | |
- | : Five tildes gives the date/time alone: 07:46, 27 November 2005 (UTC) | + | |
- | |<pre><nowiki> | + | |
- | You should "sign" your comments on talk pages: | + | |
- | : Three tildes gives your user name: ~~~ | + | |
- | : Four tildes give your user name plus date/time: ~~~~ | + | |
- | : Five tildes gives the date/time alone: ~~~~~ | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | You can use <b>HTML tags</b>, too, if you | + | |
- | want. Some useful ways to use HTML: | + | |
- | | + | |
- | Put text in a <tt>typewriter font</tt>. | + | |
- | The same font is generally used for | + | |
- | <code>computer code</code>. | + | |
- | | + | |
- | <strike>Strike out</strike> or | + | |
- | <u>underline</u> text, or write it | + | |
- | <span style="font-variant:small-caps"> | + | |
- | in small caps</span>. | + | |
- | | + | |
- | Superscripts and subscripts: | + | |
- | x<sup>2</sup>, x<sub>2</sub> | + | |
- | | + | |
- | Invisible comments that only appear while editing the page. | + | |
- | <!-- Note to editors: blah blah blah. --> | + | |
- | Comments should usually go on the talk page, though. | + | |
- | |<pre><nowiki> | + | |
- | You can use <b>HTML tags</b>, too, if you | + | |
- | want. Some useful ways to use HTML: | + | |
- | | + | |
- | Put text in a <tt>typewriter font</tt>. | + | |
- | The same font is generally used for | + | |
- | <code>computer code</code>. | + | |
- | | + | |
- | <strike>Strike out</strike> or | + | |
- | <u>underline</u> text, or write it | + | |
- | <span style="font-variant:small-caps"> | + | |
- | in small caps</span>. | + | |
- | | + | |
- | Superscripts and subscripts: | + | |
- | x<sup>2</sup>, x<sub>2</sub> | + | |
- | | + | |
- | Invisible comments that only appear while editing the page. | + | |
- | <!-- Note to editors: blah blah blah. --> | + | |
- | Comments should usually go on the talk page, though. | + | |
- | </nowiki></pre> | + | |
- | |} | + | |
- | | + | |
- | For a list of HTML tags that are allowed, see [[Help:HTML in wikitext|HTML in wikitext]]. However, you should avoid HTML in favor of Wiki markup whenever possible. | + | |
- | | + | |
- | === Organizing your writing === | + | |
- | {| border="1" cellpadding="2" cellspacing="0" | + | |
- | |- | + | |
- | !What it looks like | + | |
- | !What you type | + | |
- | |- | + | |
- | | | + | |
- | <span style="font-size: 150%"><u>Section headings</u></span> | + | |
- | | + | |
- | Headings organize your writing into sections. | + | |
- | The Wiki software can automatically generate | + | |
- | a [[Help:table of contents|table of contents]] from them. | + | |
- | | + | |
- | | + | |
- | <span style="font-size: 125%"><b>Subsection</b></span> | + | |
- | | + | |
- | Using more equals signs creates a subsection. | + | |
- | | + | |
- | | + | |
- | <b>A smaller subsection</b> | + | |
- | | + | |
- | Don't skip levels, like from two to four equals signs. | + | |
- | Start with two equals signs; don't use single equals signs. | + | |
- | |<pre><nowiki> | + | |
- | == Section headings == | + | |
- | | + | |
- | Headings organize your writing into sections. | + | |
- | The Wiki software can automatically generate | + | |
- | a table of contents from them. | + | |
- | | + | |
- | === Subsection === | + | |
- | | + | |
- | Using more equals signs creates a subsection. | + | |
- | | + | |
- | ==== A smaller subsection ==== | + | |
- | | + | |
- | Don't skip levels, like from two to four equals signs. | + | |
- | Start with two equals signs; don't use single equals signs. | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | * ''Unordered [[Help:List|list]]s'' are easy to do: | + | |
- | ** Start every line with a star. | + | |
- | *** More stars indicate a deeper level. | + | |
- | *A newline | + | |
- | *in a list | + | |
- | marks the end of the list. | + | |
- | *Of course you can start again. | + | |
- | |<pre><nowiki> | + | |
- | * ''Unordered lists'' are easy to do: | + | |
- | ** Start every line with a star. | + | |
- | *** More stars indicate a deeper level. | + | |
- | *A newline | + | |
- | *in a list | + | |
- | marks the end of the list. | + | |
- | *Of course you can start again. | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | # Numbered lists are also good: | + | |
- | ## Very organized | + | |
- | ## Easy to follow | + | |
- | A newline marks the end of the list. | + | |
- | #New numbering starts with 1. | + | |
- | | + | |
- | |<pre><nowiki> | + | |
- | # Numbered lists are also good: | + | |
- | ## Very organized | + | |
- | ## Easy to follow | + | |
- | A newline marks the end of the list. | + | |
- | #New numbering starts with 1. | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | * You can even do mixed lists | + | |
- | *# and nest them | + | |
- | *#* or break lines<br>in lists. | + | |
- | |<pre><nowiki>* You can even do mixed lists | + | |
- | *# and nest them | + | |
- | *#* or break lines<br>in lists.</nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | Another kind of list is a '''definition list''': | + | |
- | ; word : definition of the word | + | |
- | ; longer phrase | + | |
- | : phrase defined | + | |
- | |<pre><nowiki> | + | |
- | Another kind of list is a '''definition list''': | + | |
- | ; word : definition of the word | + | |
- | ; longer phrase | + | |
- | : phrase defined</nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | :A colon indents a line or paragraph. | + | |
- | A newline after that starts a new paragraph. | + | |
- | ::This is often used for discussion on [[Help:Talk page|Talk page]]s. | + | |
- | |<pre><nowiki> | + | |
- | :A colon indents a line or paragraph. | + | |
- | A newline after that starts a new paragraph. | + | |
- | ::This is often used for discussion on talk pages. | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | You can make [[w:horizontal dividing line|horizontal dividing line]]s | + | |
- | to separate text. | + | |
- | ---- | + | |
- | But you should usually use sections instead, | + | |
- | so that they go in the table of contents. | + | |
- | |<pre><nowiki> | + | |
- | You can make horizontal dividing lines | + | |
- | to separate text. | + | |
- | ---- | + | |
- | But you should usually use sections instead, | + | |
- | so that they go in the table of contents. | + | |
- | </nowiki></pre> | + | |
- | |} | + | |
- | | + | |
- | === Links === | + | |
- | | + | |
- | You will often want to make clickable ''links'' to other pages. | + | |
- | | + | |
- | {| border="1" cellpadding="2" cellspacing="0" | + | |
- | |- | + | |
- | !What it looks like | + | |
- | !What you type | + | |
- | |- | + | |
- | | | + | |
- | Here's a link to a page named [[Official position]]. | + | |
- | You can even say [[official position]]s | + | |
- | and the link will show up correctly. | + | |
- | | + | |
- | You can put formatting around a link. | + | |
- | Example: ''[[Wikipedia]]''. | + | |
- | | + | |
- | The ''first letter'' will automatically be capitalized, | + | |
- | so [[wikipedia]] goes to the same place as [[Wikipedia]]. | + | |
- | Capitalization matters after the first letter. | + | |
- | | + | |
- | [[The weather in London]] is a page that doesn't exist | + | |
- | yet. You can create it by clicking on the link. | + | |
- | |<pre><nowiki> | + | |
- | Here's a link to a page named [[Official position]]. | + | |
- | You can even say [[official position]]s | + | |
- | and the link will show up correctly. | + | |
- | | + | |
- | You can put formatting around a link. | + | |
- | Example: ''[[Wikipedia]]''. | + | |
- | | + | |
- | The ''first letter'' will automatically be capitalized, | + | |
- | so [[wikipedia]] is the same as [[Wikipedia]]. | + | |
- | Capitalization matters after the first letter. | + | |
- | | + | |
- | [[The weather in London]] is a page that doesn't exist | + | |
- | yet. You can create it by clicking on the link. | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | You can link to a page section by its title: | + | |
- | | + | |
- | *[[List of cities by country#Morocco]]. | + | |
- | *[[List of cities by country#Sealand]]. | + | |
- | | + | |
- | If multiple sections have the same title, add | + | |
- | a number. [[#Example section 3]] goes to the | + | |
- | third section named "Example section". | + | |
- | |<pre><nowiki> | + | |
- | You can link to a page section by its title: | + | |
- | | + | |
- | *[[List of cities by country#Morocco]]. | + | |
- | *[[List of cities by country#Sealand]]. | + | |
- | | + | |
- | If multiple sections have the same title, add | + | |
- | a number. [[#Example section 3]] goes to the | + | |
- | third section named "Example section". | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | You can make a link point to a different place | + | |
- | with a [[Help:Piped link|piped link]]. Put the link | + | |
- | target first, then the pipe character "|", then | + | |
- | the link text. | + | |
- | | + | |
- | *[[Help:Link|About Links]] | + | |
- | *[[List of cities by country#Morocco| | + | |
- | Cities in Morocco]] | + | |
- | |<pre><nowiki> | + | |
- | You can make a link point to a different place | + | |
- | with a [[Help:Piped link|piped link]]. Put the link | + | |
- | target first, then the pipe character "|", then | + | |
- | the link text. | + | |
- | | + | |
- | *[[Help:Link|About Links]] | + | |
- | *[[List of cities by country#Morocco| | + | |
- | Cities in Morocco]] | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | You can make an external link just by typing a URL: | + | |
- | http://www.nupedia.com | + | |
- | | + | |
- | You can give it a title: | + | |
- | [http://www.nupedia.com Nupedia] | + | |
- | | + | |
- | Or leave the title blank: | + | |
- | [http://www.nupedia.com] | + | |
- | | | + | |
- | <pre><nowiki> | + | |
- | You can make an external link just by typing a URL: | + | |
- | http://www.nupedia.com | + | |
- | | + | |
- | You can give it a title: | + | |
- | [http://www.nupedia.com Nupedia] | + | |
- | | + | |
- | Or leave the title blank: | + | |
- | [http://www.nupedia.com] | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | You can [[Help:Redirect|redirect]] the user to another page with | + | |
- | a special link. For example, you might want to | + | |
- | redirect [[w:USA|USA]] to [[w:United States|United States]]. | + | |
- | |<pre><nowiki> | + | |
- | #REDIRECT [[United States]] | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | [[Help:Category|Category links]] don't show up, but add the page | + | |
- | to a category. [[Category:English documentation]] | + | |
- | | + | |
- | Add an extra colon to actually link to the category: | + | |
- | [[:Category:English documentation]] | + | |
- | |<pre><nowiki> | + | |
- | Category links don't show up, but add the page | + | |
- | to a category. [[Category:English documentation]] | + | |
- | | + | |
- | Add an extra colon to actually link to the category: | + | |
- | [[:Category:English documentation]] | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | The Wiki reformats linked dates to match the reader's date | + | |
- | preferences. These three dates will show up the same if you | + | |
- | choose a format in your [[Special:Preferences|Preferences]]: | + | |
- | * [[July 20]], [[1969]] | + | |
- | * [[20 July]] [[1969]] | + | |
- | * [[1969]]-[[07-20]] | + | |
- | |<pre><nowiki> | + | |
- | The Wiki reformats linked dates to match the reader's date | + | |
- | preferences. These three dates will show up the same if you | + | |
- | choose a format in your [[Special:Preferences|]]: | + | |
- | * [[July 20]], [[1969]] | + | |
- | * [[20 July]] [[1969]] | + | |
- | * [[1969]]-[[07-20]] | + | |
- | </nowiki></pre> | + | |
- | |} | + | |
- | | + | |
- | ===Just show what I typed=== | + | |
- | | + | |
- | A few different kinds of formatting will tell the Wiki to display things as you typed them. | + | |
- | | + | |
- | {| border="1" cellpadding="2" cellspacing="0" | + | |
- | |- | + | |
- | ! style="width:8em" | | + | |
- | !What it looks like | + | |
- | !What you type | + | |
- | |- | + | |
- | |'''<nowiki> tags''' | + | |
- | | | + | |
- | <nowiki> | + | |
- | The nowiki tag ignores [[Wiki]] ''markup''. | + | |
- | It reformats text by removing newlines and multiple spaces. | + | |
- | It still interprets special characters: → | + | |
- | </nowiki> | + | |
- | |<pre><nowiki> | + | |
- | <nowiki> | + | |
- | The nowiki tag ignores [[Wiki]] ''markup''. | + | |
- | It reformats text by removing newlines and multiple spaces. | + | |
- | It still interprets special characters: &rarr; | + | |
- | </nowiki> | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | |'''<pre> tags''' | + | |
- | | | + | |
- | <pre> | + | |
- | The pre tag ignores [[Wiki]] ''markup''. | + | |
- | It also doesn't reformat text. | + | |
- | It still interprets special characters: → | + | |
- | </pre> | + | |
- | |<pre><nowiki> | + | |
- | <pre> | + | |
- | The pre tag ignores [[Wiki]] ''markup''. | + | |
- | It also doesn't reformat text. | + | |
- | It still interprets special characters: &rarr; | + | |
- | </pre> | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | |'''Leading spaces''' | + | |
- | | | + | |
- | Leading spaces are another way to preserve formatting. | + | |
- | | + | |
- | Putting a space at the beginning of each line | + | |
- | stops the text from being reformatted. It still | + | |
- | interprets [[Wiki]] ''markup'' and special | + | |
- | characters: → | + | |
- | |<pre><nowiki> | + | |
- | Leading spaces are another way to preserve formatting. | + | |
- | | + | |
- | Putting a space at the beginning of each line | + | |
- | stops the text from being reformatted. It still | + | |
- | interprets [[Wiki]] ''markup'' and special | + | |
- | characters: &rarr; | + | |
- | </nowiki></pre> | + | |
- | |} | + | |
- | | + | |
- | ===Images, tables, video, and sounds=== | + | |
- | This is a very quick introduction. For more information, see: | + | |
- | * [[Help:Images and other uploaded files]] for how to upload files | + | |
- | * [[Help:Extended image syntax]] for how to arrange images on the page | + | |
- | * [[Help:Table]] for how to create a table | + | |
- | | + | |
- | {| border="1" cellpadding="2" cellspacing="0" | + | |
- | |- | + | |
- | !What it looks like | + | |
- | !What you type | + | |
- | |- | + | |
- | | | + | |
- | A picture, including alternate text: | + | |
- | | + | |
- | [[Image:Wiki.png|The logo for this Wiki]] | + | |
- | | + | |
- | You can put the image in a frame with a caption: | + | |
- | [[Image:Wiki.png|frame|The logo for this Wiki]] | + | |
- | |<pre><nowiki> | + | |
- | A picture, including alternate text: | + | |
- | | + | |
- | [[Image:Wiki.png|The logo for this Wiki]] | + | |
- | | + | |
- | You can put the image in a frame with a caption: | + | |
- | [[Image:Wiki.png|frame|The logo for this Wiki]] | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | A link to Wikipedia's page for the image: | + | |
- | [[:Image:Wiki.png]] | + | |
- | | + | |
- | Or a link directly to the image itself: | + | |
- | [[Media:Wiki.png]] | + | |
- | |<pre><nowiki> | + | |
- | A link to Wikipedia's page for the image: | + | |
- | [[:Image:Wiki.png]] | + | |
- | | + | |
- | Or a link directly to the image itself: | + | |
- | [[Media:Wiki.png]] | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | Use '''media:''' links to link to sounds | + | |
- | or videos: [[media:Sg_mrob.ogg|A sound file]] | + | |
- | |<pre><nowiki> | + | |
- | Use '''media:''' links to link to sounds | + | |
- | or videos: [[media:Sg_mrob.ogg|A sound file]] | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | <center> | + | |
- | {| border=1 cellspacing=0 cellpadding=5 | + | |
- | | This | + | |
- | | is | + | |
- | |- | + | |
- | | a | + | |
- | | '''table''' | + | |
- | |} | + | |
- | </center> | + | |
- | |<pre><nowiki> | + | |
- | <center> | + | |
- | {| border=1 cellspacing=0 cellpadding=5 | + | |
- | | This | + | |
- | | is | + | |
- | |- | + | |
- | | a | + | |
- | | '''table''' | + | |
- | |} | + | |
- | </center> | + | |
- | </nowiki></pre> | + | |
- | |} | + | |
- | | + | |
- | ===Templates=== | + | |
- | | + | |
- | '''[[Help:Template|Templates]]''' are segments of Wiki markup that are meant to be copied automatically ("transcluded") into a page. | + | |
- | You add them by putting the template's name in <nowiki>{{double braces}}</nowiki>. | + | |
- | | + | |
- | Some templates take ''parameters'', as well, which you separate with the pipe character. | + | |
- | {| border="1" cellpadding="2" cellspacing="0" | + | |
- | |- | + | |
- | !What it looks like | + | |
- | !What you type | + | |
- | |- | + | |
- | | | + | |
- | {{Transclusion demo}} | + | |
- | |<pre><nowiki> | + | |
- | {{Transclusion demo}} | + | |
- | </nowiki></pre> | + | |
- | |- | + | |
- | | | + | |
- | This template takes two parameters, and creates | + | |
- | underlined text with a hover box: | + | |
- | | + | |
- | {{H:title|This is the hover text| | + | |
- | Hover your mouse over this text}} | + | |
- | | + | |
- | Go to [[template:H:title|this page]] to see the H:title template itself. | + | |
- | | + | |
- | |<pre><nowiki> | + | |
- | This template takes two parameters, and creates | + | |
- | underlined text with a hover box: | + | |
- | | + | |
- | {{H:title|This is the hover text| | + | |
- | Hover your mouse over this text}} | + | |
- | | + | |
- | Go to [[template:H:title|this page]] to see the H:title template itself. | + | |
- | </nowiki></pre> | + | |
- | |} | + | |