Difference between revisions of "Text formatting"

From Mania Tech Wiki
Jump to navigation Jump to search
(Restore last known version from tm-wiki.org)
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Text formatting and colour codes in Trackmania can be used for players' nicknames, track names, track comments, music file comments, server comments and in-game online chats.
+
'''Text formatting''' and colour codes in TrackMania and ManiaPlanet can be used for players' nicknames, track names and comments, music file comments, server names and comments, and in-game online chats.
  
Nicknames are limited to 20 characters in Original, Sunrise and Nations versions. In United, this limitation doesn't exist anymore.
+
Nicknames are limited to 20 characters in TM Original, Sunrise and Nations. Since United, this limitation doesn't exist anymore.
  
You can also add special Unicode characters to your name (see [http://www.tm-forum.com/viewtopic.php?t=3546 here]).
+
You can also add special Unicode (UTF-8) characters to a name (see {{tmforum|3546}}).
  
== Colour Codes / Color Codes ==
+
== Colour codes ==
 +
 
 +
To add a colour to a name simply input a $ followed by three hexadecimal digits from 0 to f (0123456789abcdef), which represent red, green and blue values ($<font color="#FF0000">R</font><font color="#00FF00">G</font><font color="#0000FF">B</font>)
 +
 
 +
A small selection can be seen below:
  
To add a colour to your name simply put a $ followed by 3 numbers which represent red, green and blue. A small selection can be seen below.
 
 
<table border="0" cellpadding="2" cellspacing="0">
 
<table border="0" cellpadding="2" cellspacing="0">
 
           <tr>
 
           <tr>
Line 269: Line 272:
 
         </table>
 
         </table>
  
The colour codes are the 3 numbers after the $ and have 16 values 0 to f (0123456789abcdef) The colours are made from red green & blue values ($<font color="#FF0000">R</font><font color="#00FF00">G</font><font color="#0000FF">B</font>)
+
== Other text formatting ==
  
== Other Text Formatting ==
+
These codes are available in all TrackMania games:
 
 
Those codes are available in all TrackMania games:
 
  
 
'''$t''' Capitals <br/>
 
'''$t''' Capitals <br/>
Line 285: Line 286:
 
'''$$''' Write a "$"
 
'''$$''' Write a "$"
  
In TrackMania United, some new codes have been added:
+
In TrackMania United, several new codes have been added:
  
 
'''$o''' Bold with semi-wide spacing <br/>
 
'''$o''' Bold with semi-wide spacing <br/>
 
'''$h''' Internal link to a ManiaLink <br/>
 
'''$h''' Internal link to a ManiaLink <br/>
 
'''$l''' External link to a website <br/>
 
'''$l''' External link to a website <br/>
 +
<div class="mw-collapsible mw-collapsed">
 +
: The syntax of the links is the same as in ManiaLinks.
 +
<div class="mw-collapsible-content">
 +
To link internally to another ManiaLink page, use $h. This will open the page in-game.
  
Links' syntax is the same as in ManiaLinks.
+
<nowiki>$h[maniaplanet://#menutitle=@TMStadium@nadeo]Trackmania² Stadium$h</nowiki>
  
 +
To link externally, use $l. This will open the page in your standard web browser.
 +
 +
<nowiki>$l[https://wiki.xaseco.org/wiki/Main_Page]Mania Tech Wiki: Main Page$l</nowiki>
 +
</div>
 +
</div>
 
In TrackMania Forever, another new code has been added:
 
In TrackMania Forever, another new code has been added:
  
'''$p''' Link with player parameters to a script that should return a ManiaLink<br/>
+
'''$p''' Link with player parameters to a script that should return a ManiaLink
The parameters are: ?playerlogin=<login>&lang=<language>&nickname=<nickname>&path=<location> (see [http://www.tm-forum.com/viewtopic.php?t=15319 here] for more info).
+
: The parameters are: ?playerlogin=<login>&lang=<language>&nickname=<nickname>&path=<location> (see {{tmforum|15319}} for more info).
 +
 
 +
[[Category:Specifications]]

Latest revision as of 01:22, 13 June 2017

Text formatting and colour codes in TrackMania and ManiaPlanet can be used for players' nicknames, track names and comments, music file comments, server names and comments, and in-game online chats.

Nicknames are limited to 20 characters in TM Original, Sunrise and Nations. Since United, this limitation doesn't exist anymore.

You can also add special Unicode (UTF-8) characters to a name (see TM forum topic).

Colour codes

To add a colour to a name simply input a $ followed by three hexadecimal digits from 0 to f (0123456789abcdef), which represent red, green and blue values ($RGB)

A small selection can be seen below:

$FFF $CCC $999 $666 $333 $000 $FC0 $F90 $F60 $F30
$9C0 $C90 $FC3 $FC6 $F96 $F63 $C30 $C03
$CF0 $CF3 $330 $660 $990 $CC0 $FF0 $CC0 $C63 $300 $600 $900 $C00 $F00 $F36 $F03
$9F0 $CF6 $9C3 $663 $993 $CC3 $FF3 $960 $930 $633 $933 $C33 $F33 $C36 $F69 $F06
$6F0 $9F6 $6C3 $690 $996 $CC6 $FF6 $963 $630 $966 $C66 $F66 $903 $C39 $F6C $F09
$3F0 $6F3 $390 $6C0 $9F3 $CC9 $FF9 $C96 $C60 $C99 $F99 $F39 $C06 $906 $F3C $F0C
$0C0 $3C0 $360 $693 $9C6 $CF9 $FFC $FC9 $F93 $FCC $F9C $C69 $936 $603 $C09 $303
$3C3 $6C6 $0F0 $3F3 $6F6 $9F9 $CFC $C9C $969 $939 $909 $636 $606
$060 $363 $090 $393 $696 $9C9 $FCF $F9F $F6F $F3F $F0F $C6C $C3C
$030 $0C3 $063 $396 $6C9 $9FC $CFF $39F $9CF $CCF $C9F $96C $639 $306 $90C $C0C
$0F3 $3F6 $093 $0C6 $3F9 $9FF $9CC $06C $69C $99F $99C $93F $60C $609 $C3F $C0F
$0F6 $6F9 $3C6 $096 $6FF $6CC $699 $036 $369 $66F $66C $669 $309 $93C $C6F $90F
$0F9 $6FC $3C9 $3FF $3CC $399 $366 $069 $039 $33F $33C $339 $336 $63C $96F $60F
$0F0 $3FC $0FF $0CC $099 $066 $033 $39C $36C $00F $00C $009 $006 $003 $63F $30F
$0C9 $09C $3CF $6CF $69F $36F $03C $36C
$0CF $09F $06F $03F

Other text formatting

These codes are available in all TrackMania games:

$t Capitals
$i Italic
$s Shadowed
$w Wide spacing
$n Narrow spacing
$m Normal setting
$g Default color
$z Reset all
$$ Write a "$"

In TrackMania United, several new codes have been added:

$o Bold with semi-wide spacing
$h Internal link to a ManiaLink
$l External link to a website

The syntax of the links is the same as in ManiaLinks.

To link internally to another ManiaLink page, use $h. This will open the page in-game.

$h[maniaplanet://#menutitle=@TMStadium@nadeo]Trackmania² Stadium$h

To link externally, use $l. This will open the page in your standard web browser.

$l[https://wiki.xaseco.org/wiki/Main_Page]Mania Tech Wiki: Main Page$l

In TrackMania Forever, another new code has been added:

$p Link with player parameters to a script that should return a ManiaLink

The parameters are: ?playerlogin=<login>&lang=<language>&nickname=<nickname>&path=<location> (see TM forum topic for more info).