Help:Wiki markup examples: Difference between revisions

Content deleted Content added
m unicodify (0.7 kB saved)
rv destruction of examples
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]]
|<pre><nowiki>*[[Help:Link|About Links]]
*[[List of cities by country#Morocco|
Cities in Morocco]]
</nowiki></pre>
|-
Line 364 ⟶ 366:
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>
</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 382 ⟶ 385:
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 408 ⟶ 411:
</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 471 ⟶ 474:
 
<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>−12&minus;12</sup>
C²&sup2; / J m.
<br/>
<br/>
Line 484 ⟶ 487:
 
<td valign="bottom"><pre><nowiki>Subscript: x<sub>2</sub>
Superscript: x²<sup>2</sup> or x&amp;sup2;
</nowiki></pre>
<pre><nowiki>
Line 500 ⟶ 503:
<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 513 ⟶ 516:
<tr>
<td>
;Using [[Help:Table#Simple exampleSimple_example|Wikitext piped tables]]
{||-
|<i>x</i><sup>2</sup>
|''x''²
| width=20px | || width=20px | ≥0&ge;0 || true.
|-
| a || || b
Line 525 ⟶ 528:
<pre><nowiki>
{||-
|<i>x</i><sup>2</sup>
|''x''²
| width=20px | || width=20px | ≥0&ge;0 || true.
|-
| a || || b
Line 544 ⟶ 547:
;Example:
 
arrow &rarr;
 
''italics''
Line 563 ⟶ 566:
* reformat text (removing newlines and multiple spaces)
<nowiki>
arrow &rarr;
 
''italics''
Line 587 ⟶ 590:
* don't reformat text
 
<pre>arrow &rarr;
 
''italics''
Line 607 ⟶ 610:
* interpret special wiki markup
* don't reformat text
arrow &rarr;
''italics''
Line 667 ⟶ 670:
;typewriter font:
 
<tt>arrow &rarr;</tt>
 
<tt>''italics''</tt>
Line 739 ⟶ 742:
û ü ÿ<br/>
<br/>
&Agrave; &Aacute; &Acirc; &Atilde; &Auml; &Aring; <br/>
À Á Â Ã Ä Å <br/>
&AElig; &Ccedil; &Egrave; &Eacute; &Ecirc; &Euml; <br/>
Æ Ç È É Ê Ë <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/>
&egrave; &eacute; &ecirc; &euml; &igrave; &iacute;<br/>
è é ê ë ì í<br/>
&icirc; &iuml; &ntilde; &ograve; &oacute; &ocirc; <br/>
î ï ñ ò ó ô <br/>
&oelig; &otilde;
œ õ
ö&ouml; ø&oslash; ù&ugrave; ú&uacute; <br/>
&ucirc; &uuml; &yuml;
û ü ÿ
</td>
<td><pre><nowiki>
Line 785 ⟶ 788:
† ‡ • - – —
 
&iquest; &iexcl; &laquo; &raquo; &sect; &para;<br/>
¿ ¡ « » § ¶<br/>
&dagger; &Dagger; &bull; - &ndash; &mdash;
</td>
<td><pre><nowiki>
Line 800 ⟶ 803:
™ © ® ¢ € ¥ £ ¤
 
&trade; &copy; &reg; &cent; &euro; &yen; &pound; &curren;</td>
™ © ® ¢ € ¥ £ ¤</td>
<td><pre><nowiki>
™ © ® ¢ € ¥ £ ¤
Line 815 ⟶ 818:
Σ Φ Ψ Ω
 
α&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 849 ⟶ 852:
→ ↔ ↑
 
&int; &sum; &prod; &radic; &minus; &plusmn; &infin;<br/>
∫ ∑ ∏ √ − ± ∞<br/>
&asymp; &prop; &equiv; &ne; &le; &ge;<br/>
&times; &middot; &divide; &part; &prime; &Prime;<br/>
× · ÷ ∂ ′ ″<br/>
&nabla; &permil; &deg; &there4; &oslash;<br/>
∇ ‰ ° ∴ ø<br/>
&isin; &cap; &cup; &sub; &sup; &sube; &supe;<br/>
¬&not; &and; &or; &exist; &forall; &rArr; &hArr;<br/>
&rarr; &harr; &uarr;<br/>
 
Problem symbols:
Line 861 ⟶ 864:
ℵ ∉
 
&alefsym; &notin; </td>
<td valign="middle"><pre><nowiki>
∫ ∑ ∏ √ − ± ∞