Cogito, ergo sum

Legacy:Wiki Markup

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 06:42, 9 March 2012 by Wormbo (Talk | contribs) (Reverted edits by 114.79.19.85 (Talk) to last revision by Wormbo)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To edit a wiki page, click on the "Edit text of this page" link at the bottom of the page. This will take you to a page with a text box: in this text box is the text of the wiki page. Press "Save" to store your changes in the wiki. The "preview" button will reload the form page, with the output beneath it.

Wiki markup is essentially plain text. You do NOT need to put in soft line breaks: text wraps in the browser's edit box! There are a few simple control characters that are listed below. You can test these in the Sandbox. Guidelines On Technical Names has conventions on page names and formatting. Legacy:Wiki Markup/Converting From HTML.

Like HTML, Wiki markup is supposed to be logical, not physical. Don't worry about spacing (for example, double-spacing a list). Because of differing style sets, what you see on your page may differ from what others see.

Sections, Paragraphs, Lists and Lines

Start your sections with header lines:

New Section

Subsection

Start your sections with header lines:

===New Section===
====Subsection====
You can break lines
without starting a new paragraph.
You can break lines <br />without starting a new paragraph.
  • Lists are good:
    • they organize material
    • they look clean
* Lists are good:
** they organize material
** they look clean
  1. Numbered lists are also good:
    1. very organized
    2. easy to follow
# Numbered lists are also good
## very organized
## easy to follow
Definition lists 
lists with definitions
Item to be defined 
the item's definition
; Definition lists : lists with definitions
; Item to be defined : the item's definition
  • Mixing list types is straightforward:
    1. First subitem
    2. Second subitem
* Mixing list types is straightforward:
*# First subitem
*# Second subitem
Another mixed-type list
A definition with subitems
  • First subitem
  • Second subitem
; Another mixed-type  list: A definition with subitems
;* First subitem
;* Second subitem
Lines can be
indented
several levels
: Lines can be
:: indented
::: several levels
IF (a line starts with whitespace) THEN
  it will be displayed as typed;
  in a technical looking font;
  lines won't wrap;
ENDIF
this is useful for:
  * algorithm descriptions;
  * ascii art;
Keep in mind that formatting still works
To display truly preformatted text,
use the <pre>...</pre> tags.
 IF (a line starts with whitespace) THEN
   it will be displayed as typed;
   in a technical looking font;
   lines won't wrap;
 ENDIF
 this is useful for:
   * algorithm descriptions;
   * ascii art;
 Keep in mind that ''formatting still works''
 To display truly preformatted text,
 use the <pre>...
tags.

A box for an object class path:

Actor >> Pawn (UT) >> PlayerPawn
A box for an object class path:
{{classbox| [[Legacy:Actor|Actor]] >> [[Legacy:Pawn|Pawn]] >> PlayerPawn}}
// UnrealScript source code
local int Countdown;
for (Countdown = 10; Countdown >= 0; Countdown--)
  Log(Countdown $ "...");
  1. // UnrealScript source code
  2. local int Countdown;
  3. for (Countdown = 10; Countdown >= 0; Countdown--)
  4.   Log(Countdown $ "...");

You can use <uscript lines> to automatically add line numbers. Keep in mind that people might want to copy and paste your code from their web browser, and line numbers must be laboriously removed from the pasted text before it's in a usable form. If you feel it's absolutely necessary to include line numbers in your example, make a 2-column table with the line numbers in the left coulumn and the code in the right.

<uscript>

// UnrealScript source code
local int Countdown;
for (Countdown = 10; Countdown >= 0; Countdown–)
  Log(Countdown $ "...");
</uscript>

<uscript lines>
// UnrealScript source code
local int Countdown;
for (Countdown = 10; Countdown >= 0; Countdown–)
  Log(Countdown $ "...");
</uscript>
{{innerbox| You can put quoted text in a neat box.
}}
> All Wiki formats apply there.

You can put quoted text in a neat box.

All Wiki formats apply there.

A horizontal dividing line: above


and below.

