Wiki markup
From UniLang Wiki
In the left column of the table below, you can see what effects are possible. In the right column, you can see how those effects were achieved. In other words, to make text look like it looks in the left column, type it in the format you see in the right column.
You may want to keep this page open in a separate browser window for reference. If you want to try out things without danger of doing any harm, you can do so in the UniLang sandbox.
Contents |
Sections, Paragraphs, Lists and Lines
Links, URLs, Images
| What it looks like | What you type |
|---|---|
We love languages.
Thus the link above is to http://www.unilang3.org/wiki/wiki.phtml?title=Languages, which is the article with the name "Languages". |
We love [[languages]]. |
| Same target, different name: individual languages. | Same target, different name: [[Languages|individual languages]] |
| Endings are blended into the link: testing, genes |
Endings are blended into the link: [[test]]ing, [[gene]]s |
| When adding a comment to a Talk page,
you should sign it. You can do this by adding three tildes for your user name: or four for user name plus date/time:
|
When adding a comment to a Talk page, you should sign it. You can do this by adding three tildes for your user name: : ~~~ or four for user name plus date/time: : ~~~~ |
| Klingon is a page that doesn't
exist yet.
|
[[Klingon]] is a page that doesn't exist yet. |
|
Redirect one article title to another by putting text like this in its first line. Note that there must be no text following this, or the redirect may not work. |
#REDIRECT [[United States]] |
| External link: UniLang homepage | External link: [http://www.unilang.org UniLang homepage] |
| Or just give the URL: http://www.unilang.org. | Or just give the URL: http://www.unilang.org.
|
| A picture: Image:Unilangwikilogosmall.jpg
|
A picture: [[Image:Unilangwikilogosmall.jpg]] or, with alternate text (preferred) [[Image:Unilangwikilogosmall.jpg|UniLang logo]] which will be
|
|
Clicking on an uploaded image displays a description page, which you can also link directly to: Image:Unilangwikilogosmall.jpg |
[[:Image:Unilangwikilogosmall.jpg]] |
|
To include links to non-image uploads such as sounds, or to images shown as links instead of drawn on the page, use a "media" link. |
[[media:Sg_mrob.ogg|Sound]] [[media:Tornado.jpg|Link to image]] |
|
To link to books, you can use UniLangWiki:ISBN links. ISBN 0123456789X |
ISBN 0123456789X |
Character formatting
| What it looks like | What you type |
|---|---|
|
Emphasize, strongly, very strongly.
|
''Emphasize'', '''strongly''', '''''very strongly'''''. |
|
You can also write italic and bold if the desired effect is a specific font style rather than emphasis, as in mathematical formulas:
|
You can also write <i>italic</i> and <b>bold</b> if the desired effect is a specific font style rather than emphasis, as in mathematical formulas: :<b>F</b> = <i>m</i><b>a</b> |
| A typewriter font for technical terms. | A typewriter font for <tt>technical terms</tt>. |
| You can use small text for captions. | You can use <small>small text</small> for captions. |
| You can and underline new material. |
You can <strike>strike out deleted material</strike> and <u>underline new material</u>. |
|
Punctuation: |
¿ ¡ « » § ¶ † ‡ • — |
|
Commercial symbols: |
™ © ® ¢ € ¥ £ ¤ |
| Subscript: x2 Superscript: x2 or x²
ε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. |
|
Math characters: |
∫ ∑ ∏ √ − ± ∞ ≈ ∝ ≡ ≠ ≤ ≥ → × · ÷ ∂ ′ ″ ∇ ‰ ° ∴ ℵ ø ∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇ ¬ ∧ ∨ ∃ ∀ ⇒ ⇔ → ↔ |
x2 ≥ 0 true.
|
<i>x</i><sup>2</sup> ≥ 0 true. |
|
Suppressing interpretation of markup:
|
<nowiki>Link → (<i>to</i>) the [[Main page]]</nowiki> |
|
Commenting page source:
|
<!-- comment here --> |
Tables
| First header | Second header | Third header |
|---|---|---|
| upper left | upper middle | right side |
| lower left | lower middle | |
| bottom row | ||
<table border="1"> <caption>An example table</caption> <tr> <th>First header</th> <th>Second header</th> <th>Third header</th> </tr> <tr> <td>upper left</td> <td>upper middle</td> <td rowspan=2>right side</td> </tr> <tr> <td>lower left</td> <td>lower middle</td> </tr> <tr> <td colspan="3" align="center">bottom row</td> </tr> </table>
If your table doesn't look right, make sure that all <tr> and <td> tags are closed with corresponding </tr> and </td> tags. Do not indent lines, and do not include empty lines within a table. Otherwise, you will get spurious space above the table or even a browser crash.
Here's a more advanced example, showing some more options available for making up tables. You can play with these settings in your own table to see what effect they have. Keep in mind that though colors are possible, it's best to use them sparingly. You can't use the <thead>, <tfoot> and <tbody> elements. Check the above tables to see what can be done to the text inside the cells.
| First header | Second header | |||||
|---|---|---|---|---|---|---|
| upper left | right side | |||||
| lower left | lower middle | |||||
|
||||||
<table border="1" cellpadding="5" cellspacing="0" align="center"> <caption>'''An example table'''</caption> <tr> <th style="background:#efefef;">First header</th> <th colspan="2" style="background:#ffdead;">Second header</th> </tr> <tr> <td>upper left</td> <td> </td> <td rowspan=2 style="border-bottom:3px solid grey;" valign="top"> right side</td> </tr> <tr> <td style="border-bottom:3px solid grey;">lower left</td> <td style="border-bottom:3px solid grey;">lower middle</td> </tr> <tr> <td colspan="3" align="center"> <table border="0"> <caption>''A table in a table''</caption> <tr> <td align="center" width="150px">[[Image:Unilangwikilogosmall.jpg]]</td> <td align="center" width="150px">[[Image:Unilangwikilogosmall.jpg]]</td> </tr> <tr> <td align="center" colspan="2" style="border-top:1px solid red; border-right:1px solid red; border-bottom:2px solid red; border-left:1px solid red;"> Two UniLang logos</td> </tr> </table> </td> </tr> </table>
colours
This is how you can colour text.
<font color=red>This</font> <font color=blue>is</font> <font color=green>how</font> <font color=yellow>you</font> <font color=blue>can</font> <font color=#9999CC>colour</font> <font color=#33CC33>text</font>.
