Difference between revisions of "Help:Wikitext markup"
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | == [ | + | :<small>< back to [[Help:Contents]]</small> |
− | + | ||
+ | == [http://en.wikipedia.org/wiki/Wikipedia:Wikitext Wikitext] markup — making your page look the way you want== | ||
<!-- This is the part everybody wants, therefore some argue that it should be transcluded and not just linked.--> | <!-- This is the part everybody wants, therefore some argue that it should be transcluded and not just linked.--> | ||
− | *If you want to try out things without danger of doing any harm, you can do so in the [[Sandbox|sandbox]]. | + | *If you want to try out things without danger of doing any harm, you can do so in the [[AVENwiki:Sandbox|sandbox]]. |
=== Organizing your writing — sections, paragraphs, lists and lines === | === Organizing your writing — sections, paragraphs, lists and lines === | ||
Line 40: | Line 41: | ||
*Don't skip levels (for example, second-level followed by fourth-level). | *Don't skip levels (for example, second-level followed by fourth-level). | ||
*A [[#Table of contents|table of contents]] will automatically be added to an article that has four or more sections. | *A [[#Table of contents|table of contents]] will automatically be added to an article that has four or more sections. | ||
− | *If appropriate, place subsections in an appropriate order. If listing countries, for example, place them in alphabetical order rather than, say, relative to population of [ | + | *If appropriate, place subsections in an appropriate order. If listing countries, for example, place them in alphabetical order rather than, say, relative to population of [http://en.wikipedia.org/wiki/OECD OECD] countries, or some random order. |
*If you want to keep headings out of the TOC you have to use HTML heading tags and close them without using a slash e.g. <nowiki><h4>heading too low level to be in the toc of large page<h4></nowiki>. | *If you want to keep headings out of the TOC you have to use HTML heading tags and close them without using a slash e.g. <nowiki><h4>heading too low level to be in the toc of large page<h4></nowiki>. | ||
|<pre><nowiki> | |<pre><nowiki> | ||
Line 53: | Line 54: | ||
|- | |- | ||
| | | | ||
− | ;[ | + | ;[http://en.wikipedia.org/wiki/Wikipedia:NEWLINE Newline]: |
A single | A single | ||
Line 71: | Line 72: | ||
You can make the wikitext more readable by putting in newlines. | You can make the wikitext more readable by putting in newlines. | ||
− | You might find this causes future problems — see [ | + | You might find this causes future problems — see [http://en.wikipedia.org/wiki/Wikipedia:Don%27t_use_line_breaks Don't use line breaks] for details. |
− | * When used in a list, a newline ''does'' affect the layout (See [ | + | * When used in a list, a newline ''does'' affect the layout (See [http://en.wikipedia.org/wiki/Help:List Help:List]). |
|<pre><nowiki> | |<pre><nowiki> | ||
Line 90: | Line 91: | ||
* Please use this sparingly. | * Please use this sparingly. | ||
− | * Close markup between lines; do not start a [ | + | * Close markup between lines; do not start a [http://en.wikipedia.org/wiki/Help:Link link] or ''italics'' or '''bold''' on one line and close it on the next. |
|<pre><nowiki>You can break lines<br> | |<pre><nowiki>You can break lines<br> | ||
without starting a new paragraph.</nowiki></pre> | without starting a new paragraph.</nowiki></pre> | ||
Line 159: | Line 160: | ||
:A colon at the start of a line indents a paragraph. | :A colon at the start of a line indents a paragraph. | ||
A manual newline starts a new paragraph. | A manual newline starts a new paragraph. | ||
− | * This is often used for discussion on [ | + | * This is often used for discussion on [http://en.wikipedia.org/wiki/Help:Talk_page Talk pages]. |
In the case of a semicolon and some text in front of the colon, the first colon starts a new line (indented as before) even though it is in the wikitext not at the start of the line, see definition list. | In the case of a semicolon and some text in front of the colon, the first colon starts a new line (indented as before) even though it is in the wikitext not at the start of the line, see definition list. | ||
|<pre><nowiki>: A colon indents a line or paragraph. | |<pre><nowiki>: A colon indents a line or paragraph. | ||
Line 184: | Line 185: | ||
|<pre><nowiki><center>Centered text.</center></nowiki></pre> | |<pre><nowiki><center>Centered text.</center></nowiki></pre> | ||
|- | |- | ||
− | |A | + | |A horizontal dividing line: |
this is above it... | this is above it... | ||
---- | ---- | ||
Line 198: | Line 199: | ||
=== Links, URLs === | === Links, URLs === | ||
− | More information at [ | + | More information at [http://en.wikipedia.org/wiki/Help:Link Help:Link] |
==== Internal links ==== | ==== Internal links ==== | ||
General notes: | General notes: | ||
Line 226: | Line 227: | ||
| | | | ||
;Section of page | ;Section of page | ||
− | *[[ | + | *[[Attraction#Sexual Attraction]] |
− | *[[ | + | *[[Attraction#Romantic Attraction]] |
If the section doesn't exist, the link goes to the top of the page. | If the section doesn't exist, the link goes to the top of the page. | ||
If there are multiple sections by the same name, link to specific ones by adding how many times that header has already appeared (e.g. if there are 3 sections entitled "Example header," and you wish to link to the third one, then use <nowiki>[[#Example section 3]]</nowiki>. | If there are multiple sections by the same name, link to specific ones by adding how many times that header has already appeared (e.g. if there are 3 sections entitled "Example header," and you wish to link to the third one, then use <nowiki>[[#Example section 3]]</nowiki>. | ||
| | | | ||
<pre><nowiki> | <pre><nowiki> | ||
− | *[[ | + | *[[Attraction#Sexual Attraction]] |
− | *[[ | + | *[[Attraction#Romantic Attraction]] |
</nowiki></pre> | </nowiki></pre> | ||
|- | |- | ||
| | | | ||
− | ;[ | + | ;[http://en.wikipedia.org/wiki/Help:Piped_link Piped link] |
Use a pipe "'''|'''" to create a '''link label''': | Use a pipe "'''|'''" to create a '''link label''': | ||
− | *[[ | + | *[[Dive_in|Main Contents]] |
|<pre><nowiki> | |<pre><nowiki> | ||
− | *[[ | + | *[[Dive_in|Main Contents]] |
</nowiki></pre> | </nowiki></pre> | ||
|- | |- | ||
|'''"blank" pipes''' hide: | |'''"blank" pipes''' hide: | ||
− | *Parentheses: [[ | + | *Parentheses: [[Asexuality (forum section)|Asexuality]]. |
− | *Colon: [[ | + | *Colon: [[User:Wikimaster|Wikimaster]]. |
After you save, the server automatically fills in the link label. | After you save, the server automatically fills in the link label. | ||
− | |<pre><nowiki>*Parentheses: [[ | + | |<pre><nowiki>*Parentheses: [[Asexuality (forum section)|]]. |
− | *Colon: [[ | + | *Colon: [[User:Wikimaster|]].</nowiki></pre> |
|- | |- | ||
| | | | ||
Line 266: | Line 267: | ||
;Link to yourself | ;Link to yourself | ||
Please "sign" comments on talk pages: | Please "sign" comments on talk pages: | ||
− | : Your user name: [[User: | + | : Your user name: [[User:Wikimaster|Wikimaster]] |
− | : Your user name plus timestamp: [[User: | + | : Your user name plus timestamp: [[User:Wikimaster|Wikimaster]] 20:05, 22 December 2008 (EST) (UTC) |
− | : Five tildes give a timestamp: | + | : Five tildes give a timestamp: 20:05, 22 December 2008 (EST) |
The server will fill in the link after you save. | The server will fill in the link after you save. | ||
|<pre><nowiki>Please "sign" comments on talk pages: | |<pre><nowiki>Please "sign" comments on talk pages: | ||
Line 277: | Line 278: | ||
|- | |- | ||
| | | | ||
− | ;[ | + | ;[http://en.wikipedia.org/wiki/Help:Redirect Redirects] |
one article title to another with this special link. | one article title to another with this special link. | ||
− | |<pre><nowiki>#REDIRECT [[ | + | |<pre><nowiki>#REDIRECT [[Asexuality]]</nowiki></pre> |
|- | |- | ||
| | | | ||
− | <!--hiding these | + | <!--hiding these until we enable the features |
;"Magic" links | ;"Magic" links | ||
* [[w:ISBN|ISBN]] links to books: ISBN 0123456789X (See [[Help:ISBN links]] | * [[w:ISBN|ISBN]] links to books: ISBN 0123456789X (See [[Help:ISBN links]] | ||
Line 290: | Line 291: | ||
RFC 123</nowiki></pre> | RFC 123</nowiki></pre> | ||
|- | |- | ||
− | | | + | |--> |
;Media links | ;Media links | ||
To include links to non-image uploads such as sounds, use a "media" link. | To include links to non-image uploads such as sounds, use a "media" link. | ||
Line 300: | Line 301: | ||
;Category listing links (these appear at page bottom and list the page in the Category) | ;Category listing links (these appear at page bottom and list the page in the Category) | ||
To list a page in a Category and have a link to the Category at page bottom.<br /> | To list a page in a Category and have a link to the Category at page bottom.<br /> | ||
− | [[Category: | + | [[Category:AVENwiki basic information]] |
− | |<pre><nowiki>[[Category: | + | |<pre><nowiki>[[Category:AVENwiki basic information]] |
</nowiki></pre> | </nowiki></pre> | ||
|- | |- | ||
Line 307: | Line 308: | ||
;Category non-listing links (these appear inline ''without'' listing the page in the Category) | ;Category non-listing links (these appear inline ''without'' listing the page in the Category) | ||
To link to a Category without causing the page to be listed in the category, '''add a colon'''<br /> | To link to a Category without causing the page to be listed in the category, '''add a colon'''<br /> | ||
− | [[:Category: | + | [[:Category:AVENwiki basic information]] |
− | |<pre><nowiki>[[:Category: | + | |<pre><nowiki>[[:Category:AVENwiki basic information]] |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</nowiki></pre> | </nowiki></pre> | ||
|- | |- | ||
| | | | ||
;Special pages | ;Special pages | ||
− | "What links here" etc. can be linked as:<br | + | "What links here" etc. can be linked as:<br> |
− | [[Special:Whatlinkshere/Help: | + | [[Special:Whatlinkshere/Help:Wikitext markup]] |
|<pre><nowiki> | |<pre><nowiki> | ||
− | [[Special:Whatlinkshere/Help: | + | [[Special:Whatlinkshere/Help:Wikitext markup]] |
</nowiki></pre> | </nowiki></pre> | ||
|} | |} | ||
Line 546: | Line 535: | ||
<tr valign="top"> | <tr valign="top"> | ||
<td> | <td> | ||
− | '''Umlauts and accents:''' (See [ | + | '''Umlauts and accents:''' (See [http://en.wikipedia.org/wiki/Help:Special characters Help:Special characters])<br/> |
À Á Â Ã Ä Å | À Á Â Ã Ä Å | ||
Æ Ç È É Ê Ë | Æ Ç È É Ê Ë | ||
Line 712: | Line 701: | ||
<tr valign="bottom"> | <tr valign="bottom"> | ||
<td> | <td> | ||
− | ; | + | ;Transclusion |
:Including the contents of another page into the current page. | :Including the contents of another page into the current page. | ||
<div style="border: 1pt dashed blue; background : grey; padding: 1em 1em;"> | <div style="border: 1pt dashed blue; background : grey; padding: 1em 1em;"> | ||
Line 722: | Line 711: | ||
<tr valign="bottom"> | <tr valign="bottom"> | ||
<td> | <td> | ||
− | ;[ | + | ;[http://en.wikipedia.org/wiki/Help:Template Template] |
A special kind of page designed for transclusion. | A special kind of page designed for transclusion. | ||
− | These pages are found in the '''Template:''' [ | + | These pages are found in the '''Template:''' [http://www.asexuality.org/wiki/index.php?title=Special%3AAllpages&from=&namespace=10 namespace] |
− | Templates can even take parameters | + | Templates can even take parameters, by using <pre><nowiki>{{templatename|value}}</nowiki></pre> |
When you edit a page, all the templates used on the page are listed below the edit box. | When you edit a page, all the templates used on the page are listed below the edit box. | ||
<div style="border: 1pt dashed blue; background : grey; padding: 1em 1em;"> | <div style="border: 1pt dashed blue; background : grey; padding: 1em 1em;"> | ||
− | {{ | + | {{JFF}}</div></td> |
<td> | <td> | ||
− | <pre><nowiki>{{ | + | <pre><nowiki>{{JFF}}</nowiki></pre></td></tr> |
</table> | </table> | ||
− | |||
− |
Latest revision as of 14:26, 10 October 2013
- < back to Help:Contents
Wikitext markup — making your page look the way you want
- If you want to try out things without danger of doing any harm, you can do so in the sandbox.
Organizing your writing — sections, paragraphs, lists and lines
What it looks like | What you type |
---|---|
Start sections with header lines Note: Single equal signs give the highest level heading, like the page title; usually projects have the convention not to use them.
New section Subsection Sub-subsection
|
== New section == === Subsection === ==== Sub-subsection ==== |
A single newline has no effect on the layout. But an empty line starts a new paragraph, or ends a list or indented part. (<p> disables this paragraphing until </p> or the end of the section) (In Cologne Blue two newlines and a div tag give just one newline; in the order newline, div tag, newline, the result is two newlines.) A semicolon at the start of a line is not rendered, but has the effect of rendering the newline. A colon in such a line is not rendered, but has the effect of starting a new, indented line, see definition list. You can make the wikitext more readable by putting in newlines. You might find this causes future problems — see Don't use line breaks for details.
|
A single newline has no effect on the layout. But an empty line starts a new paragraph. |
You can break lines without starting a new paragraph. (The HTML tag <br> is sufficient. The system produces the XHTML code <br />.)
|
You can break lines<br> without starting a new paragraph. |
marks the end of the list.
|
* Unordered Lists are easy to do: ** start every line with a star *** more stars means deeper levels *A newline *in a list marks the end of the list. *Of course *you can *start again. |
marks the end of the list.
|
# Numbered lists are also good ## very organized ## easy to follow #A newline #in a list marks the end of the list. #New numbering starts #with 1. |
|
* You can even do mixed lists *# and nest them *#* or break lines<br>in lists |
Definition list
|
; word : definition of the word ; longer phrase : phrase defined
|
A manual newline starts a new paragraph.
In the case of a semicolon and some text in front of the colon, the first colon starts a new line (indented as before) even though it is in the wikitext not at the start of the line, see definition list. |
: A colon indents a line or paragraph. A manual newline starts a new paragraph. |
When there is a need for separating a block of text
This is useful for (as the name says) inserting blocks of quoted (and cited) text. |
<blockquote> The '''blockquote''' command will indent both margins when needed instead of the left margin only as the colon does. </blockquote> |
|
<center>Centered text.</center> |
A horizontal dividing line:
this is above it... ...and this is below it. If you don't use a section header, you don't get a TOC entry. |
A horizontal dividing line: this is above it... ---- ...and this is below it. |
Links, URLs
More information at Help:Link
Internal links
General notes:
- Enclose the target name in double square brackets — "[[" and "]]"
- First letter of target name is automatically capitalized
- Spaces are represented as underscores (but don't do underscores yourself)
- Links to nonexistent pages are shown in red — Starting A New Page tells about creating the page.
- When the mouse cursor "hovers" over the link, you see a "hover box" containing... hover over links below to see.
What it looks like | What you type |
---|---|
|
Sue is reading the [[FAQ]] (or [[FAQ]]s). |
You can also italicize/etc. links: e.g., AVEN. |
''[[AVEN]]'' |
If the section doesn't exist, the link goes to the top of the page. If there are multiple sections by the same name, link to specific ones by adding how many times that header has already appeared (e.g. if there are 3 sections entitled "Example header," and you wish to link to the third one, then use [[#Example section 3]]. |
*[[Attraction#Sexual Attraction]] *[[Attraction#Romantic Attraction]] |
Use a pipe "|" to create a link label: |
*[[Dive_in|Main Contents]] |
"blank" pipes hide:
After you save, the server automatically fills in the link label. |
*Parentheses: [[Asexuality (forum section)|]]. *Colon: [[User:Wikimaster|]]. |
A red link (like this one) points to a page that doesn't exist yet.
guide and the naming conventions page for your project. |
A red link ([[like this one]]) points to a page that doesn't exist yet. |
Please "sign" comments on talk pages:
The server will fill in the link after you save. |
Please "sign" comments on talk pages: : Your user name: ~~~ : Your user name plus timestamp: ~~~~ : Five tildes give a timestamp: ~~~~~ |
one article title to another with this special link. |
#REDIRECT [[Asexuality]] |
To include links to non-image uploads such as sounds, use a "media" link.
|
[[media:Sg_mrob.ogg|Sound]] |
To list a page in a Category and have a link to the Category at page bottom. |
[[Category:AVENwiki basic information]] |
To link to a Category without causing the page to be listed in the category, add a colon |
[[:Category:AVENwiki basic information]] |
"What links here" etc. can be linked as: |
[[Special:Whatlinkshere/Help:Wikitext markup]] |
External links
What it looks like | What you type |
---|---|
AVEN, [1] | [http://www.asexuality.org AVEN], [http://www.asexuality.org] |
Email Example, | [mailto:email@example.com Email Example], [mailto:email@example.com] |
Or just give the URL: http://www.asexuality.org.
|
Or just give the URL: http://www.asexuality.org. |
.
Text formatting — controlling how it looks
What it looks like | What you type |
---|---|
Emphasize (italics), strongly (bold), very strongly (bold italics). (These are double and triple apostrophes, not double quotes.) Note: this can also be applied to links (e.g., AVEN). |
''Emphasize'', '''strongly''', '''''very strongly'''''. ''[[AVEN]]'' |
You can also write italic and bold. This is useful in mathematical formulas where you need specific font styles rather than emphasis.
(The difference between these two methods is not very important for graphical browsers, so most people ignore it). But it may make a big difference for the visually impaired ;-) |
You can also write <i>italic</i> and <b>bold</b>. This is useful in mathematical formulas where you need specific font styles rather than emphasis. :<b>F</b> = <i>m</i><b>a</b> |
You can also write in small caps. |
You can also write <span style="font-variant:small-caps"> in small caps</span>. |
A typewriter font, sometimes used for
technical terms and |
A typewriter font, sometimes used for <tt>technical terms</tt> and <code>computer code</code>.
|
You can use small text for captions. | You can use <small>small text</small> for captions. |
You can and underline new material. You can also mark
|
You can <strike>strike out deleted material</strike> and <u>underline new material</u>. You can also mark <del>deleted material</del> and <ins>inserted material</ins> using logical markup rather than visual markup. |
Subscript: x2 Superscript: x2 or x² Most browsers have an easier time formatting lines with ² than with <sup>2</sup> ε0 =
8.85 × 10−12
C² / J m.
|
Subscript: x<sub>2</sub> Superscript: x<sup>2</sup> or x² ε<sub>0</sub> = 8.85 × 10<sup>−12</sup> C² / J m. 1 hectare = 1 E4 m² |
Just show what I typed
A few different kinds of formatting will tell the wiki to display things as you typed them.
What it looks like | What you type |
---|---|
The nowiki tag ignores wiki ''markup''. It reformats text by removing newlines and multiple spaces. It still interprets special characters: → |
<nowiki> The nowiki tag ignores wiki ''markup''. It reformats text by removing newlines and multiple spaces. It still interprets special characters: → </nowiki> |
The pre tag ignores [[Wiki]] ''markup''. It also doesn't reformat text. It still interprets special characters: → |
<pre> The pre tag ignores [[Wiki]] ''markup''. It also doesn't reformat text. It still interprets special characters: → </pre> |
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: → |
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 |
Invisible comments to editors (<!-- -->) only appear while editing the page. So nothing shows up between here and here Public comments should go on the talk page. |
Invisible comments to editors (<!-- -->) only appear while editing the page. So nothing shows up between '''here''' <!-- comment here -->'''and here''' Public comments should go on the ''talk page''. |
Special characters
What it looks like | What you type |
---|---|
Umlauts and accents: (See characters Help:Special characters) |
À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ñ Ò Ó Ô Õ Ö Ø Ù Ú Û Ü ß à á â ã ä å æ ç è é ê ë ì í î ï ñ ò ó ô œ õ ö ø ù ú û ü ÿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ñ Ò Ó Ô Õ Ö Ø Ù Ú Û Ü ß à á â ã ä å æ ç è é ê ë ì í î ï ñ ò ó ô œ õ ö ø ù ú û ü ÿ |
Punctuation: ¿ ¡ « » § ¶ |
¿ ¡ « » § ¶ † ‡ • - – — ¿ ¡ « » § ¶ † ‡ • - – — |
Commercial symbols: |
™ © ® ¢ € ¥ £ ¤ ™ © ® ¢ € ¥ £ ¤ |
Greek characters: α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ ς τ υ φ χ ψ ω Γ Δ Θ Λ Ξ Π Σ Φ Ψ Ω α β γ δ ε ζ |
α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ ς τ υ φ χ ψ ω Γ Δ Θ Λ Ξ Π Σ Φ Ψ Ω α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ ς τ υ φ χ ψ ω Γ Δ Θ Λ Ξ Π Σ Φ Ψ Ω |
Math characters: ∫ ∑ ∏ √ − ± ∞ Problem symbols: ℵ ∉ ℵ ∉ |
∫ ∑ ∏ √ − ± ∞ ≈ ∝ ≡ ≠ ≤ ≥ × · ÷ ∂ ′ ″ ∇ ‰ ° ∴ ø ∈ ∩ ∪ ⊂ ⊃ ⊆ ⊇ ¬ ∧ ∨ ∃ ∀ ⇒ ⇔ → ↔ ↑ ∫ ∑ ∏ √ − ± ∞ ≈ ∝ ≡ ≠ ≤ ≥ × · ÷ ∂ ′ ″ ∇ ‰ ° ∴ ø ∈ ∩ ∪ ⊂ ⊃ ⊆ ⊇ ¬ ∧ ∨ ∃ ∀ ⇒ ⇔ → ↔ ↑ Problem symbols: ℵ ∉ ℵ ∉ |
Including another page — transclusion and templates
Changing a transcluded file will change every file that transcludes it.
This transclusion demo is a little bit of text from the page Help:Transclusion Demo to be included into any file. |
{{:Help:Transclusion Demo}} |
A special kind of page designed for transclusion. These pages are found in the Template: namespace Templates can even take parameters, by using{{templatename|value}} When you edit a page, all the templates used on the page are listed below the edit box. This article explains an inside joke used on the AVEN forums, especially the Just For Fun board. It does not describe any actual facts, nor does it represent the beliefs of asexuals as a whole. |
{{JFF}} |