OpenTTD:Editing help

From OpenTTD
Jump to: navigation, search


Contents

Here is a guide on wiki markup language. Feel free to test any of this by editing the sandbox.

Very important rules

  1. Always sign your name when posting a comment. Use four tildes: "~~~~".
  2. Always use the Preview button before saving a page.
  3. Read the OpenTTD Wiki Manual of Style.

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

Links

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]]


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]

Article sections

Enclose text with equal signs to divide an article into sections.

=Main section=
==Subsection==
===Subsubsection===
====Get the point?====

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:

Longer bridges

Tables

Paper-plus.png

This article or section needs expanding.
Needs help on CSS formatting

  • You can find more information on what exactly needs doing in the discussion for this article.
  • Use the Manual of Style for a correct edition.
  • Remember 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>
Header1 Header2
data data
data data

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
  1. Step A
  2. Step B
    • Hint
  3. Step C
    1. Substep
    2. Substep
  4. Step D
Note:
Note text

Templates

Paper-plus.png

This article or section needs expanding.

  • You can find more information on what exactly needs doing in the discussion for this article.
  • Use the Manual of Style for a correct edition.
  • Remember 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}}}

Redirects

Use redirects to have one article automatically forward the read to another. In this example, checkpoints automatically redirects to waypoints:

#REDIRECT [[waypoints]]

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]]

Category:Development

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.
Personal tools