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=https://raw.githubusercontent.com/friendica/friendica/master/images/friendica-32.jpg]The Friendica Logo[/img]</td>
73 <td><img src="https://raw.githubusercontent.com/friendica/friendica/master/images/friendica-32.jpg" alt="The Friendica Logo"></td>
76 <td>[img=64x32]https://raw.githubusercontent.com/friendica/friendica/master/images/friendica-32.jpg[/img]<br>
77 <br>Note: provided height is simply discarded.</td>
78 <td><img src="https://raw.githubusercontent.com/friendica/friendica/master/images/friendica-32.jpg" style="width: 64px;"></td>
81 <td>[size=xx-small]small text[/size]</td>
82 <td><span style="font-size: xx-small;">small text</span></td>
85 <td>[size=xx-large]big text[/size]</td>
86 <td><span style="font-size: xx-large;">big text</span></td>
89 <td>[size=20]exact size[/size] (size can be any number, in pixels)</td>
90 <td><span style="font-size: 20px;">exact size</span></td>
93 <td>[font=serif]Serif font[/font]</td>
94 <td><span style="font-family: serif;">Serif font</span></td>
100 <table class="bbcodes">
106 <td>[url]http://friendi.ca[/url]</td>
107 <td><a href="http://friendi.ca">http://friendi.ca</a></td>
110 <td>[url=http://friendi.ca]Friendica[/url]</td>
111 <td><a href="http://friendi.ca">Friendica</a></td>
114 <td>[bookmark]http://friendi.ca[/bookmark]<br><br>
115 #^[url]http://friendi.ca[/url]</td>
116 <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>
119 <td>[bookmark=http://friendi.ca]Bookmark[/bookmark]<br><br>
120 #^[url=http://friendi.ca]Bookmark[/url]<br><br>
121 #[url=http://friendi.ca]^[/url][url=http://friendi.ca]Bookmark[/url]</td>
122 <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>
125 <td>[url=/posts/f16d77b0630f0134740c0cc47a0ea02a]Diaspora post with GUID[/url]</td>
126 <td><a href="/display/f16d77b0630f0134740c0cc47a0ea02a" target="_blank">Diaspora post with GUID</a></td>
130 <td>#<a href="/search?tag=Friendica">Friendica</a></td>
134 <td>@<a href="javascript:void(0)">Mention</a></td>
137 <td>acct:account@friendica.host.com (WebFinger)</td>
138 <td><a href="/acctlink?addr=account@friendica.host.com" target="extlink">acct:account@friendica.host.com</a></td>
141 <td>[mail]user@mail.example.com[/mail]</td>
142 <td><a href="mailto:user@mail.example.com">user@mail.example.com</a></td>
145 <td>[mail=user@mail.example.com]Send an email to User[/mail]</td>
146 <td><a href="mailto:user@mail.example.com">Send an email to User</a></td>
152 <table class="bbcodes">
158 <td>[p]A paragraph of text[/p]</td>
159 <td><p>A paragraph of text</p></td>
162 <td>Inline [code]code[/code] in a paragraph</td>
163 <td>Inline <key>code</key> in a paragraph</td>
166 <td>[code]Multi<br>line<br>code[/code]</td>
172 <td>[code=php]function text_highlight($s,$lang)[/code]<sup><a href="#supported-code">1</a></sup></td>
173 <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>
176 <td>[quote]quote[/quote]</td>
177 <td><blockquote>quote</blockquote></td>
180 <td>[quote=Author]Author? Me? No, no, no...[/quote]</td>
181 <td><strong class="author">Author wrote:</strong><blockquote>Author? Me? No, no, no...</blockquote></td>
184 <td>[center]Centered text[/center]</td>
185 <td><div style="text-align:center;">Centered text</div></td>
188 <td>You should not read any further if you want to be surprised.[spoiler]There is a happy end.[/spoiler]</td>
190 <div class="wall-item-container">
191 You should not read any further if you want to be surprised.<br>
192 <span id="spoiler-wrap-0716e642" class="spoiler-wrap fakelink" onclick="openClose('spoiler-0716e642');">Click to open/close</span>
193 <blockquote class="spoiler" id="spoiler-0716e642" style="display: none;">There is a happy end.</blockquote>
194 <div class="body-attach"><div class="clear"></div></div>
199 <td>[spoiler=Author]Spoiler quote[/spoiler]</td>
201 <div class="wall-item-container">
202 <strong class="spoiler">Author wrote:</strong><br>
203 <span id="spoiler-wrap-a893765a" class="spoiler-wrap fakelink" onclick="openClose('spoiler-a893765a');">Click to open/close</span>
204 <blockquote class="spoiler" id="spoiler-a893765a" style="display: none;">Spoiler quote</blockquote>
205 <div class="body-attach"><div class="clear"></div></div>
210 <td>[hr] (horizontal line)</td>
215 <a name="supported-code">1</a>: Supported language parameter values for code highlighting:
238 <table class="bbcodes">
244 <td>[h1]Title 1[/h1]</td>
245 <td><h1>Title 1</h1></td>
248 <td>[h2]Title 2[/h2]</td>
249 <td><h2>Title 2</h2></td>
252 <td>[h3]Title 3[/h3]</td>
253 <td><h3>Title 3</h3></td>
256 <td>[h4]Title 4[/h4]</td>
257 <td><h4>Title 4</h4></td>
260 <td>[h5]Title 5[/h5]</td>
261 <td><h5>Title 5</h5></td>
264 <td>[h6]Title 6[/h6]</td>
265 <td><h6>Title 6</h6></td>
271 <table class="bbcodes">
279 [th]Header 1[/th]<br>
280 [th]Header 2[/th]<br>
281 [th]Header 2[/th]<br>
282 [/tr]<br>
284 [td]Cell 1[/td]<br>
285 [td]Cell 2[/td]<br>
286 [td]Cell 3[/td]<br>
287 [/tr]<br>
289 [td]Cell 4[/td]<br>
290 [td]Cell 5[/td]<br>
291 [td]Cell 6[/td]<br>
292 [/tr]<br>
317 <td>[table border=0]</td>
341 <td>[table border=1]</td>
368 <table class="bbcodes">
375 [li] First list element<br>
376 [li] Second list element<br>
379 [*] First list element<br>
380 [*] Second list element<br>
383 <ul class="listbullet" style="list-style-type: circle;">
384 <li>First list element</li>
385 <li>Second list element</li>
391 [*] First list element<br>
392 [*] Second list element<br>
395 [*] First list element<br>
396 [*] Second list element<br>
399 <ul class="listdecimal" style="list-style-type: decimal;">
400 <li> First list element</li>
401 <li> Second list element</li>
407 [*] First list element<br>
408 [*] Second list element<br>
411 <ul class="listnone" style="list-style-type: none;">
412 <li> First list element</li>
413 <li> Second list element</li>
419 [*] First list element<br>
420 [*] Second list element<br>
423 <ul class="listlowerroman" style="list-style-type: lower-roman;">
424 <li> First list element</li>
425 <li> Second list element</li>
431 [*] First list element<br>
432 [*] Second list element<br>
435 <ul class="listupperroman" style="list-style-type: upper-roman;">
436 <li> First list element</li>
437 <li> Second list element</li>
443 [*] First list element<br>
444 [*] Second list element<br>
447 <ul class="listloweralpha" style="list-style-type: lower-alpha;">
448 <li> First list element</li>
449 <li> Second list element</li>
455 [*] First list element<br>
456 [*] Second list element<br>
459 <ul class="listupperalpha" style="list-style-type: upper-alpha;">
460 <li> First list element</li>
461 <li> Second list element</li>
469 You can embed video, audio and more in a message.
471 <table class="bbcodes">
477 <td>[video]url[/video]</td>
478 <td>Where *url* can be an url to youtube, vimeo, soundcloud, or other sites wich supports oembed or opengraph specifications.</td>
481 <td>[video]Video file url[/video]
482 [audio]Audio file url[/audio]</td>
483 <td>Full URL to an ogg/ogv/oga/ogm/webm/mp4/mp3 file. An HTML5 player will be used to show it.</td>
486 <td>[youtube]Youtube URL[/youtube]</td>
487 <td>Youtube video OEmbed display. May not embed an actual player.</td>
490 <td>[youtube]Youtube video ID[/youtube]</td>
491 <td>Youtube player iframe embed.</td>
494 <td>[vimeo]Vimeo URL[/vimeo]</td>
495 <td>Vimeo video OEmbed display. May not embed an actual player.</td>
498 <td>[vimeo]Vimeo video ID[/vimeo]</td>
499 <td>Vimeo player iframe embed.</td>
502 <td>[embed]URL[/embed]</td>
503 <td>Embed OEmbed rich content.</td>
506 <td>[iframe]URL[/iframe]</td>
507 <td>General embed, iframe size is limited by the theme size for video players.</td>
510 <td>[url]*url*[/url]</td>
511 <td>If *url* supports oembed or opengraph specifications the embedded object will be shown (eg, documents from scribd).
512 Page title with a link to *url* will be shown.</td>
518 This requires "openstreetmap" or "Google Maps" addon version 1.3 or newer.
519 If the addon isn't activated, the raw coordinates are shown instead.
521 <table class="bbcodes">
527 <td>[map]address[/map]</td>
528 <td>Embeds a map centered on this address.</td>
531 <td>[map=lat,long]</td>
532 <td>Embeds a map centered on those coordinates.</td>
536 <td>Embeds a map centered on the post's location.</td>
540 ## Abstract for longer posts
542 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.
544 Friendica uses a semi-intelligent mechanism to generate a fitting abstract.
545 But it can be useful to define a custom abstract that will only be displayed on the external network.
546 This is done with the [abstract]-element.
547 <table class="bbcodes">
553 <td>[abstract]Totally interesting! A must-see! Please click the link![/abstract]<br>
554 I want to tell you a really boring story that you really never wanted to hear.</td>
555 <td>Twitter would display the text <blockquote>Totally interesting! A must-see! Please click the link!</blockquote>
556 On Friendica you would only see the text after <blockquote>I want to tell you a really ...</blockquote></td>
560 It is even possible to define abstracts for separate networks:
562 <table class="bbcodes">
569 [abstract]Hi friends Here are my newest pictures![/abstract]<br>
570 [abstract=twit]Hi my dear Twitter followers. Do you want to see my new
571 pictures?[/abstract]<br>
572 [abstract=apdn]Helly my dear followers on ADN. I made sone new pictures
573 that I wanted to share with you.[/abstract]<br>
574 Today I was in the woods and took some real cool pictures ...</td>
575 <td>For Twitter and App.net the system will use the defined abstracts.<br>
576 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>
580 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.
582 Networks like Facebook or Google+ aren't length limited.
583 For this reason the [abstract] element isn't used.
584 Instead you have to name the explicit network:
586 <table class="bbcodes">
593 [abstract]These days I had a strange encounter...[/abstract]<br>
594 [abstract=goog]Hello my dear Google+ followers. You have to read my newest blog post![/abstract]<br>
595 [abstract=face]Hello my Facebook friends. These days happened something really cool.[/abstract]<br>
596 While taking pictures in the woods I had a really strange encounter...</td>
597 <td>Google and Facebook will show the respective abstracts while the other networks will show the default one.<br>
598 <br>Meanwhile, Friendica won't show any of the abstracts.</td>
602 The [abstract] element is not working with connectors where we post HTML directly, like Tumblr, Wordpress or Pump.io.
603 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.
607 <table class="bbcodes">
613 <td>If you need to put literal bbcode in a message, [noparse], [nobb] or [pre] are used to escape bbcode:
615 <li>[noparse][b]bold[/b][/noparse]</li>
616 <li>[nobb][b]bold[/b][/nobb]</li>
617 <li>[pre][b]bold[/b][/pre]</li>
623 <td>[nosmile] is used to disable smilies on a post by post basis<br>
630 <td>Custom inline styles<br>
632 [style=text-shadow: 0 0 4px #CC0000;]You can change all the CSS properties of this block.[/style]</td>
633 <td><span style="text-shadow: 0 0 4px #cc0000;;">You can change all the CSS properties of this block.</span></td>
636 <td>Custom class block<br>
638 [class=custom]If the class exists, this block will have the custom class style applied.[/class]</td>
639 <td><pre><span class="custom">If the class exists,<br> this block will have the custom class<br> style applied.</span></pre></td>