User Tools

Site Tools


doc:plugins:bbcode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
doc:plugins:bbcode [2023/01/22 14:09] – added Video section arviddoc:plugins:bbcode [2024/01/06 12:40] (current) – reworked "links" section, added "target" attribute arvid
Line 11: Line 11:
   * [list]\\ [*]bulleted list element 1\\ [*]bulleted list element 2\\ [/list]   * [list]\\ [*]bulleted list element 1\\ [*]bulleted list element 2\\ [/list]
   * [list=#]\\ [*]Numbered list element 1\\ [*]Numbered list element 2\\ [/list]   * [list=#]\\ [*]Numbered list element 1\\ [*]Numbered list element 2\\ [/list]
-  * %%[url]http://www.page.com[/url]%% or %%[url=http://www.mypage.com]description[/url]%%   
-        url can begin with images/ or attachs/ (images/ will be translated into IMAGES_DIR, attachs/ into ATTACHS_DIR, typically fp-content/attachs/) 
-    * [mail]user@example.org[/mail] or [mail=user@example.org]link text[/url] adds a bot-protected mail link 
   * [html][/html] literal html. All code between these is not changed.\\ //Alternative: Enable [[doc:plugins:bbcode:tips|inline HTML]].//   * [html][/html] literal html. All code between these is not changed.\\ //Alternative: Enable [[doc:plugins:bbcode:tips|inline HTML]].//
 +
 +==== Text formatting ====
 +  * [b]bold[/b]
 +  * [i]italic[/i]
 +  * [u]underlined[/u]
 +  * [del]strike-through[/del]
 +  * [size=80%]smaller[/size] or [size=120%]bigger[/size] text
 +  * [font=FONT]font[/font]\\ //FONT is a valid css font-family value ("sans-serif", "Times" etc.)//
 +  * [color=COLOR]color[/color]\\ //COLOR is a valid css color value (e.g. #cb0600)//
 +
 +==== Links ====
 +  * Simple: %%[url]DESTINATION[/url]%%
 +  * Advanced: %%[url=DESTINATION (rel=relationship) (target=target)]Link text[/url]%% \\ //(items in parenthesis are optional)//.
 +    * **DESTINATION** may be:
 +      * an external URL: %%"https://www.example.org"%%
 +      * an uploaded file: %%"attachs/somefile.zip"%%
 +      * an uploaded file: %%"images/someimage.jpg"%%
 +    * **rel** specifies the relationship between the current and the linked document (see [[https://www.w3schools.com/TAGS/att_a_rel.asp|doc on W3Schools]])
 +    * **target** (available as of FlatPress 1.3) specifies where to open the linked document (see [[https://www.w3schools.com/TAGS/att_a_target.asp|doc on W3Schools]])
 +  * Simple email link: %%[mail]user@example.org[/mail]%%
 +  * Advanced email link: [mail=user@example.org]link text[/url]
  
 ==== Images ==== ==== Images ====
Line 42: Line 60:
     * **width** and **height** set the width or height on the video in pixels. You can use both of them or only one. If you set only one the re-sized video will retain its aspect ratio.     * **width** and **height** set the width or height on the video in pixels. You can use both of them or only one. If you set only one the re-sized video will retain its aspect ratio.
     * **float** float the images to the left or to the right     * **float** float the images to the left or to the right
- 
-==== Text format ==== 
-  * [b]bold[/b] 
-  * [i]italic[/i] 
-  * [u]underlined[/u] 
-  * [del]strike-through[/del] 
-  * [size=80%]smaller[/size] or [size=120%]bigger[/size] text 
-  * [font=FONT]font[/font]\\ //FONT is a valid css font-family value ("sans-serif", "Times" etc.)// 
-  * [color=COLOR]color[/color]\\ //COLOR is a valid css color value (e.g. #cb0600)// 
  
 ===== BBCode from other standard plugins ===== ===== BBCode from other standard plugins =====
   * [more] ([[doc:plugins:standard#readmore|Read More plugin]]): breaks up long post on the main page with the [Read More…] link that can be clicked on to see the rest of the post   * [more] ([[doc:plugins:standard#readmore|Read More plugin]]): breaks up long post on the main page with the [Read More…] link that can be clicked on to see the rest of the post
   * [entryurl=ENTRY-ID]link text[/entryurl] and [iurl=PAGE]link text[/iurl] ([[res:plugins:internalurls|Internal URLs plugin]]): These elements create links to static pages or entries.   * [entryurl=ENTRY-ID]link text[/entryurl] and [iurl=PAGE]link text[/iurl] ([[res:plugins:internalurls|Internal URLs plugin]]): These elements create links to static pages or entries.
doc/plugins/bbcode.txt · Last modified: 2024/01/06 12:40 by arvid

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki