OpenTTD:Editing help
From OpenTTD
|
Here is a guide on wiki markup language. Feel free to test any of this by editing the sandbox.
- See Editing Help on Wikipedia for more help.
[edit] Very important rules
- Always sign your name when posting a comment. Use four tildes: "~~~~".
- Always use the Preview button before saving a page.
- Read the OpenTTD Wiki Manual of Style.
[edit] Text style
Use apostrophes to make text bold or italic.
| Code | HTML equivalent | Result |
|---|---|---|
''Italic text'' | <b>Italic text</b> | Italic text |
'''Bold text''' | <b>Bold text</b> | Bold text |
'''''Mixed text''''' | <b><i>Mixed text</i></b> | Mixed text |
[edit] Links
[edit] Internal links
Enclose words in double square braces to make a link to an article on the OpenTTD wiki (wiki.openttd.org). Separate the link from the caption with a vertical bar ("|"):
| Example | Source |
|---|---|
| Download | [[Download]]
|
| Downloads | [[Download]]s
|
| Obtaining the files | [[Download|Obtaining the files]]
|
[edit] Wikipedia links
Same as above but add "wikipedia:" before the link.
| Example | Source |
|---|---|
| wikipedia:Subversion | [[wikipedia:Subversion]]
|
| wikipedia:OpenTTDeluxe | [[wikipedia:OpenTTD]]eluxe
|
| OpenTTD | [[wikipedia:OpenTTD|OpenTTD]]
|
| Help at Meta | [[wikipedia:m:Help|Help at Meta]]
|
[edit] External links
Enclose words in single square braces to make a link to another website. Separate the URL from the caption with a space (" ").
| Example | Source | Notes |
|---|---|---|
| [1] | [http://www.openttd.org] | External link without description will be automatically shown as [x] |
| OpenTTD | [http://www.openttd.org OpenTTD] |
[edit] Article sections
Enclose text with equal signs to divide an article into sections.
=Main section= ==Subsection== ===Subsubsection=== ====Get the point?====
[edit] Images
Upload an image using the upload file link found in the main menu.
Use this code to add an image to the article:
[[Image:filename|frame|none|caption]]
Example:
[[Image:longerbridges.png|frame|none|Longer bridges]]
Result:
- Also see Extended image syntax on Wikipedia.
[edit] Tables
You can find more information on what exactly needs doing in the discussion for this article. Remember to use the Manual of Style and to remove this template once the article has been expanded.
All table code needs to be the first character on the line.
| Code | HTML equivalent | Result | ||||||
|---|---|---|---|---|---|---|---|---|
{| | <table> | Start a table | ||||||
! | <th> | Column heading | ||||||
| | <td> | New cell | ||||||
!! | </th><th> | Column heading on same line | ||||||
|| | </td><td> | New cell on same line | ||||||
|- | <tr> | New row | ||||||
|} | <table> | Close table | ||||||
{|
!Header1!!Header2
|-
|data1
|data2
|-
|data3||data4
|}
|
<table><tr> <td>Header1</th><th>Header2</th></tr> <tr> <td>data1</td> <td>data2</td> <tr> <td>data3</td><td>data4</td> </tr></table> |
|
- Also see Table Help on Wikipedia.
[edit] Lists
All list code needs to be the first character on the line.
| Code | Result |
|---|---|
| # | Ordered list item |
| * | Unordered list |
| : | Indent |
#Step A #Step B #*Hint #Step C ##Substep ##Substep #Step D :Note: ::Note text |
|
[edit] Templates
You can find more information on what exactly needs doing in the discussion for this article. Remember to use the Manual of Style and to remove this template once the article has been expanded.
Enclose a template in double curly braces to have it transcluded to the page.
{{templatename|parameter1|parameter2}}
Inside the template file (e.g. template:delete), access parameters with triple curly braces.
{{{1}}} {{{2|default}}}
- Also see Template help on Wikipedia.
[edit] Redirects
Use redirects to have one article automatically forward the read to another. In this example, checkpoints automatically redirects to waypoints:
#REDIRECT [[waypoints]]
[edit] Categories
Add articles to a category by adding a category link at the bottom of the article:
[[Category:Development]]
Display the category as a normal link by adding a colon:
[[:Category:Development]]
[edit] Other code
| Code | Result |
|---|---|
| <nowiki>text</nowiki> | Make text display as is |
| <code>text</code> | Make text display with font used for code. |
| <pre>text</pre> | Make text display in a box, with code font, and without HTML whitespace formatting |
| <noinclude>text</noinclude> | Show text on the template page, but not on transcluded pages. Useful for template usage instructions. |
| <includeonly>text<includeonly> | Show text on transcluded pages, but not on the template page. Useful for templates that add articles to categories. |
---- | Add a horizontal bar. |
~~~~ | Add your signature. |