A horizontal dividing line: above
----
and below.
A collapsable box (click to reveal the code):

Links, URLs, Images

Link to the Project FAQ.

First letter of target is automatically capitalized. Spaces are converted into underscores. To create a new page: start with a link to it, then click on ?.

Check out the Guidelines On Page Creation, that's where naming conventions currently live.)

Link to the [[Legacy:Project FAQ|Project FAQ]].

Same target, different name: answers.

Targets can only contain letters and spaces!

Same target, different name: [[Legacy:Project FAQ|answers]]

The weather in London is a page that doesn't exist yet.

You can start it by clicking on the question mark. After creating a page, search for its title and make sure that everyone correctly links to it.

[[Legacy:The Weather In London|The weather in London]] is a page that doesn't exist yet.
Redirect one article title to another by putting text like this in its first line.
#REDIRECT [[Legacy:Project FAQ|Project FAQ]]
External link: Wikipedia
External link: [http://www.wikipedia.org Wikipedia]

Or just give the URL: http://www.wikipedia.com.
Email addresses: mychaeel@beyondunreal.com

Good idea since it makes a printout more useful. Links to .zip files get a fancy box around them and are best used in a paragraph of their own. Links to image files display the images inline.

Or just give the URL: http://www.wikipedia.com. <br />Email addresses: mychaeel@beyondunreal.com
Interlinks to other wikis: UseMod:Tarquin (see InterWiki for the list of prefixes)
Interlinks to other wikis: [[UseMod:Tarquin]]

A picture: Legacy_wikilogo-small.jpeg

Upload images with the Image Uploader. It'll give you details about how to insert an image in a Wiki page after you have uploaded the image. Block and floating images with captions are also possible.

A picture: [[Image:Legacy_wikilogo-small.jpeg|]]

Text

Character Formatting

italic, bold, bold and colored.
Use also in formulas: F = m a.
''italic'', '''bold''', '''''bold and colored'''''.
Use also in formulas: '''F''' = ''m'' '''a'''.

Smileys :rolleyes: are displayed as images :-)

Smileys :rolleyes: are displayed as images :-)
A typewriter font for technical terms.
A typewriter font for <tt>technical terms</tt>.
Typewriter font, and no parsing: link :-)
Typewriter font, and no parsing: <code>[[Legacy:Link|link]] :-)</code>
To escape characters, i.e., interpret them as characters, not formatting commands: < | ===
To escape characters, i.e. interpret them as characters,
not formatting commands:  < | === 
You can strike out stuff
and insert new stuff. Useful for editing.
You can <strike>strike out</strike> stuff
and <u>insert new stuff</u>

Smilies

This is the complete list of accepted smileys, from the Wookee:

