Help:Wiki markup examples: Difference between revisions

Content deleted Content added
TRANSWIKI: Copied from Meta:Help:Wiki markup examples.
m unicodify (0.7 kB saved)
Line 219:
|-
|
;Basic + [[Help:Editing#Text_formatting_Text formatting --_controlling_how_it_looks controlling how it looks|Text formatting]]
You can also ''italicize''/etc. links: e.g., ''[[Wikipedia]]''.
|<pre><nowiki> ''[[Wikipedia]]'' </nowiki></pre>
Line 248:
Use a pipe "'''|'''" to create a '''link label''':
*[[Help:Link|About Links]]
*[[List of cities by country#Morocco|Cities in Morocco]]
Cities in Morocco]]
|<pre><nowiki>*[[Help:Link|About Links]]
*[[List of cities by country#Morocco|Cities in Morocco]]
Cities in Morocco]]
</nowiki></pre>
|-
Line 366 ⟶ 364:
A picture: [[Image:Wiki.png]]</nowiki></pre>
or, with alternative text (''strongly'' encouraged) <!-- actually required in HTML4 --> vbgf
<pre><nowiki>[[Image:Wiki.png|Wikipedia - The Free Encyclopedia]] </nowiki>
Wikipedia - The Free Encyclopedia]] </nowiki>
</pre>
[[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_articlesMore details and examples on embedding internal images into articles|more information]] on resizing and other formatting tricks.
|-
|
Line 385 ⟶ 382:
Use a "media" link: [[media:Sg_mrob.ogg|Sound]]
<br>There is
[[Help:Images and other uploaded files#Supported_file_typesSupported file types.3B_miscellaneous3B miscellaneous|More information on other media types]].
|<pre><nowiki>[[media:Sg_mrob.ogg|Sound]]</nowiki></pre>
|}
Line 411 ⟶ 408:
</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). But it may make a big difference for the visually impaired ;-)
</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>
Line 474 ⟶ 471:
 
<tr valign="bottom" id="subscript"><td>Subscript: x<sub>2</sub><br/>
Superscript: x<sup>2</sup>² or x&sup2;²
 
Most browsers have an easier time formatting lines with &amp;sup2; than with &lt;sup>2&lt;/sup>
 
&epsilon;ε<sub>0</sub> =
8.85 &times;× 10<sup>&minus;12−12</sup>
C&sup2;² / J m.
<br/>
<br/>
Line 487 ⟶ 484:
 
