BSHI

« Nomenclatura | Homepage

03/03/2011

Hattrick Markup Language

Hattrick Markup Language o HT-ML è la versione hattrick del codice chiamato BBCode. All'inizio si poteva usare solo nel forum di Hattrick. Il suo scopo principale è quello di fornire ulteriori effetti come link in grassetto, corsivo, sottolineato, e altri.

Con la migrazione del sito a .NET, è stato reso disponibile anche per HT mail. Dal 17 Marzo 2009 è reso disponibile ai Supporter di utilizzarlo anche per il guestbook ed i comunicati Stampa.

 

Current HT-ML code

Questa tabella mostra le markup conosciute ed i loro usi.

Code Syntax Result Notes
b I make [b]this[/b] appear in bold. I make this appear in bold. End tag is required. Bold text
i I make [i]this[/i] appear in italic. I make this appear in italic. End tag is required. Italic text
u I make [u]this[/u] appear underlined. I make this appear underlined. End tag is required. Underlined text
q or quote I [q]quote[/q] you! I

quote


you!

The text between the two tags is put into a separate block written in italic and with a gray background. Interlacing this tag makes the background become darker and darker. Writing [q=alias] or [quote=alias] will write the alias of the quoted user in the text box. End tag is required.
br First line.[br]Second line. First line
Second line.
Takes the text to a new line. No end tag is needed.
hr First line.[hr]Second line. First line.

Second line.

Inserts a HTML ruler. No end tag is needed.
userid [userid=1836] (1836) Inserts a direct link to a user.
playerid [playerid=182390841] (182390841) Inserts a direct link to a player.
youthplayerid [youthplayerid=31508440] (31508440) Inserts a direct link to a youth player.
teamid [teamid=102541] (102541) Inserts a direct link to a team.
youthteamid [youthteamid=518] (518) Inserts a direct link to a youth team.
matchid [matchid=13151551] (13151551) Inserts a direct link to a match.
youthmatchid [youthmatchid=316658] (316658) Inserts a direct link to a youth match.
leagueid [leagueid=1] (1) Inserts a direct link to a specific series, not to a league (country)
youthleagueid [youthleagueid=108] (108) Inserts a direct link to a specific youth league
federationid [federationid=81554] (81554) Inserts a direct link to a federation.
link (1) [link=/Help/] (http://www.hattrick.org/Help/) Inserts a link to some place within Hattrick, the part http://wwwXX.hattrick.org has to be cut off to make the link work.
link (2) [link=http://alltid.org/index.php] (http://www.alltid.org) Inserts a link to some place outside of Hattrick.
articleid [articleid=2792] (2792) Inserts a link to a Hattrick Press article.
table [table attribute=value][/table] n/a Begins a formatted HTML table. [1] End tag is required.
tr [tr][/tr] n/a Add a new table row. End tag is required.
th [th attribute=value][/th][2] n/a Add a new table heading cell. This is by default in bold text with gray background. End tag is required.
td [td attribute=value][/td][3] n/a Add a new table cell. End tag is required.
post [post=6072888.1] (6072888.1) Inserts a direct link to a forum message.
spoiler [spoiler]hidden text[/spoiler] n/a Hides hidden text which the reader can see by clicking a button. End tag required.

 

1. ^ Le tabelle devono essere annidate. Esempio tabella: [table][tr][td]Singloa cellal[/td][/tr][/table]. Esempio di Tabella con 2 righe e 3 Colonne:
[table]
[tr][th]H1[/th][th]H2[/th][th]H3[/th][/tr]
[tr][td]A1[/td][td]A2[/td][td]A3[/td][/tr]
[tr][td]B1[/td][td]B2[/td][td]B3[/td][/tr]
[/table]

Questo sarà il risultato (note il forum di hattrick ha u altro design per questa tabella):

H1 H2 H3
A1 A2 A3
B1 B2 B3

2. ^ Gli Attributi/valori validi pre TD e TH sono:

  • colspan={1..N} - Questo particolare si estende su N colonne.
  • rowspan={1..N} - Questo particolare si estende su N righe.
  • align={left|right|center} - L'allineamento testuale all'interno della cella.
  • valign={top|bottom|middle} - Allineamento Verticale all'interno della cella.

Scrivi un commento