:) :-) =)= ;) ;-) :P :-P =P= :D :-D =D= :( :-( =(= o_O O_o O_O :/ :-/ =/=
:) :-) =) ;) ;-) :P :-P =P :D :-D =D :( :-( =( o_O O_o O_O :/ :-/ =/
:rolleyes: :cheesy: :cool: :pissed: :shocked: :tup: :tdown: :stupid: :eek: :confused: :angry: :hmm:
:rolleyes: :cheesy: :cool: :pissed: :shocked: :tup: :tdown: :stupid: :eek: :confused: :angry: :hmm:

Special Characters

Two hyphens make a dash – like this
Two hyphens make a dash – like this
Three (or more) hyphens → make a longer dash
Three (or more) hyphens → make a longer dash
An arrow for menu commands: File -> Save
An arrow for menu commands: File -> Save

Sign your name: The sequence ~~~ will insert your user name. Use it at the start of a line to quickly create thread discussions, like this (this will also work with lines indented with the : character):

Tarquin: Good point, well made.

Use it at the end of a line to sign a comment like this:

Good point, well made. →Tarquin


~~~ Good point, well made.
Good point, well made. ~~~

Umlauts and Accents

À Á Â Ã Ä Å Æ
Ç È É Ê Ë Ì Í
Î Ï Ñ Ò Ó Ô Õ
Ö Ø Ù Ú Û Ü ß
à á â ã ä å æ
ç è é ê ë ì í
î ï ñ ò ó ô õ
ö ø ù ú û ü ÿ
À Á Â  Ã Ä   Å  Æ
Ç È É Ê  Ë   Ì Í
Î  Ï   Ñ Ò Ó Ô  Õ
Ö   Ø Ù Ú Û  Ü   ß
à á â  ã ä   å  æ
ç è é ê  ë   ì í
î  ï   ñ ò ó ô  õ
ö   ø ù ú û  ü   ÿ

Punctuation

¿ ¡ « » § ¶
† ‡ •
& (literal ampersand)

¿ ¡ « » § ¶
† ‡ •
&

Evil Stuff

™ © ® ¢ € ¥ £ ¤
(Always use the code, these characters can mess up fonts on certain browsers.)
™ © ® ¢ € ¥ £ ¤

Subscript and Superscript

x2
x<sub>2</sub>
x2
x<sup>2</sup>

Greek Characters

α β γ δ ε ζ η
θ ι κ λ μ ν ξ
ο π ρ σ ς τ υ
φ χ ψ ω
α   β γ δ  ε ζ η
θ   ι κ λ μ      ν   ξ
ο π   ρ   σ  ς  τ  υ
φ     χ  ψ   ω
Α Β Γ Δ Ε Ζ Η
Θ Ι Κ Λ Μ Ν Ξ
Ο Π Ρ Σ   Τ Υ
Φ Χ Ψ Ω
Α   Β Γ Δ  Ε Ζ    Η
Θ   Ι Κ Λ Μ      Ν      Ξ
Ο Π   Ρ   Σ            Τ     Υ
Φ     Χ  Ψ   Ω

Math Characters

∫ ∑ ∏ √ ± ∞
≡ ≠ ≤ ≥ →
× · ÷ ∂ ′ ″
‰ ° ⋅ ∴ ℵ
ø ∈ ∋∪ ⊂ ⊃ ⊆ ⊇
¬ ∧ ∨ ∃ ∀ ⇒ ⇔
(Note: not all of these work in all browsers and on all systems)
∫    ∑    ∏   √ ± ∞
≈  ∝   ≡  ≠     ≤     ≥    →
×  · ÷ ∂   ′  ″ ∇
‰ °    ⋅   ∴ ℵ
ø ∈   ∋     ∩    ∪    ⊂   ⊃  ⊆ ⊇
¬    ∧    ∨     ∃  ∀ ⇒  ⇔

Hard Spaces

x2   ≥   0
Otherwise would look like this: x2≥0
This is useful in formulas.
x<sup>2</sup>   ≥   0

ASCII Art Integrals

Start every line with a blank.

 ∞  -x2
 ∫ e   dx = √π
-∞


  ∞  -x<sup>2</sup>
  ∫ e   dx = √π
 -&infin

Tables

bAlwaysRelevant Notoriously overconfident.
bHidden Lacks self assurance.



{|

|-
|bAlwaysRelevant
|Notoriously overconfident.
|-
|bHidden
|Lacks self assurance.
|}
<wiki>

A complex table

First Second Third
upper left upper middle right side
right aligned centered left aligned
bottom row spans three columns /wiki>

{| class="wikitable"

|-
| colspan="3" style="text-align: center" |
|}
===A complex table ===
        |
{| class="wikitable"

|-
| style="text-align: center" |'''First'''
| style="text-align: center" |'''Second'''
| style="text-align: center" |'''Third'''  
|-
|upper left
|upper middle
|right side    
|-
| style="text-align: right" |right aligned
| style="text-align: center" |centered
| style="text-align: left" |left aligned 
|-
| colspan="3" style="text-align: center" |bottom row spans three columns              
|}
To use sophisticated paragraph markup (like headings or lists) in a table cell, enclose it in ... . The amount of whitespace between table cells is irrelevant for the resulting formatting.

See also:

  • Wookee – More information about the formatter.
  • MetaTopics – Other topics about the project.

Parts of the markup table are borrowed from Wikipedia.