Hu/Hattrick Jelölő Nyelv: Difference between revisions
mNo edit summary |
|||
| Line 12: | Line 12: | ||
== Jelenlegi HT-ML kódok == | == Jelenlegi HT-ML kódok == | ||
Az alábbi táblázat tartalmazza a jelenleg ismert HT-ML tag-eket, és azok használatát. | |||
{| border=1 cellspacing=0 cellpadding=2 style="border-collapse:collapse" width="80%" | |||
|- bgcolor=#dddddd | |||
! Kód !! Szintaxis !! Eredmény !! Megjegyzés !! Hozzáadva | |||
|- | |||
| '''b''' || I make [b]this[/b] appear in bold. || I make '''this''' appear in bold. End tag is required. || Félkövér szöveg || Kezdetektől elérhető. | |||
|- | |||
| '''i''' || I make [i]this[/i] appear in italic. || I make ''this'' appear in italic. End tag is required. || Dőlt szöveg || Kezdetektől elérhető. | |||
|- | |||
| '''u''' || I make [u]this[/u] appear underlined. || I make <u>this</u> appear underlined. End tag is required. || Underlined text || Available from the start. | |||
|- | |||
| '''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. || Available from the start, the possibility to add an argument was added with ''Forum v1.1'' in 2009. | |||
|- | |||
| '''br''' || First line.[br]Second line. || First line<br>Second line. | |||
| Takes the text to a new line. No end tag is needed. || Available from the start. | |||
|- | |||
| '''hr''' || First line.[hr]Second line. || First line. | |||
---- | |||
Second line. | |||
| Inserts a HTML ruler. No end tag is needed. || Available from the start, deleted for standard skin with the [[Redesign 2008|redesign of 2008]]. | |||
|- | |||
| '''userid''' || [userid=1836] || {{userid|1836}} || Inserts a direct link to a user. || Available after the [[Redesign 2008|redesign of 2008]]. | |||
|- | |||
| '''playerid''' || [playerid=182390841] || {{playerid|182390841}} || Inserts a direct link to a player. || Available from the start. | |||
|- | |||
| '''youthplayerid''' || [youthplayerid=31508440] || (31508440) || Inserts a direct link to a youth player. || Available shortly after the addition of the [[Youth Academy]] in 2007. | |||
|- | |||
| '''teamid''' || [teamid=102541] || {{teamid|102541}} || Inserts a direct link to a team. || Available from the start. | |||
|- | |||
| '''youthteamid''' || [youthteamid=518] || (518) || Inserts a direct link to a youth team. || Available shortly after the addition of the [[Youth Academy]] in 2007. | |||
|- | |||
| '''matchid''' || [matchid=13151551] || {{matchid|13151551}} || Inserts a direct link to a match. || Available from the start. | |||
|- | |||
| '''youthmatchid''' || [youthmatchid=316658] || (316658) || Inserts a direct link to a youth match. || Available after the [[Redesign 2008|redesign of 2008]]. | |||
|- | |||
| '''leagueid''' || [leagueid=1] || {{leagueid|1}} || Inserts a direct link to a specific series, not to a league (country) || Available from the start. | |||
|- | |||
| '''youthleagueid''' || [youthleagueid=108] || (108) || Inserts a direct link to a specific youth league || Available after the [[Redesign 2008|redesign of 2008]]. | |||
|- | |||
| '''federationid''' || [federationid=81554] || (81554) || Inserts a direct link to a federation. || Available from the start. Was changed from ''allianceid'' to ''federationid'' with the [[Redesign 2008|redesign of 2008]]. | |||
|- | |||
| message || [message=6072888.1] || (6072888.1) || Inserts a direct link to a forum message. || Deprecated, see '''post''' below. | |||
|- | |||
| '''link''' (1) || [link=/Help/] || (http://www.hattrick.org/Help/) || Inserts a link to some place within Hattrick, the part ''<nowiki>http://wwwXX.hattrick.org</nowiki>'' has to be cut off to make the link work. || Available from the start. | |||
|- | |||
| '''link''' (2) || [link=http://alltid.org/index.php] || (http://www.alltid.org) || Inserts a link to some place outside of Hattrick. || Available from the start. | |||
|- | |||
| '''articleid''' || [articleid=2792] || (2792) || Inserts a link to a [[Hattrick Press]] article. || Available after the [[Redesign 2008|redesign of 2008]]. | |||
|- | |||
| '''table''' || [table ''attribute=value''][/table] || n/a || Begins a formatted HTML table. {{ref|ref-1}} End tag is required. || Available after the [[Redesign 2008|redesign of 2008]]. | |||
|- | |||
| '''tr''' || [tr][/tr] || n/a || Add a new table row. End tag is required. || Available after the [[Redesign 2008|redesign of 2008]]. | |||
|- | |||
| '''th''' || [th ''attribute=value''][/th]{{ref|ref-2}}|| n/a || Add a new table heading cell. This is by default in bold text with gray background. End tag is required. || Added some time during 2009 in the Forum v1.2 project. | |||
|- | |||
| '''td''' || [td ''attribute=value''][/td]{{ref|ref-3}}|| n/a || Add a new table cell. End tag is required. || Available after the [[Redesign 2008|redesign of 2008]]. | |||
|- | |||
| '''post''' || [post=6072888.1] || (6072888.1) || Inserts a direct link to a forum message. || Available from the start. Was changed from message to post with the Forum v1.2 project. | |||
|- | |||
| '''spoiler''' || [spoiler]hidden text[/spoiler] || n/a || Hides ''hidden text'' which the reader can see by clicking a button. End tag required. || Added some time during 2009 in the Forum v1.2 project. | |||
|} | |||
1. {{note|ref-1}} Tables must be strictly nested. The minimum table is: [table][tr][td]Single cell[/td][/tr][/table]. Example of a 2 row, 3 column table: | |||
<br>[table] | |||
<br>[tr][th]H1[/th][th]H2[/th][th]H3[/th][/tr] | |||
<br>[tr][td]A1[/td][td]A2[/td][td]A3[/td][/tr] | |||
<br>[tr][td]B1[/td][td]B2[/td][td]B3[/td][/tr] | |||
<br>[/table] | |||
This will result in (note that Hattricks forum has another design for their tables): | |||
<table border="1" cell-spacing="0"> | |||
<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> | |||
2. {{note|ref-2}} Valid attributes/values for TDs and THs are: | |||
* colspan={1..N} - This particular td will span over N columns. | |||
* rowspan={1..N} - This particular td will span over N rows | |||
* align={left|right|center} - The textual alignment within the cell. | |||
* valign={top|bottom|middle} - The vertical alignment within the cell. | |||
3. {{note|ref-3}} See 2 above. | |||
== Lásd még == | == Lásd még == | ||
[[Category: Hungarian Hattrick Wiki|Hattrick Markup Nyelv]] | [[Category: Hungarian Hattrick Wiki|Hattrick Markup Nyelv]] | ||
Revision as of 15:54, 22 May 2012
Hattrick Markup Nyelv vagy HT-ML egy Hattrick-féle BBCode verzió. Kezdetben csupán a Hattrick fórumain lehetett használni. Feladata, hogy a sima szöveges tartalmat kibővítse vastag, dőlt, aláhúzott és egyéb formázási lehetőségekkel.
Az oldal .NET alá portolása után ez a funkció elérhető vált a HT levelekben is. Továbbá a 2009.03.17-i támogatói csomag frissítése során elérhetővé vált a vendégkönyvben és a közleményekben is, amit eredetileg csak Foxtrick vagy Firehat felhasználók tehettek meg.
HT-ML elemek (tag-ek) sokáig változatlanok maradtak, csupán az ifiakadémia módosításával változott a használható elemek száma. További változást hozott a Fórum v1.1 bevezetése, mikoris könnyebbé vált a hozzászólások idézése.
2009 májusának eleje óta a HT-ML tag-ek szigúan beágyazottak, azaz kötelező a lezáró tag-ek használata. Ezek elhagyása korábban az oldal kinézetét jelentősen megváltoztathatta. Egy példa: [i][b]Helló![/b][/i] egy helyes szintaxis, míg [i][b]Helló[/i][/b] nem az.
Jelenlegi HT-ML kódok
Az alábbi táblázat tartalmazza a jelenleg ismert HT-ML tag-eket, és azok használatát.
| Kód | Szintaxis | Eredmény | Megjegyzés | Hozzáadva |
|---|---|---|---|---|
| b | I make [b]this[/b] appear in bold. | I make this appear in bold. End tag is required. | Félkövér szöveg | Kezdetektől elérhető. |
| i | I make [i]this[/i] appear in italic. | I make this appear in italic. End tag is required. | Dőlt szöveg | Kezdetektől elérhető. |
| u | I make [u]this[/u] appear underlined. | I make this appear underlined. End tag is required. | Underlined text | Available from the start. |
| 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. | Available from the start, the possibility to add an argument was added with Forum v1.1 in 2009. |
| br | First line.[br]Second line. | First line Second line. |
Takes the text to a new line. No end tag is needed. | Available from the start. |
| hr | First line.[hr]Second line. | First line.
Second line. |
Inserts a HTML ruler. No end tag is needed. | Available from the start, deleted for standard skin with the redesign of 2008. |
| userid | [userid=1836] | (1836) | Inserts a direct link to a user. | Available after the redesign of 2008. |
| playerid | [playerid=182390841] | (182390841) | Inserts a direct link to a player. | Available from the start. |
| youthplayerid | [youthplayerid=31508440] | (31508440) | Inserts a direct link to a youth player. | Available shortly after the addition of the Youth Academy in 2007. |
| teamid | [teamid=102541] | (102541) | Inserts a direct link to a team. | Available from the start. |
| youthteamid | [youthteamid=518] | (518) | Inserts a direct link to a youth team. | Available shortly after the addition of the Youth Academy in 2007. |
| matchid | [matchid=13151551] | (13151551) | Inserts a direct link to a match. | Available from the start. |
| youthmatchid | [youthmatchid=316658] | (316658) | Inserts a direct link to a youth match. | Available after the redesign of 2008. |
| leagueid | [leagueid=1] | (1) | Inserts a direct link to a specific series, not to a league (country) | Available from the start. |
| youthleagueid | [youthleagueid=108] | (108) | Inserts a direct link to a specific youth league | Available after the redesign of 2008. |
| federationid | [federationid=81554] | (81554) | Inserts a direct link to a federation. | Available from the start. Was changed from allianceid to federationid with the redesign of 2008. |
| message | [message=6072888.1] | (6072888.1) | Inserts a direct link to a forum message. | Deprecated, see post below. |
| 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. | Available from the start. |
| link (2) | [link=http://alltid.org/index.php] | (http://www.alltid.org) | Inserts a link to some place outside of Hattrick. | Available from the start. |
| articleid | [articleid=2792] | (2792) | Inserts a link to a Hattrick Press article. | Available after the redesign of 2008. |
| table | [table attribute=value][/table] | n/a | Begins a formatted HTML table. [1] End tag is required. | Available after the redesign of 2008. |
| tr | [tr][/tr] | n/a | Add a new table row. End tag is required. | Available after the redesign of 2008. |
| 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. | Added some time during 2009 in the Forum v1.2 project. |
| td | [td attribute=value][/td][3] | n/a | Add a new table cell. End tag is required. | Available after the redesign of 2008. |
| post | [post=6072888.1] | (6072888.1) | Inserts a direct link to a forum message. | Available from the start. Was changed from message to post with the Forum v1.2 project. |
| spoiler | [spoiler]hidden text[/spoiler] | n/a | Hides hidden text which the reader can see by clicking a button. End tag required. | Added some time during 2009 in the Forum v1.2 project. |
1. ^ Tables must be strictly nested. The minimum table is: [table][tr][td]Single cell[/td][/tr][/table]. Example of a 2 row, 3 column table:
[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]
This will result in (note that Hattricks forum has another design for their tables):
| H1 | H2 | H3 |
|---|---|---|
| A1 | A2 | A3 |
| B1 | B2 | B3 |
2. ^ Valid attributes/values for TDs and THs are:
- colspan={1..N} - This particular td will span over N columns.
- rowspan={1..N} - This particular td will span over N rows
- align={left|right|center} - The textual alignment within the cell.
- valign={top|bottom|middle} - The vertical alignment within the cell.
3. ^ See 2 above.