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.

[edit] 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.

[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:

Longer bridges
Longer bridges

[edit] Tables

Image:ExpandIcon.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. 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>
Header1Header2
data data
datadata

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

[edit] Templates

Image:ExpandIcon.png
This article or section needs expanding.

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

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

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