X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2FBBCode.md;h=186b1cda932aec75a34b7d780b1399d3c83abc6b;hb=84238e1b89c0a40cfd2dfa72972fdfc2f65c4fab;hp=c84308e5b7c95f93a8103406e481f7e9754311b9;hpb=cc8a4fbf166a61459dc5be2cdc73c510ecba68b9;p=friendica.git diff --git a/doc/BBCode.md b/doc/BBCode.md index c84308e5b7..186b1cda93 100644 --- a/doc/BBCode.md +++ b/doc/BBCode.md @@ -1,138 +1,202 @@ -Friendica BBCode tags reference -======================== - -* [Home](help) - -Inline ------ - - +Friendica BBCode tags reference +======================== + +* [Home](help) + +Inline +----- + +
[b]bold[/b]: bold - +
[i]italic[/i]: italic - +
[u]underlined[/u]: underlined - +
[s]strike[/s]:
[color=red]red[/color]: red - +
[url=http://www.friendica.com]Friendica[/url]: Friendica - +
[img]http://friendica.com/sites/default/files/friendika-32.png[/img]: - +
[size=xx-small]small text[/size]: small text - +
[size=xx-large]big text[/size]: big text - +
[size=20]exact size[/size] (size can be any number, in pixel): exact size - - - - - - - -Block ------ - -
[code]code[/code]- -
code
-
-- -
[quote]quote[/quote]- -
quote- -
- -
[quote=Author]Author? Me? No, no, no...[/quote]- -Author wrote:
Author? Me? No, no, no...- -
- -
[center]centered text[/center]- -
- -**Table** -
[table border=1] - [tr] - [th]Tables now[/th] - [/tr] - [tr] - [td]Have headers[/td] - [/tr] -[/table]- -
Tables now |
---|
Have headers |
- -**List** - -
[list] - [*] First list element - [*] Second list element -[/list]-
[ol] - [*] First list element - [*] Second list element -[/ol]-
[list=1]: decimal - -
[list=i]: lover case roman - -
[list=I]: upper case roman - -
[list=a]: lover case alphabetic - -
[list=A]: upper case alphabetic - - - - -Embed ------- - -You can embed video, audio and more in a message. - -
[video]url[/video]-
[audio]url[/audio]- -Where *url* can be an url to youtube, vimeo, soundcloud, or other sites wich supports oembed or opengraph specifications. -*url* can be also full url to an ogg file. HTML5 tag will be used to show it. - -
[url]*url*[/url]- -If *url* supports oembed or opengraph specifications the embedded object will be shown (eg, documents from scribd). -Page title with a link to *url* will be shown. - - - -Special -------- - -If you need to put literal bbcode in a message, [noparse], [nobb] or [pre] are used to escape bbcode: - -
[noparse][b]bold[/b][/noparse]: [b]bold[/b] - - + + + + + + + +Block +----- + +
[code]code[/code]+ +
code
+
++ +
[quote]quote[/quote]+ +
quote+ +
+ +
[quote=Author]Author? Me? No, no, no...[/quote]+ +Author wrote:
Author? Me? No, no, no...+ +
+ +
[center]centered text[/center]+ +
+ +
You should not read any further if you want to be surprised.[spoiler]There is a happy end.[/spoiler]+ +You should not read any further if you want to be surprised.
+ +**Table** +
[table border=1] + [tr] + [th]Tables now[/th] + [/tr] + [tr] + [td]Have headers[/td] + [/tr] +[/table]+ +
Tables now |
---|
Have headers |
+ +**List** + +
[list] + [*] First list element + [*] Second list element +[/list]+
[ol] + [*] First list element + [*] Second list element +[/ol]+
[list=1]: decimal + +
[list=i]: lover case roman + +
[list=I]: upper case roman + +
[list=a]: lover case alphabetic + +
[list=A]: upper case alphabetic + + + + +Embed +------ + +You can embed video, audio and more in a message. + +
[video]url[/video]+
[audio]url[/audio]+ +Where *url* can be an url to youtube, vimeo, soundcloud, or other sites wich supports oembed or opengraph specifications. +*url* can be also full url to an ogg file. HTML5 tag will be used to show it. + +
[url]*url*[/url]+ +If *url* supports oembed or opengraph specifications the embedded object will be shown (eg, documents from scribd). +Page title with a link to *url* will be shown. + +Map +--- + +
[map]address[/map]+
[map=lat,long]+ +You can embed maps from coordinates or addresses. +This require "openstreetmap" addon version 1.3 or newer. + +----------------------------------------------------------- + +Abstract for longer posts +------------------------- + +If you want to spread your post to several third party networks you can have the problem that these networks have (for example) a length limitation. +(Like on Twitter) + +Friendica is using a semi intelligent mechanism to generate a fitting abstract. +But it can be interesting to define an own abstract that will only be displayed on the external network. +This is done with the [abstract]-element. +Example: + +
[abstract]Totally interesting! A must-see! Please click the link![/abstract] +I want to tell you a really boring story that you really never wanted +to hear.+ +Twitter would display the text "Totally interesting! A must-see! Please click the link!". +On Friendica you would only see the text after "I want to tell you a really ..." + +It is even possible to define abstracts for separate networks: + +
+[abstract]Hi friends Here are my newest pictures![abstract] +[abstract=twit]Hi my dear Twitter followers. Do you want to see my new +pictures?[abstract] +[abstract=apdn]Helly my dear followers on ADN. I made sone new pictures +that I wanted to share with you.[abstract] +Today I was in the woods and took some real cool pictures ... ++ +For Twitter and App.net the system will use the defined abstracts. +For other networks (e.g. when you are using the "statusnet" connector that is used to post to GNU Social) the general abstract element will be used. + +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. + +Networks like Facebook or Google+ aren't length limited. +For this reason the [abstract] element isn't used. +Instead you have to name the explicit network: + +
+[abstract]These days I had a strange encounter ...[abstract] +[abstract=goog]Helly my dear Google+ followers. You have to read my +newest blog post![abstract] +[abstract=face]Hello my Facebook friends. These days happened something +really cool.[abstract] +While taking pictures in the woods I had a really strange encounter ...+ +The [abstract] element isn't working with the native OStatus connection or with connectors where we post the HTML. +(Like Tumblr, Wordpress or Pump.io) + +Special +------- + +If you need to put literal bbcode in a message, [noparse], [nobb] or [pre] are used to escape bbcode: + +
[noparse][b]bold[/b][/noparse]: [b]bold[/b]