Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

146 lines
3.5 KiB

  1. Friendica BBCode tags reference
  2. ========================
  3. * [Home](help)
  4. Inline
  5. -----
  6. <pre>[b]bold[/b]</pre> : <strong>bold</strong>
  7. <pre>[i]italic[/i]</pre> : <em>italic</em>
  8. <pre>[u]underlined[/u]</pre> : <u>underlined</u>
  9. <pre>[s]strike[/s]</pre> : <strike>strike</strike>
  10. <pre>[color=red]red[/color]</pre> : <span style="color: red;">red</span>
  11. <pre>[url=http://www.friendica.com]Friendica[/url]</pre> : <a href="http://www.friendica.com" target="external-link">Friendica</a>
  12. <pre>[img]http://friendica.com/sites/default/files/friendika-32.png[/img]</pre> : <img src="http://friendica.com/sites/default/files/friendika-32.png" alt="Immagine/foto">
  13. <pre>[size=xx-small]small text[/size]</pre> : <span style="font-size: xx-small;">small text</span>
  14. <pre>[size=xx-large]big text[/size]</pre> : <span style="font-size: xx-large;">big text</span>
  15. <pre>[size=20]exact size[/size] (size can be any number, in pixel)</pre> : <span style="font-size: 20px;">exact size</span>
  16. Block
  17. -----
  18. <pre>[code]code[/code]</pre>
  19. <code>code</code>
  20. <p style="clear:both;">&nbsp;</p>
  21. <pre>[quote]quote[/quote]</pre>
  22. <blockquote>quote</blockquote>
  23. <p style="clear:both;">&nbsp;</p>
  24. <pre>[quote=Author]Author? Me? No, no, no...[/quote]</pre>
  25. <strong class="author">Author wrote:</strong><blockquote>Author? Me? No, no, no...</blockquote>
  26. <p style="clear:both;">&nbsp;</p>
  27. <pre>[center]centered text[/center]</pre>
  28. <div style="text-align:center;">centered text</div>
  29. <p style="clear:both;">&nbsp;</p>
  30. **Table**
  31. <pre>[table border=1]
  32. [tr]
  33. [th]Tables now[/th]
  34. [/tr]
  35. [tr]
  36. [td]Have headers[/td]
  37. [/tr]
  38. [/table]</pre>
  39. <table border="1"><tbody><tr><th>Tables now</th></tr><tr><td>Have headers</td></tr></tbody></table>
  40. <p style="clear:both;">&nbsp;</p>
  41. **List**
  42. <pre>[list]
  43. [*] First list element
  44. [*] Second list element
  45. [/list]</pre>
  46. <ul class="listbullet" style="list-style-type: circle;">
  47. <li> First list element<br>
  48. </li>
  49. <li> Second list element</li>
  50. </ul>
  51. [list] is equivalent to [ul] (unordered list).
  52. [ol] can be used instead of [list] to show an ordered list:
  53. <pre>[ol]
  54. [*] First list element
  55. [*] Second list element
  56. [/ol]</pre>
  57. <ul class="listdecimal" style="list-style-type: decimal;"><li> First list element<br></li><li> Second list element</li></ul>
  58. For more options on ordered lists, you can define the style of numeration on [list] argument:
  59. <pre>[list=1]</pre> : decimal
  60. <pre>[list=i]</pre> : lover case roman
  61. <pre>[list=I]</pre> : upper case roman
  62. <pre>[list=a]</pre> : lover case alphabetic
  63. <pre>[list=A] </pre> : upper case alphabetic
  64. Embed
  65. ------
  66. You can embed video, audio and more in a message.
  67. <pre>[video]url[/video]</pre>
  68. <pre>[audio]url[/audio]</pre>
  69. Where *url* can be an url to youtube, vimeo, soundcloud, or other sites wich supports oembed or opengraph specifications.
  70. *url* can be also full url to an ogg file. HTML5 tag will be used to show it.
  71. <pre>[url]*url*[/url]</pre>
  72. If *url* supports oembed or opengraph specifications the embedded object will be shown (eg, documents from scribd).
  73. Page title with a link to *url* will be shown.
  74. Map
  75. ---
  76. <pre>[map]address[/map]</pre>
  77. <pre>[map=lat,long]</pre>
  78. You can embed maps from coordinates or addresses.
  79. This require "openstreetmap" addon version 1.3 or newer.
  80. Special
  81. -------
  82. If you need to put literal bbcode in a message, [noparse], [nobb] or [pre] are used to escape bbcode:
  83. <pre>[noparse][b]bold[/b][/noparse]</pre> : [b]bold[/b]