Content deleted Content added
Francs2000 (talk | contribs) mNo edit summary |
TRANSWIKI: Copied from Meta:Help:Wiki markup examples. |
||
Line 6:
=== Organizing your writing -- sections, paragraphs, lists and lines ===
|-
|-
|;Sections and subsections
Start sections with header lines
Line 39 ⟶ 37:
<b><font style="font-size:100%"> Sub-subsection</font></b>
*Start with a second-level heading (<tt><nowiki>==</nowiki></tt>); don't use first-level headings (=).
*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.
*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 [[w: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>.
|<pre><nowiki>
== New section ==
Line 48 ⟶ 50:
==== Sub-subsection ====
</nowiki></pre>
|-
|
;[[w:newline|Newline]]:
Line 69 ⟶ 70:
You can make the wikitext more readable by putting in newlines.
You might find this causes future problems -- see [[w:Wikipedia:Don't use line breaks]] for details.
* When used in a list, a newline ''does'' affect the layout (See [[Help:List]]).
|<pre><nowiki>
A single
Line 81 ⟶ 82:
But an empty line
starts a new paragraph.</nowiki></pre>
|-
|You can break lines<br>
without starting a new paragraph.<p>
(The HTML tag <nowiki><br></nowiki> is sufficient. The system produces the XHTML code <nowiki><br /></nowiki>.)</p>
* Please use this sparingly.
* Close markup between lines; do not start a [[Help:Link|link]] or ''italics'' or '''bold''' on one line and close it on the next.
|<pre><nowiki>You can break lines<br>
without starting a new paragraph.</nowiki></pre>
|-
|
* ''Unordered [[Help:List|List]]s'' are easy to do:
** start every line with a star
Line 102 ⟶ 103:
*start again.
|<pre><nowiki>* Unordered Lists are easy to do:
** start every line with a star
*** more stars means deeper levels
Line 114:
</nowiki></pre>
|-
|
# Numbered lists are also good
## very organized
Line 127 ⟶ 125:
#with 1.
|<pre><nowiki># Numbered lists are also good
## very organized
## easy to follow
Line 137 ⟶ 134:
#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>
|-
|'''Definition list'''
; word : definition of the word
; longer phrase
: phrase defined
|<pre><nowiki>; word : definition of the word
; longer phrase
: phrase defined</nowiki></pre>
* One item per line; a newline can appear before the colon, but using a space before the colon improves parsing.
|-
|
;indenting
:A colon indents a line or paragraph.
A manual newline 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 manual newline starts a new paragraph.
</nowiki></pre>
|-
|
When there is a need for separating a block of text
<blockquote>
the '''blockquote''' command will indent both margins when needed instead of the left margin only as the colon does.
</blockquote>
This is useful for (as the name says) inserting blocks of quoted (and cited) text.
|
<pre><nowiki>
<blockquote>
The '''blockquote''' command will indent
both margins when needed instead of the
left margin only as the colon does.
</blockquote>
</nowiki></pre>
|-
|<center>Centered text.</center>
* Please note the US-English spelling of "center".
|<pre><nowiki><center>Centered text.</center></nowiki></pre>
|-
|A [[w:horizontal dividing line|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.
|<pre><nowiki>A horizontal dividing line:
this is above it...
----
...and this is below
</nowiki></pre> |}
=== Links, URLs ===
Line 203:
*[[the weather in London|Links to nonexistent pages]] are shown in red -- [[Help:Starting a new page]] tells about creating the page.
*When the mouse cursor "hovers" over the link, you see a "hover box" containing...
|-
|-
|
;Basic
Sue is reading the [[official position]]
(or [[Official position]]s).
|<pre><nowiki>Sue is reading the
[[official position]]
(or [[Official position]]s).</nowiki></pre>
|-
|
;Interwiki linking
A link to the page on another wiki (e.g. the same subject in another language)
*For more info see [[m:Help:Interwiki linking]].
*[[:fr:Wikipédia:Aide]].
|<pre><nowiki>
*For more info see [[m:Help:Interwiki linking]].
*[[:fr:Wikipédia:Aide]].
</nowiki></pre
|-
|
;Section of page
*[[List of cities by country#Morocco]].
Line 238 ⟶ 232:
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 alreay 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>. For more info, see [[Help:Editing FAQ#Q: Can I link to a specific section header if there are multiple section headers of the same name? If so, how?|Help:Editing FAQ]].
|
<pre><nowiki>*[[List of cities by country#Morocco]].
*[[List of cities by country#Sealand]].</nowiki></pre>
<pre><nowiki></nowiki></pre>
|-
|
;[[Help:Piped link|Piped link]]
Use a pipe "'''|'''" to create a '''link label''':
Line 252 ⟶ 243:
*[[List of cities by country#Morocco|
Cities in Morocco]]
|<pre><nowiki>*[[Help:Link|About Links]]
*[[List of cities by country#Morocco|
Cities in Morocco]]
</nowiki></pre>
|-
|'''"blank" pipes''' hide:
*Words in parentheses: [[kingdom (biology)|kingdom]].
*Namespace: [[Meta:Requests for adminship|Requests for adminship]].
After you save, the server automatically fills in the link label.
|<pre><nowiki>*In parentheses: [[kingdom (biology)|]].
*Namespace: [[Meta:Requests for adminship|]].</nowiki></pre>
|-
|
;Links to nonexistent pages
[[The weather in London]] is a page that doesn't exist yet.
*You can create it by clicking on the link.
*Have a look at [[Help:Starting a new page|how to start a page]] guide and the naming conventions page for your project.
|<pre><nowiki>[[The weather in London]] is a page
that doesn't exist yet.</nowiki></pre>
|-
|
;Link to yourself
You should "sign" your comments on talk pages:
Line 289 ⟶ 269:
: Or your user name plus date/time: [[User:Karl Wick|Karl Wick]] 08:10 Oct 5, 2002 (UTC)
The server will fill in the link after you save.
|<pre><nowiki>You should "sign" your comments on talk pages:
: Your user name: ~~~
: Or your user name plus date/time: ~~~~
</nowiki></pre>
|-
|
;[[Help:Redirect|Redirect]]s
one article title to another with this special link.
|<pre><nowiki>#REDIRECT [[United States]]</nowiki></pre>
|-
|
;"Magic" links
* [[w:ISBN|ISBN]] links to books: ISBN 0123456789X (See [[Help:ISBN links]]
* [[w:Request for Comments|RFC]] links to Requests for Comments: RFC 123 (See [[mediawiki:Rfcurl]])
|<pre><nowiki>
ISBN 0123456789X
RFC 123</nowiki></pre>
|-
|
;Media links
To include links to non-image uploads such as sounds, use a "media" link.
<br/>[[media:Sg_mrob.ogg|Sound]]
|<
<nowiki>
[[media:Sg_mrob.ogg|Sound]]
</nowiki></pre>
|-
|
;Links to Categories
To include links to a Category page.
<br/>[[:Category:English documentation]]
|<
<nowiki>
[[:Category:English documentation]]
</nowiki></pre>
|-
|
;Dates:
Use links for dates, so everyone can set their own display order. Use [[Special:Preferences]] to change your own date display setting.
|<pre><nowiki>[[July 20]], [[1969]] , [[20 July]] [[1969]]
and [[1969]]-[[07-20]]
</nowiki></pre>will all appear as [[20 July]]-[[1969]] if you set your date display preference to 1 January 2001.
|-
|
;Special pages
"What links here" and "Recent changes" can be linked as:<br/>
[[Special:Whatlinkshere/{{NAMESPACE}}:{{PAGENAME}}]] and
[[Special:Recentchangeslinked/{{NAMESPACE}}:{{PAGENAME}}]]
|<pre><nowiki>
[[Special:Whatlinkshere/
Help:Editing]] and
[[Special:Recentchangeslinked/
Help:Editing]]</nowiki></pre>
|}
====External links====
|-
|[http://www.nupedia.com Nupedia], [http://www.nupedia.com]
[http://www.nupedia.com Nupedia],
[http://www.nupedia.com]</nowiki></pre>
|-
|Or just give the URL: http://www.nupedia.com.
*In the [[Help:URL|URL]] all symbols must be among: A-Z a-z 0-9 ._\/~%- &#?!=()@ \x80-\xFF. If a URL contains a different character it should be converted; for example, ^ has to be written ^ (to be looked up in [[w:ASCII|ASCII]]). A blank space can also be converted into an underscore.
|<pre><nowiki>Or just give the URL:
http://www.nupedia.com.</nowiki></pre>
|}
=== Images, video, and sounds ===
See also:
|-
|-
|
;In-line picture: [[Image:Wiki.png|Wikipedia - The Free Encyclopedia]]
* For many projects, only images that have been uploaded to the same project or [[commons:|the Commons]] can be used. To upload images, use the [[Special:Upload|upload page]]. You can find the uploaded image on the [[Special:Imagelist|image list]]
|<pre><nowiki>
A picture: [[Image:Wiki.png]]</nowiki></pre>
or, with alternative text (''strongly'' encouraged) <!-- actually required in HTML4 --> vbgf
Line 414 ⟶ 357:
[[w:Web browser|Web browser]]s render alternative text when not displaying an image -- for example, when the image isn't loaded, or in a text-only browser, or when spoken aloud. See [[w:Wikipedia:Alternative text for images|Alternative text for images]] for help on choosing alternative text. See [[Help:Extended image syntax|Extended image syntax]] for more options.
There is [[Help:Images and other uploaded files#More_details_and_examples_on_embedding_internal_images__into_articles|more information]] on resizing and other formatting tricks.
|-
|
;Other ways of linking to pictures
*The [[Help:Image page|Image page]]: [[:Image:Wiki.png]]
*A link to just the picture: [[media:Wiki.png|Wikipedia]]
* Clicking on an image displayed on a page (such as any of the ones above) also leads to the description page
* To include links to images shown as links instead of drawn on the page, use a "media" link.
|<pre><nowiki>[[:Image:Wiki.png]]
[[media:Wiki.png|Wikipedia]]
</nowiki></pre>
|-
|'''Other Media Links -- Video and Sounds'''
Use a "media" link: [[media:Sg_mrob.ogg|Sound]]
<br>There is
[[Help:
|<pre><nowiki>[[media:Sg_mrob.ogg|Sound]]</nowiki></pre>
|}
=== Text formatting -- controlling how it looks ===
Line 674 ⟶ 607:
* ASCII art;
* chemical structures;
For larger preformatted text passages you can use the <nowiki><pre>a lot of text</pre></nowiki> tag.
WARNING If you make it wide,
Line 692 ⟶ 627:
* ASCII art;
* chemical structures;
</nowiki></pre>
</td> </tr>
|