1 Friendica BBCode tags reference
2 ========================
4 * [Creating posts](help/Text_editor)
11 background-color: #f9f9f9;
12 border: 1px solid #aaa;
13 border-collapse: collapse;
18 table.bbcodes > tr > th,
19 table.bbcodes > tr > td,
20 table.bbcodes > * > tr > th,
21 table.bbcodes > * > tr > td {
22 border: 1px solid #aaa;
26 table.bbcodes > tr > th,
27 table.bbcodes > * > tr > th {
28 background-color: #f2f2f2;
34 <table class="bbcodes">
41 <td><strong>bold</strong></td>
44 <td>[i]italic[/i]</td>
45 <td><em>italic</em></td>
48 <td>[u]underlined[/u]</td>
49 <td><u>underlined</u></td>
52 <td>[s]strike[/s]</td>
53 <td><strike>strike</strike></td>
56 <td>[o]overline[/o]</td>
57 <td><span class="overline">overline</span></td>
60 <td>[color=red]red[/color]</td>
61 <td><span style="color: red;">red</span></td>
64 <td>[url=http://friendi.ca]Friendica[/url]</td>
65 <td><a href="http://friendi.ca" target="external-link">Friendica</a></td>
68 <td>[img]https://raw.githubusercontent.com/friendica/friendica/master/images/friendica-32.jpg[/img]</td>
69 <td><img src="https://raw.githubusercontent.com/friendica/friendica/master/images/friendica-32.jpg" alt="Immagine/foto"></td>
72 <td>[img=64x32]https://raw.githubusercontent.com/friendica/friendica/master/images/friendica-32.jpg[/img]<br>
73 <br>Note: provided height is simply discarded.</td>
74 <td><img src="https://raw.githubusercontent.com/friendica/friendica/master/images/friendica-32.jpg" style="width: 64px;"></td>
77 <td>[size=xx-small]small text[/size]</td>
78 <td><span style="font-size: xx-small;">small text</span></td>
81 <td>[size=xx-large]big text[/size]</td>
82 <td><span style="font-size: xx-large;">big text</span></td>
85 <td>[size=20]exact size[/size] (size can be any number, in pixels)</td>
86 <td><span style="font-size: 20px;">exact size</span></td>
89 <td>[font=serif]Serif font[/font]</td>
90 <td><span style="font-family: serif;">Serif font</span></td>
96 <table class="bbcodes">
102 <td>[url]http://friendi.ca[/url]</td>
103 <td><a href="http://friendi.ca">http://friendi.ca</a></td>
106 <td>[url=http://friendi.ca]Friendica[/url]</td>
107 <td><a href="http://friendi.ca">Friendica</a></td>
110 <td>[bookmark]http://friendi.ca[/bookmark]<br><br>
111 #^[url]http://friendi.ca[/url]</td>
112 <td><span class="oembed link"><h4>Friendica: <a href="http://friendi.ca" rel="oembed"></a><a href="http://friendi.ca" target="_blank">http://friendi.ca</a></h4></span></td>
115 <td>[bookmark=http://friendi.ca]Bookmark[/bookmark]<br><br>
116 #^[url=http://friendi.ca]Bookmark[/url]<br><br>
117 #[url=http://friendi.ca]^[/url][url=http://friendi.ca]Bookmark[/url]</td>
118 <td><span class="oembed link"><h4>Friendica: <a href="http://friendi.ca" rel="oembed"></a><a href="http://friendi.ca" target="_blank">Bookmark</a></h4></span></td>
121 <td>[url=/posts/f16d77b0630f0134740c0cc47a0ea02a]Diaspora post with GUID[/url]</td>
122 <td><a href="/display/f16d77b0630f0134740c0cc47a0ea02a" target="_blank">Diaspora post with GUID</a></td>
126 <td>#<a href="/search?tag=Friendica">Friendica</a></td>
130 <td>@<a href="javascript:void(0)">Mention</a></td>
133 <td>acct:account@friendica.host.com (WebFinger)</td>
134 <td><a href="/acctlink?addr=account@friendica.host.com" target="extlink">acct:account@friendica.host.com</a></td>
137 <td>[mail]user@mail.example.com[/mail]</td>
138 <td><a href="mailto:user@mail.example.com">user@mail.example.com</a></td>
141 <td>[mail=user@mail.example.com]Send an email to User[/mail]</td>
142 <td><a href="mailto:user@mail.example.com">Send an email to User</a></td>
148 <table class="bbcodes">
154 <td>[p]A paragraph of text[/p]</td>
155 <td><p>A paragraph of text</p></td>
158 <td>Inline [code]code[/code] in a paragraph</td>
159 <td>Inline <key>code</key> in a paragraph</td>
162 <td>[code]Multi<br>line<br>code[/code]</td>
168 <td>[code=php]function text_highlight($s,$lang)[/code]<sup><a href="#supported-code">1</a></sup></td>
169 <td><code><div class="hl-main"><ol class="hl-main"><li><span class="hl-code"> </span><span class="hl-reserved">function</span><span class="hl-code"> </span><span class="hl-identifier">text_highlight</span><span class="hl-brackets">(</span><span class="hl-var">$s</span><span class="hl-code">,</span><span class="hl-var">$lang</span><span class="hl-brackets">)</span></li></ol></div></code></td>
172 <td>[quote]quote[/quote]</td>
173 <td><blockquote>quote</blockquote></td>
176 <td>[quote=Author]Author? Me? No, no, no...[/quote]</td>
177 <td><strong class="author">Author wrote:</strong><blockquote>Author? Me? No, no, no...</blockquote></td>
180 <td>[center]Centered text[/center]</td>
181 <td><div style="text-align:center;">Centered text</div></td>
184 <td>You should not read any further if you want to be surprised.[spoiler]There is a happy end.[/spoiler]</td>
186 <div class="wall-item-container">
187 You should not read any further if you want to be surprised.<br>
188 <span id="spoiler-wrap-0716e642" class="spoiler-wrap fakelink" onclick="openClose('spoiler-0716e642');">Click to open/close</span>
189 <blockquote class="spoiler" id="spoiler-0716e642" style="display: none;">There is a happy end.</blockquote>
190 <div class="body-attach"><div class="clear"></div></div>
195 <td>[spoiler=Author]Spoiler quote[/spoiler]</td>
197 <div class="wall-item-container">
198 <strong class="spoiler">Author wrote:</strong><br>
199 <span id="spoiler-wrap-a893765a" class="spoiler-wrap fakelink" onclick="openClose('spoiler-a893765a');">Click to open/close</span>
200 <blockquote class="spoiler" id="spoiler-a893765a" style="display: none;">Spoiler quote</blockquote>
201 <div class="body-attach"><div class="clear"></div></div>
206 <td>[hr] (horizontal line)</td>
211 <a name="supported-code">1</a>: Supported language parameter values for code highlighting:
234 <table class="bbcodes">
240 <td>[h1]Title 1[/h1]</td>
241 <td><h1>Title 1</h1></td>
244 <td>[h2]Title 2[/h2]</td>
245 <td><h2>Title 2</h2></td>
248 <td>[h3]Title 3[/h3]</td>
249 <td><h3>Title 3</h3></td>
252 <td>[h4]Title 4[/h4]</td>
253 <td><h4>Title 4</h4></td>
256 <td>[h5]Title 5[/h5]</td>
257 <td><h5>Title 5</h5></td>
260 <td>[h6]Title 6[/h6]</td>
261 <td><h6>Title 6</h6></td>
267 <table class="bbcodes">
275 [th]Header 1[/th]<br>
276 [th]Header 2[/th]<br>
277 [th]Header 2[/th]<br>
278 [/tr]<br>
280 [td]Cell 1[/td]<br>
281 [td]Cell 2[/td]<br>
282 [td]Cell 3[/td]<br>
283 [/tr]<br>
285 [td]Cell 4[/td]<br>
286 [td]Cell 5[/td]<br>
287 [td]Cell 6[/td]<br>
288 [/tr]<br>
313 <td>[table border=0]</td>
337 <td>[table border=1]</td>
364 <table class="bbcodes">
371 [li] First list element<br>
372 [li] Second list element<br>
375 [*] First list element<br>
376 [*] Second list element<br>
379 <ul class="listbullet" style="list-style-type: circle;">
380 <li>First list element</li>
381 <li>Second list element</li>
387 [*] First list element<br>
388 [*] Second list element<br>
391 [*] First list element<br>
392 [*] Second list element<br>
395 <ul class="listdecimal" style="list-style-type: decimal;">
396 <li> First list element</li>
397 <li> Second list element</li>
403 [*] First list element<br>
404 [*] Second list element<br>
407 <ul class="listnone" style="list-style-type: none;">
408 <li> First list element</li>
409 <li> Second list element</li>
415 [*] First list element<br>
416 [*] Second list element<br>
419 <ul class="listlowerroman" style="list-style-type: lower-roman;">
420 <li> First list element</li>
421 <li> Second list element</li>
427 [*] First list element<br>
428 [*] Second list element<br>
431 <ul class="listupperroman" style="list-style-type: upper-roman;">
432 <li> First list element</li>
433 <li> Second list element</li>
439 [*] First list element<br>
440 [*] Second list element<br>
443 <ul class="listloweralpha" style="list-style-type: lower-alpha;">
444 <li> First list element</li>
445 <li> Second list element</li>
451 [*] First list element<br>
452 [*] Second list element<br>
455 <ul class="listupperalpha" style="list-style-type: upper-alpha;">
456 <li> First list element</li>
457 <li> Second list element</li>
465 You can embed video, audio and more in a message.
467 <table class="bbcodes">
473 <td>[video]url[/video]</td>
474 <td>Where *url* can be an url to youtube, vimeo, soundcloud, or other sites wich supports oembed or opengraph specifications.</td>
477 <td>[video]Video file url[/video]
478 [audio]Audio file url[/audio]</td>
479 <td>Full URL to an ogg/ogv/oga/ogm/webm/mp4/mp3 file. An HTML5 player will be used to show it.</td>
482 <td>[youtube]Youtube URL[/youtube]</td>
483 <td>Youtube video OEmbed display. May not embed an actual player.</td>
486 <td>[youtube]Youtube video ID[/youtube]</td>
487 <td>Youtube player iframe embed.</td>
490 <td>[vimeo]Vimeo URL[/vimeo]</td>
491 <td>Vimeo video OEmbed display. May not embed an actual player.</td>
494 <td>[vimeo]Vimeo video ID[/vimeo]</td>
495 <td>Vimeo player iframe embed.</td>
498 <td>[embed]URL[/embed]</td>
499 <td>Embed OEmbed rich content.</td>
502 <td>[iframe]URL[/iframe]</td>
503 <td>General embed, iframe size is limited by the theme size for video players.</td>
506 <td>[url]*url*[/url]</td>
507 <td>If *url* supports oembed or opengraph specifications the embedded object will be shown (eg, documents from scribd).
508 Page title with a link to *url* will be shown.</td>
514 This requires "openstreetmap" or "Google Maps" addon version 1.3 or newer.
515 If the addon isn't activated, the raw coordinates are shown instead.
517 <table class="bbcodes">
523 <td>[map]address[/map]</td>
524 <td>Embeds a map centered on this address.</td>
527 <td>[map=lat,long]</td>
528 <td>Embeds a map centered on those coordinates.</td>
532 <td>Embeds a map centered on the post's location.</td>
536 ## Abstract for longer posts
538 If you want to spread your post to several third party networks you may have the problem that these networks have a length limitation like on Twitter.
540 Friendica uses a semi-intelligent mechanism to generate a fitting abstract.
541 But it can be useful to define a custom abstract that will only be displayed on the external network.
542 This is done with the [abstract]-element.
543 <table class="bbcodes">
549 <td>[abstract]Totally interesting! A must-see! Please click the link![/abstract]<br>
550 I want to tell you a really boring story that you really never wanted to hear.</td>
551 <td>Twitter would display the text <blockquote>Totally interesting! A must-see! Please click the link!</blockquote>
552 On Friendica you would only see the text after <blockquote>I want to tell you a really ...</blockquote></td>
556 It is even possible to define abstracts for separate networks:
558 <table class="bbcodes">
565 [abstract]Hi friends Here are my newest pictures![/abstract]<br>
566 [abstract=twit]Hi my dear Twitter followers. Do you want to see my new
567 pictures?[/abstract]<br>
568 [abstract=apdn]Helly my dear followers on ADN. I made sone new pictures
569 that I wanted to share with you.[/abstract]<br>
570 Today I was in the woods and took some real cool pictures ...</td>
571 <td>For Twitter and App.net the system will use the defined abstracts.<br>
572 For other networks (e.g. when you are using the "statusnet" connector that is used to post to your GNU Social account) the general abstract element will be used.</td>
576 If you use (for example) the "buffer" connector to post to Facebook or Google+ you can use this element to define an abstract for a longer blogpost that you don't want to post completely to these networks.
578 Networks like Facebook or Google+ aren't length limited.
579 For this reason the [abstract] element isn't used.
580 Instead you have to name the explicit network:
582 <table class="bbcodes">
589 [abstract]These days I had a strange encounter...[/abstract]<br>
590 [abstract=goog]Hello my dear Google+ followers. You have to read my newest blog post![/abstract]<br>
591 [abstract=face]Hello my Facebook friends. These days happened something really cool.[/abstract]<br>
592 While taking pictures in the woods I had a really strange encounter...</td>
593 <td>Google and Facebook will show the respective abstracts while the other networks will show the default one.<br>
594 <br>Meanwhile, Friendica won't show any of the abstracts.</td>
598 The [abstract] element is not working with connectors where we post HTML directly, like Tumblr, Wordpress or Pump.io.
599 For the native connections--that is to e.g. Friendica, Hubzilla, Diaspora or GNU Social--the full posting is used and the contacts instance will display the posting as desired.
603 <table class="bbcodes">
609 <td>If you need to put literal bbcode in a message, [noparse], [nobb] or [pre] are used to escape bbcode:
611 <li>[noparse][b]bold[/b][/noparse]</li>
612 <li>[nobb][b]bold[/b][/nobb]</li>
613 <li>[pre][b]bold[/b][/pre]</li>
619 <td>[nosmile] is used to disable smilies on a post by post basis<br>
626 <td>Custom inline styles<br>
628 [style=text-shadow: 0 0 4px #CC0000;]You can change all the CSS properties of this block.[/style]</td>
629 <td><span style="text-shadow: 0 0 4px #cc0000;;">You can change all the CSS properties of this block.</span></td>
632 <td>Custom class block<br>
634 [class=custom]If the class exists, this block will have the custom class style applied.[/class]</td>
635 <td><pre><span class="custom">If the class exists,<br> this block will have the custom class<br> style applied.</span></pre></td>