<td valign="bottom"><pre><nowiki>Subscript: x<sub>2</sub>
Superscript: x<sup>2</sup>² or x&amp;sup2;
</nowiki></pre>
<pre><nowiki>
Line 503 ⟶ 500:
<tr valign="top"><td>
;Using non-breaking spaces
<i>''x</i><sup>2</sup>''²&nbsp;&nbsp;
&nbsp;&ge;
&nbsp;&nbsp;&nbsp;0 true.
</td>
<td><pre><nowiki>
<i>''x</i><sup>2</sup>''²&amp;nbsp;
&amp;nbsp;&amp;ge;
&amp;nbsp;&amp;nbsp;0 true.
Line 516 ⟶ 513:
<tr>
<td>
;Using [[Help:Table#Simple_exampleSimple example|Wikitext piped tables]]
{||-
|''x''²
|<i>x</i><sup>2</sup>
| width=20px | || width=20px | &ge;0≥0 || true.
|-
| a || || b
Line 528 ⟶ 525:
<pre><nowiki>
{||-
|''x''²
|<i>x</i><sup>2</sup>
| width=20px | || width=20px | &ge;0≥0 || true.
|-
| a || || b
Line 547 ⟶ 544:
;Example:
 
arrow &rarr;
 
''italics''
Line 566 ⟶ 563:
* reformat text (removing newlines and multiple spaces)
<nowiki>
arrow &rarr;
 
''italics''
Line 590 ⟶ 587:
* don't reformat text
 
<pre>arrow &rarr;
 
''italics''
Line 610 ⟶ 607:
* interpret special wiki markup
* don't reformat text
arrow &rarr;
''italics''
Line 670 ⟶ 667:
;typewriter font:
 
<tt>arrow &rarr;</tt>
 
<tt>''italics''</tt>
Line 742 ⟶ 739:
û ü ÿ<br/>
<br/>
À Á Â Ã Ä Å <br/>
&Agrave; &Aacute; &Acirc; &Atilde; &Auml; &Aring; <br/>
Æ Ç È É Ê Ë <br/>
&AElig; &Ccedil; &Egrave; &Eacute; &Ecirc; &Euml; <br/>
Ì Í
&Igrave; &Iacute;
&Icirc;Î &Iuml;Ï &Ntilde;Ñ &Ograve;Ò <br/>
Ó Ô Õ
&Oacute; &Ocirc; &Otilde;
&Ouml;Ö &Oslash;Ø &Ugrave;Ù <br/>
Ú Û Ü ß
&Uacute; &Ucirc; &Uuml; &szlig;
&agrave;à &aacute;á <br/>
â ã ä å æ
&acirc; &atilde; &auml; &aring; &aelig;
&ccedil;ç <br/>
è é ê ë ì í<br/>
&egrave; &eacute; &ecirc; &euml; &igrave; &iacute;<br/>
î ï ñ ò ó ô <br/>
&icirc; &iuml; &ntilde; &ograve; &oacute; &ocirc; <br/>
œ õ
&oelig; &otilde;
&ouml;ö &oslash;ø &ugrave;ù &uacute;ú <br/>
û ü ÿ
&ucirc; &uuml; &yuml;
</td>
<td><pre><nowiki>
Line 788 ⟶ 785:
† ‡ • - – —
 
¿ ¡ « » § ¶<br/>
&iquest; &iexcl; &laquo; &raquo; &sect; &para;<br/>
&dagger; &Dagger; &bull; - &ndash; &mdash;
</td>
<td><pre><nowiki>
Line 803 ⟶ 800:
™ © ® ¢ € ¥ £ ¤
 
™ © ® ¢ € ¥ £ ¤</td>
&trade; &copy; &reg; &cent; &euro; &yen; &pound; &curren;</td>
<td><pre><nowiki>
™ © ® ¢ € ¥ £ ¤
Line 818 ⟶ 815:
Σ Φ Ψ Ω
 
&alpha;α &beta;β &gamma;γ &delta;δ &epsilon;ε &zeta;ζ <br/>
&eta;η &theta;θ &iota;ι &kappa;κ &lambda;λ &mu;μ &nu;ν <br/>
&xi;ξ &omicron;ο &pi;π &rho;ρ &sigma;σ &sigmaf;ς <br/>
&tau;τ &upsilon;υ &phi;φ &chi;χ &psi;ψ &omega;ω<br/>
&Gamma;Γ &Delta;Δ &Theta;Θ &Lambda;Λ &Xi;Ξ &Pi;Π <br/>
Σ Φ Ψ Ω
&Sigma; &Phi; &Psi; &Omega;
</td>
<td><pre><nowiki>
Line 852 ⟶ 849:
→ ↔ ↑
 
∫ ∑ ∏ √ − ± ∞<br/>
&int; &sum; &prod; &radic; &minus; &plusmn; &infin;<br/>
&asymp; &prop; &equiv; &ne; &le; &ge;<br/>
× · ÷ ∂ ′ ″<br/>
&times; &middot; &divide; &part; &prime; &Prime;<br/>
∇ ‰ ° ∴ ø<br/>
&nabla; &permil; &deg; &there4; &oslash;<br/>
&isin; &cap; &cup; &sub; &sup; &sube; &supe;<br/>
&not;¬ &and; &or; &exist; &forall; &rArr; &hArr;<br/>
&rarr; &harr; &uarr;<br/>
 
Problem symbols:
Line 864 ⟶ 861:
ℵ ∉
 
&alefsym; &notin; </td>
<td valign="middle"><pre><nowiki>
∫ ∑ ∏ √ − ± ∞