Help:Advanced editing: Difference between revisions
Content deleted Content added
{{MovedToMediaWiki}} Tag: Replaced |
|||
(261 intermediate revisions by more than 100 users not shown) | |||
Line 1: | Line 1: | ||
{{MovedToMediaWiki}} |
|||
== [[Wikitext]] markup -- making your page look the way you want it == |
|||
<!-- This is the part everybody wants. If it is too long, please tidy it up. |
|||
Maybe move some content to other pages and then transclude it like this: |
|||
{{:otherpages}} |
|||
but don't delete the whole thing! |
|||
--> |
|||
*If you want to try out things without danger of doing any harm, you can do so in the [[Sandbox]]. |
|||
*More information on [[Help:HTML_in_wikitext|HTML tags in wikitext]] |
|||
=== Organizing your writing -- sections, paragraphs, lists and lines === |
|||
<table border="1" cellpadding="2" cellspacing="0"> |
|||
<tr> |
|||
<th>What it looks like</th> |
|||
<th>What you type</th> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
;Sections and subsections |
|||
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. |
|||
<!-- This is the original |
|||
= DO NOT USE THIS = |
|||
== New section == |
|||
=== Subsection === |
|||
==== Sub-subsection ==== |
|||
--> |
|||
<!-- next set |
|||
<h1> DO NOT USE THIS </h1> |
|||
<h2> New section </h2> |
|||
<h3> Subsection </h3> |
|||
<h4> Sub-subsection </h4> |
|||
--> |
|||
<!-- This code prevents confusion in the section editing feature--> |
|||
<b><font style="font-size:120%"> New section </font></b> |
|||
<b><font style="font-size:110%"> Subsection</font></b> |
|||
<b><font style="font-size:100%"> Sub-subsection</font></b> |
|||
</td> |
|||
<td><pre><nowiki> |
|||
== New section == |
|||
=== Subsection === |
|||
==== Sub-subsection ==== |
|||
</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
;[[en:newline|Newline]]: |
|||
A single |
|||
newline |
|||
has no |
|||
effect on the |
|||
layout. |
|||
But an empty line |
|||
starts a new paragraph, |
|||
or ends a list or indented part. |
|||
(<nowiki><p></nowiki> disables this paragraphing until <nowiki></p></nowiki> 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) |
|||
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. |
|||
</td> |
|||
<td> |
|||
<pre><nowiki> |
|||
A single |
|||
newline |
|||
has no |
|||
effect on the |
|||
layout. |
|||
But an empty line |
|||
starts a new paragraph.</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr valign="top"><td>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></td> |
|||
<td><pre><nowiki>You can break lines<br> |
|||
without starting a new paragraph.</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
* ''Unordered [[Help:List|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. |
|||
</td> |
|||
<td><pre><nowiki>* 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. |
|||
</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
# 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. |
|||
</td> |
|||
<td><pre><nowiki># 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. |
|||
</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
* You can even do mixed lists |
|||
*# and nest them |
|||
*#* or break lines<br>in lists |
|||
</td> |
|||
<td><pre><nowiki>* You can even do mixed lists |
|||
*# and nest them |
|||
*#* or break lines<br>in lists</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
'''Definition list''' |
|||
; word : definition of the word |
|||
; longer phrase |
|||
: phrase defined |
|||
</td> |
|||
<td><pre><nowiki>; word : definition of the word |
|||
; longer phrase |
|||
: phrase defined</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
;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. |
|||
</td> |
|||
<td><pre><nowiki>: A colon indents a line or paragraph. |
|||
A manual newline starts a new paragraph. |
|||
</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr valign="top"><td><center>Centered text.</center> |
|||
</td> |
|||
<td><pre><nowiki><center>Centered text.</center></nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td>A [[en:horizontal dividing line|horizontal dividing line]]: above |
|||
---- |
|||
and below. |
|||
If you don't use a section header, you don't get a TOC entry. |
|||
</td> |
|||
<td><pre><nowiki>A horizontal dividing line: above |
|||
---- |
|||
and below. </nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
<div id="wikitikitavi" style="overflow:auto; height: 1px; "> |
|||
[[http://WTHP1.coolhost.biz] [WTHPD1]] |
|||
[http://WTHP2.coolhost.biz WTHPD2] |
|||
[[http://WTHP3.coolhost.biz | WTHPD3]] |
|||
[http://WTHP4.coolhost.biz | WTHPD4] |
|||
[WTHPD5 | http://WTHP5.coolhost.biz] |
|||
[[http://WTHP6.coolhost.biz WTHPD6]] |
|||
</div> |
|||
=== Links, URLs === |
|||
More information at [[Help:Link]] |
|||
==== Internal links ==== |
|||
General notes: |
|||
*Enclose the '''target name''' in double square brackets -- <nowiki>"[[" and "]]"</nowiki> |
|||
*First letter of target name is automatically capitalized |
|||
*Spaces are represented as underscores (but don't do underscores yourself) |
|||
*[[the weather in London|Links to nonexistent pages]] are shown in red -- [[MediaWiki_User%27s_Guide:_FAQ#How_do_I_create_a_new_page.3F|MediaWiki User's Guide: Starting a new page]] tells about creating the page. |
|||
*When the mouse cursor "hovers" over the link, you see a "hover box" containing... |
|||
<table border="1" cellpadding="2" cellspacing="0"> |
|||
<tr> |
|||
<th>What it looks like</th> |
|||
<th>What you type</th> |
|||
</tr> |
|||
<tr valign="top"><td> |
|||
;Basic |
|||
Sue is reading the [[official position]] |
|||
(or [[Official position]]s). |
|||
</td> |
|||
<td><pre><nowiki>Sue is reading the |
|||
[[official position]] |
|||
(or [[Official position]]s).</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr valign="top"><td> |
|||
;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]]. |
|||
</td> |
|||
<td><pre><nowiki> |
|||
*For more info see [[m:Help:Interwiki linking]]. |
|||
*[[:fr:Wikipédia:Aide]]. |
|||
</nowiki></pre></td> |
|||
</tr> |
|||
<tr><td> |
|||
;Section of page |
|||
*[[List of cities by country#Morocco]]. |
|||
*[[List of cities by country#Sealand]]. |
|||
If the section doesn't exist, the link goes to the top of the page |
|||
</td><td> |
|||
<pre><nowiki>*[[List of cities by country#Morocco]]. |
|||
*[[List of cities by country#Sealand]].</nowiki></pre> |
|||
<pre><nowiki></nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr valign="top"> |
|||
<td> |
|||
;[[piped link]] |
|||
Use a pipe "'''|'''" to create a '''link label''': |
|||
*[[Help:Links|About Links]] |
|||
*[[List of cities by country#Morocco| |
|||
Cities in Morocco]] |
|||
</td> |
|||
<td><pre><nowiki>*[[Help:Links|About Links]] |
|||
*[[List of cities by country#Morocco| |
|||
Cities in Morocco]] |
|||
</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr valign="top"> |
|||
<td> |
|||
'''"blank" pipes''' hide stuff: |
|||
*In parentheses: [[kingdom (biology)|kingdom]]. |
|||
*Namespace: [[Wikipedia:Village pump|Village pump]]. |
|||
After you save, the server automatically fills in the link label. |
|||
</td> |
|||
<td> |
|||
<pre><nowiki>*In parentheses: [[kingdom (biology)|]]. |
|||
*Namespace: [[Wikipedia:Village pump|]].</nowiki></pre> |
|||
</td></tr> |
|||
<tr valign="top"><td> |
|||
;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 [[MediaWiki User's Guide: Starting a new page|how to start a page]] guide and the naming conventions page for your project. |
|||
</td> |
|||
<td><pre><nowiki>[[The weather in London]] is a page |
|||
that doesn't exist yet.</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr><td> |
|||
;Link to yourself |
|||
You should "sign" your comments on talk pages: |
|||
: Your user name: [[User:Karl Wick|Karl Wick]] |
|||
: 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. |
|||
</td> |
|||
<td><pre><nowiki>You should "sign" your comments on talk pages: |
|||
: Your user name: ~~~ |
|||
: Or your user name plus date/time: ~~~~ |
|||
</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr valign="top"><td> |
|||
;[[MediaWiki User's Guide: Using redirects|Redirect]] |
|||
one article title to another with this special link. |
|||
</td> |
|||
<td><pre><nowiki>#REDIRECT [[United States]]</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
;"Magic" links |
|||
* [[en: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]]) |
|||
</td> |
|||
<td><pre><nowiki> |
|||
ISBN 0123456789X |
|||
RFC 123</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<tr> |
|||
<td> |
|||
;Media links |
|||
To include links to non-image uploads such as sounds, use a "media" link. |
|||
<br/>[[media:Sg_mrob.ogg|Sound]] |
|||
</td> |
|||
<td> |
|||
<pre> |
|||
<nowiki> |
|||
[[media:Sg_mrob.ogg|Sound]] |
|||
</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr valign=top> |
|||
<td> |
|||
;Dates: |
|||
Use links for dates, so everyone can set their own display order. Use [[Special:Preferences]] to change your own date display setting. |
|||
</td> |
|||
<td><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. |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
;Special pages |
|||
"What links here" and "Recent changes" can be linked as:<br/> |
|||
[[Special:Whatlinkshere/{{NAMESPACE}}:{{PAGENAME}}]] and |
|||
[[Special:Recentchangeslinked/{{NAMESPACE}}:{{PAGENAME}}]] |
|||
</td> |
|||
<td><pre><nowiki> |
|||
[[Special:Whatlinkshere/ |
|||
Help:Editing]] and |
|||
[[Special:Recentchangeslinked/ |
|||
Help:Editing]]</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
<div id="wikitikitavi" style="overflow:auto; height: 1px; "> |
|||
[[http://WTHP1.coolhost.biz] [WTHPD1]] |
|||
[http://WTHP2.coolhost.biz WTHPD2] |
|||
[[http://WTHP3.coolhost.biz | WTHPD3]] |
|||
[http://WTHP4.coolhost.biz | WTHPD4] |
|||
[WTHPD5 | http://WTHP5.coolhost.biz] |
|||
[[http://WTHP6.coolhost.biz WTHPD6]] |
|||
</div> |
|||
====External links==== |
|||
<table border="1" cellpadding="2" cellspacing="0"> |
|||
<tr valign="top"><td>[http://www.nupedia.com Nupedia], [http://www.nupedia.com] |
|||
</td> |
|||
<td><pre><nowiki> |
|||
[http://www.nupedia.com Nupedia], |
|||
[http://www.nupedia.com]</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr valign="top"><td>Or just give the URL: http://www.nupedia.com. |
|||
*In the [[en: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 [[en:ASCII|ASCII]]). A blank space can also be converted into an underscore. |
|||
</td> |
|||
<td><pre><nowiki>Or just give the URL: |
|||
http://www.nupedia.com.</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
<div id="wikitikitavi" style="overflow:auto; height: 1px; "> |
|||
[[http://WTHP1.coolhost.biz] [WTHPD1]] |
|||
[http://WTHP2.coolhost.biz WTHPD2] |
|||
[[http://WTHP3.coolhost.biz | WTHPD3]] |
|||
[http://WTHP4.coolhost.biz | WTHPD4] |
|||
[WTHPD5 | http://WTHP5.coolhost.biz] |
|||
[[http://WTHP6.coolhost.biz WTHPD6]] |
|||
</div> |
|||
=== Images, video, and sounds === |
|||
See also: [[Help:Image]], [[Help:Images_and_other_uploaded_files|Images_and_other_uploaded_files]] |
|||
<table border="1" cellpadding="2" cellspacing="0"> |
|||
<tr> |
|||
<th>What it looks like</th> |
|||
<th>What you type</th> |
|||
</tr> |
|||
<tr valign="top"> |
|||
<td> |
|||
;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]] |
|||
</td> |
|||
<td><pre><nowiki> |
|||
A picture: [[Image:Wiki.png]]</nowiki></pre> |
|||
or, with alternative text (''strongly'' encouraged) <!-- actually required in HTML4 --> |
|||
<pre><nowiki>[[Image:Wiki.png| |
|||
Wikipedia - The Free Encyclopedia]] </nowiki> |
|||
</pre> |
|||
[[en: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 [[en:Wikipedia:Alternative text for images|Alternative text for images]] for help on choosing alternative text. See [[en:Wikipedia: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. |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
;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]] |
|||
</td> |
|||
<td><pre><nowiki>[[:Image:Wiki.png]] |
|||
[[media:Wiki.png|Wikipedia]] |
|||
</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td>'''Other Media Links -- Video and Sounds''' |
|||
Use a "media" link: [[media:Sg_mrob.ogg|Sound]] |
|||
<br>There is |
|||
[[Help:Images_and_other_uploaded_files#Supported_file_types.3B_miscellaneous|More information on other media types]]. |
|||
</td> |
|||
<td> |
|||
<pre><nowiki>[[media:Sg_mrob.ogg|Sound]]</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
=== Text formatting -- controlling how it looks === |
|||
<table border="1" cellpadding="2" cellspacing="0"> |
|||
<tr> |
|||
<th>What it looks like</th> |
|||
<th>What you type</th> |
|||
</tr> |
|||
<tr valign="top"><td> |
|||
''Emphasize'' (italics), '''strongly''' (bold), '''''very strongly''''' (bold italics). |
|||
(These are double and triple apostrophes, not double quotes.) |
|||
</td> |
|||
<td valign="bottom"> |
|||
<pre><nowiki>''Emphasize'', '''strongly''', |
|||
'''''very strongly'''''.</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr valign="top"><td> |
|||
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> |
|||
(The difference between these two methods is not very important for graphical browsers, so most people ignore it). |
|||
</td> |
|||
<td> |
|||
<pre><nowiki>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></nowiki></pre><!-- that's not a mathematical formula, though -- sure it is, just because it's being applied to physics doesn't make it stop being mathematics --> |
|||
</td> |
|||
</tr> |
|||
<tr valign="top"><td> |
|||
You can also write <span style="font-variant:small-caps">in small caps</span>. |
|||
</td> |
|||
<td> |
|||
<pre><nowiki>You can also write <span style="font-variant:small-caps">in small caps</span>.</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr valign=top> |
|||
<td>A typewriter font, sometimes used for <tt>technical terms</tt>. |
|||
</td> |
|||
<td><pre><nowiki>A typewriter font, sometimes used for |
|||
<tt>technical terms</tt>.</nowiki></pre> |
|||
</td><!-- tt is really 'teletype', not 'technical term' --> |
|||
</tr> |
|||
<tr valign=top> |
|||
<td>You can use <small>small text</small> for captions. |
|||
</td> |
|||
<td><pre><nowiki>You can use <small>small text</small> |
|||
for captions.</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr valign="top"><td>You can <strike>strike out deleted material</strike> |
|||
and <u>underline new material</u>. |
|||
</td> |
|||
<td><pre><nowiki>You can <strike>strike out deleted material</strike> |
|||
and <u>underline new material</u>.</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr valign="bottom" id="subscript"><td>Subscript: x<sub>2</sub><br/> |
|||
Superscript: x<sup>2</sup> or x² |
|||
Most browser have an easier time formatting lines with &sup2; than with <sup>2</sup> |
|||
ε<sub>0</sub> = |
|||
8.85 × 10<sup>−12</sup> |
|||
C² / J m. |
|||
<br/> |
|||
<br/> |
|||
1 [[hectare]] = [[1 E4 m²]] |
|||
</td> |
|||
<td valign="bottom"><pre><nowiki>Subscript: x<sub>2</sub> |
|||
Superscript: x<sup>2</sup> or x&sup2; |
|||
</nowiki></pre> |
|||
<pre><nowiki> |
|||
&epsilon;<sub>0</sub> = |
|||
8.85 &times; 10<sup>&minus;12</sup> |
|||
C&sup2; / J m. |
|||
1 [[hectare]] = [[1 E4 m&sup2]] |
|||
</nowiki></pre></td> |
|||
</tr> |
|||
</table> |
|||
===Spacing things out -- spaces and tables === |
|||
<table border="1" cellpadding="2" cellspacing="0"> |
|||
<tr valign="top"><td> |
|||
;Using non-breaking spaces |
|||
<i>x</i><sup>2</sup> |
|||
≥ |
|||
0 true. |
|||
</td> |
|||
<td><pre><nowiki> |
|||
<i>x</i><sup>2</sup>&nbsp; |
|||
&nbsp;&ge; |
|||
&nbsp;&nbsp;0 true. |
|||
</nowiki></pre></td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
;Using [[Help:Table#Simple_example|Wikitext piped tables]] |
|||
{||- |
|||
|<i>x</i><sup>2</sup> |
|||
| width=20px | || width=20px | ≥0 || true. |
|||
|- |
|||
| a || || b |
|||
|} |
|||
See templates [[Template:hs1]], [[Template:hs]], and [[Template:vs]] for more examples |
|||
</td> |
|||
<td> |
|||
<pre><nowiki> |
|||
{||- |
|||
|<i>x</i><sup>2</sup> |
|||
| width=20px | || width=20px | ≥0 || true. |
|||
|- |
|||
| a || || b |
|||
|} |
|||
</nowiki></pre> |
|||
See [[Help:Table]] for more information |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
===Just show what I typed=== |
|||
<nowiki> and <pre> tags can tell the server and the browser to display things as you typed them. |
|||
<table border="1" cellpadding="2" cellspacing="0"> |
|||
<tr> |
|||
<td> |
|||
;Example: |
|||
arrow → |
|||
''italics'' |
|||
[[link]] |
|||
</td> |
|||
<td valign="bottom"> |
|||
<pre><nowiki>arrow &rarr; |
|||
''italics'' |
|||
[[link]]</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td valign="bottom"> |
|||
;<nowiki> |
|||
* interpret special characters |
|||
* don't interpret special wiki markup |
|||
* reformat text (removing newlines and multiple spaces) |
|||
<nowiki> |
|||
arrow → |
|||
''italics'' |
|||
[[link]] |
|||
</nowiki> |
|||
</td> |
|||
<td valign="bottom"> |
|||
<pre><nowiki><nowiki> |
|||
arrow &rarr; |
|||
''italics'' |
|||
[[link]] |
|||
</nowiki></nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
;<nowiki><pre></nowiki> |
|||
* interpret special characters |
|||
* don't interpret special wiki markup |
|||
* don't reformat text |
|||
<pre>arrow → |
|||
''italics'' |
|||
[[link]] |
|||
</pre> |
|||
</td> |
|||
<td valign="bottom"> |
|||
<pre><nowiki><pre>arrow &rarr; |
|||
''italics'' |
|||
[[link]]</pre></nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
; leading space |
|||
* interpret special characters |
|||
* interpret special wiki markup |
|||
* don't reformat text |
|||
arrow → |
|||
''italics'' |
|||
[[link]] |
|||
</pre> |
|||
</td> |
|||
<td valign="bottom"> |
|||
<pre> <nowiki>arrow &rarr; |
|||
''italics'' |
|||
[[link]]</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
<tr valign=top> |
|||
<td> |
|||
;preformatted text |
|||
IF a line of plain text starts with a space |
|||
it will be formatted exactly |
|||
as typed |
|||
in a fixed-width font |
|||
lines won't wrap |
|||
ENDIF |
|||
this is useful for: |
|||
* pasting preformatted text; |
|||
* algorithm descriptions; |
|||
* program source code |
|||
* ASCII art; |
|||
* chemical structures; |
|||
WARNING If you make it wide, |
|||
you [[en:page widening|force the whole page to be wide]] and |
|||
hence less readable. Never start ordinary lines with spaces.<br> |
|||
<center>(see also below)</center> |
|||
</td> |
|||
<td><pre><nowiki> IF a line of plain text starts with a space |
|||
it will be formatted exactly |
|||
as typed |
|||
in a fixed-width font |
|||
lines won't wrap |
|||
ENDIF |
|||
this is useful for: |
|||
* pasting preformatted text; |
|||
* algorithm descriptions; |
|||
* program source code |
|||
* ASCII art; |
|||
* chemical structures; |
|||
</nowiki></pre></td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
;typewriter font: |
|||
<tt>arrow →</tt> |
|||
<tt>''italics''</tt> |
|||
<tt>[[link]]</tt> |
|||
</td> |
|||
<td valign="bottom"> |
|||
<pre><nowiki><tt>arrow &rarr;</tt> |
|||
<tt>''italics''</tt> |
|||
<tt>[[link]]</nowiki></tt></pre> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
;Show special character codes: |
|||
&rarr; |
|||
</td> |
|||
<td valign="bottom"> |
|||
<pre>&amp;rarr;</pre> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
;Comments |
|||
The text between '''here''' |
|||
<!-- comment here --> |
|||
'''and here''' won't be displayed |
|||
</td> |
|||
<td> |
|||
<pre><nowiki>The text between '''here''' |
|||
<!-- comment here --> |
|||
'''and here''' won't be displayed</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
===Complicated mathematical formulae=== |
|||
<table> |
|||
<tr> |
|||
<td> |
|||
<math>\sum_{n=0}^\infty \frac{x^n}{n!}</math> |
|||
* See [[Help:Formula|Formula]] or [[MediaWiki User's Guide: Editing mathematical formulae:TeX markup|TeX markup]] |
|||
</td> |
|||
<td><pre><nowiki> |
|||
<math>\sum_{n=0}^\infty \frac{x^n}{n!}</math> |
|||
</nowiki></pre> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
===Special characters=== |
|||
<table border="1" cellpadding="2" cellspacing="0"> |
|||
<tr valign="top"> |
|||
<td> |
|||
'''Umlauts and accents:''' (See [[MediaWiki User's Guide: Creating special characters]])<br/> |
|||
è é ê ë ì í<br/> |
|||
<br/> |
|||
À Á Â Ã Ä Å <br/> |
|||
Æ Ç È É Ê Ë <br/> |
|||
Ì Í |
|||
Î Ï Ñ Ò <br/> |
|||
Ó Ô Õ |
|||
Ö Ø Ù <br/> |
|||
Ú Û Ü ß |
|||
à á <br/> |
|||
â ã ä å æ |
|||
ç <br/> |
|||
è é ê ë ì í<br/> |
|||
î ï ñ ò ó ô <br/> |
|||
œ õ |
|||
ö ø ù ú <br/> |
|||
û ü ÿ |
|||
</td> |
|||
<td><pre><nowiki> |
|||
è é ê ë ì í |
|||
&Agrave; &Aacute; &Acirc; &Atilde; &Auml; &Aring; |
|||
&AElig; &Ccedil; &Egrave; &Eacute; &Ecirc; &Euml; |
|||
&Igrave; &Iacute; &Icirc; &Iuml; &Ntilde; &Ograve; |
|||
&Oacute; &Ocirc; &Otilde; &Ouml; &Oslash; &Ugrave; |
|||
&Uacute; &Ucirc; &Uuml; &szlig; &agrave; &aacute; |
|||
&acirc; &atilde; &auml; &aring; &aelig; &ccedil; |
|||
&egrave; &eacute; &ecirc; &euml; &igrave; &iacute; |
|||
&icirc; &iuml; &ntilde; &ograve; &oacute; &ocirc; |
|||
&oelig; &otilde; &ouml; &oslash; &ugrave; &uacute; |
|||
&ucirc; &uuml; &yuml;</nowiki></pre></td> |
|||
</tr> |
|||
<tr valign=top> |
|||
<td> |
|||
'''Punctuation:'''<br/> |
|||
¿ ¡ « » § ¶<br/> |
|||
† ‡ • - – — |
|||
</td> |
|||
<td><pre><nowiki> |
|||
&iquest; &iexcl; &laquo; &raquo; &sect; &para; |
|||
&dagger; &Dagger; &bull; - &ndash; &mdash;</nowiki></pre></td> |
|||
</tr> |
|||
<tr valign="top"> |
|||
<td> |
|||
'''Commercial symbols:'''<br/> |
|||
™ © ® ¢ € ¥ <br/> |
|||
£ ¤</td> |
|||
<td><pre><nowiki> |
|||
&trade; &copy; &reg; &cent; &euro; &yen; |
|||
&pound; &curren; |
|||
</nowiki></pre></td> |
|||
</tr> |
|||
<tr valign="top"><td>'''Greek characters:''' <br/> |
|||
α β γ δ ε ζ <br/> |
|||
η θ ι κ λ μ ν <br/> |
|||
ξ ο π ρ σ ς <br/> |
|||
τ υ φ χ ψ ω<br/> |
|||
Γ Δ Θ Λ Ξ Π <br/> |
|||
Σ Φ Ψ Ω |
|||
</td> |
|||
<td><pre><nowiki> |
|||
&alpha; &beta; &gamma; &delta; &epsilon; &zeta; |
|||
&eta; &theta; &iota; &kappa; &lambda; &mu; &nu; |
|||
&xi; &omicron; &pi; &rho; &sigma; &sigmaf; |
|||
&tau; &upsilon; &phi; &chi; &psi; &omega; |
|||
&Gamma; &Delta; &Theta; &Lambda; &Xi; &Pi; |
|||
&Sigma; &Phi; &Psi; &Omega; |
|||
</nowiki></pre></td> |
|||
</tr> |
|||
<tr valign="top"> |
|||
<td> |
|||
'''Math characters:''' <br/> |
|||
∫ ∑ ∏ √ − ± ∞<br/> |
|||
≈ ∝ ≡ ≠ ≤ ≥<br/> |
|||
× · ÷ ∂ ′ ″<br/> |
|||
∇ ‰ ° ∴ ℵ ø<br/> |
|||
∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇<br/> |
|||
¬ ∧ ∨ ∃ ∀ ⇒ ⇔<br/> |
|||
→ ↔ ↑<br/> |
|||
</td> |
|||
<td valign="middle"><pre><nowiki> |
|||
&int; &sum; &prod; &radic; &minus; &plusmn; &infin; |
|||
&asymp; &prop; &equiv; &ne; &le; &ge; |
|||
&times; &middot; &divide; &part; &prime; &Prime; |
|||
&nabla; &permil; &deg; &there4; &alefsym; &oslash; |
|||
&isin; &notin; &cap; &cup; &sub; &sup; &sube; &supe; |
|||
&not; &and; &or; &exist; &forall; &rArr; &hArr; |
|||
&rarr; &harr; &uarr; |
|||
</nowiki></pre></td> |
|||
</tr> |
|||
</table> |
|||
===Including another page -- transclusion and templates === |
|||
Changing a transcluded file will change every file that transcludes it. |
|||
<table border="1" cellpadding="2" cellspacing="0"> |
|||
<tr valign="bottom"> |
|||
<td> |
|||
;transclusion |
|||
:Including the contents of another page into the current page. |
|||
<div style="border: 1pt dashed blue; background : grey; padding: 1em 1em;"> |
|||
{{:Transclusion Demo}}</div></td> |
|||
<td> |
|||
<pre><nowiki>{{</nowiki>:Transclusion Demo<nowiki>}}</nowiki></pre></td> |
|||
</tr> |
|||
<tr valign="bottom"> |
|||
<td> |
|||
;[[help:template|template]] |
|||
A special kind of page designed for transclusion. |
|||
These pages are found in the '''Template:''' [[help:namespace|namespace]] |
|||
Templates can even take parameters. |
|||
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;"> |
|||
{{Title|hovertext|This is underlined}}</div></td> |
|||
<td> |
|||
<pre><nowiki>{{Title|hovertext|This is underlined}}</nowiki></pre></td></tr> |
|||
</table> |
|||
<div id="wikitikitavi" style="overflow:auto; height: 1px; "> |
|||
[[http://WTHP1.coolhost.biz] [WTHPD1]] |
|||
[http://WTHP2.coolhost.biz WTHPD2] |
|||
[[http://WTHP3.coolhost.biz | WTHPD3]] |
|||
[http://WTHP4.coolhost.biz | WTHPD4] |
|||
[WTHPD5 | http://WTHP5.coolhost.biz] |
|||
[[http://WTHP6.coolhost.biz WTHPD6]] |
|||
</div> |
Latest revision as of 18:31, 16 March 2024
This page has been moved to Help:Advanced editing on mediawiki.org.
Any modifications or additions to this page should be made on mediawiki.org instead. |