DSCF

seit 1997

zurück zur Hauptseite
in Thread öffnen
Avatar

bbcodes im Forum (Allgemeines)

Mod Stefan @, Freitag, 16. Mai 2008, 16:15 @ Mod Stefan

Hallo zusammen,

Dieses Forum stellt aus Sicherheitsgründen keinen HTML-Code dar. Als Ersatz dafür gibts den bbcode. Aus dem Supportforum von MLF (dieser Forumssoftware) habe ich eine kleine Aufstellung rauskopiert, was u.a. möglich ist (Originalthread findet ihr hier).

[b]foo[/b] --> foo (bold)
[i]foo[/i] --> foo (italic)
[u]foo[/u] --> foo (underlined)
[link=http://www.example.org]link text[/link] --> link text
[color=foo]bar[/color] --> bar (colors in hex notation, e.g., #f00 for red)
[size=foo]bar[/size] --> bar bar (foo = small or large)

These BBCodes for text-formatting are not case-sensitive: [b][/b], [i][/i], [u][/u].
For example [b]foo[/b] works as well as [B]foo[/B].
[size=foo]bar[/size] is partly case-sensitive; [size=LARGE]bar[/size] will not work, whereas [SIZE=large]bar[/SIZE] will do the job.

BBCodes which are not active in this forum, but can be easily implemented are [d][/d] for deleted text, [sub][/sub]/[sup][/sup] for sub-/superscript,...

[msg=foo]link text[/msg] --> link text (internal link to another post in the forum, where 'foo' is the 'id' of the post)

[list]
[*]foo
[*]bar
[/list]
-->

[img]URI[/img] --> [image]

Images may be formated apart from the default (left) to float to the right:
[img=right]URI[/img] -->
[image]
Remark: right now the implementation is a little bit buggy, because no

{ clear:left; }

is used, and the image may be placed where you don't expect it...

foo [inlinecode]bar[/inlinecode] foo --> foo bar foo (monospaced text within a single line)

[code]foo   bar
===   ===[/code]
--> monospaced text with leading/trailing linefeeds:

foo   bar
===   ===


Anmerkung:
da [code] "monospaced" ist, also alle Zeichen die gleiche Breite haben, kann man diesen bbcode auch nutzen, um Tabellen zu erzeugen:


         | Spalte 1 | Spalte 2 | Spalte 3 
---------|----------|----------|----------
Zeile 1  |          |  lala    |          
---------|----------|----------|----------
Zeile 2  |  lolo    |  lala    |          
---------|----------|----------|----------
Zeile 3  |          |  lala    |  lulu    
---------|----------|----------|----------
Zeile 1  |  lolo    |  lala    |  lulu    
---------|----------|----------|----------
Zeile 1  |          |  lala    |          
  2610 Views

gesamter Thread:

 RSS-Feed dieser Diskussion

2554 Einträge in 582 Threads, 337 angemeldete Benutzer, 8 Benutzer online (0 angemeldete, 8 Gäste)
RSS Einträge  RSS Threads | Kontakt
Slot/Scaleracing Forum (1:24)    ||    powered by my little forum    ||    Das Servo-Forum