doc:plugins:bbcode
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:plugins:bbcode [2021/06/29 23:17] – [Images] Attempts to clarify interaction of popup and lightbox2 when creating thumbnails norfolkgreg | doc:plugins:bbcode [2024/04/01 14:41] (current) – added hint box arvid | ||
---|---|---|---|
Line 6: | Line 6: | ||
===== Available Tags ===== | ===== Available Tags ===== | ||
==== Content elements ==== | ==== Content elements ==== | ||
+ | <WRAP right round tip 200px> | ||
+ | It's not too complicated to add custom BBCode tags - [[doc: | ||
+ | </ | ||
* [h2]Heading 2nd level[/h2] to [h6]Heading 6th level[/ | * [h2]Heading 2nd level[/h2] to [h6]Heading 6th level[/ | ||
* [quote]text quotation[/ | * [quote]text quotation[/ | ||
Line 11: | Line 14: | ||
* [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] | ||
- | * [video=http:/ | ||
- | * %%[url]http:/ | ||
- | | ||
- | * [mail]user@example.org[/ | ||
* [html][/ | * [html][/ | ||
+ | |||
+ | ==== Text formatting ==== | ||
+ | * [b]bold[/b] | ||
+ | * [i]italic[/ | ||
+ | * [u]underlined[/ | ||
+ | * [del]strike-through[/ | ||
+ | * [size=80%]smaller[/ | ||
+ | * [font=FONT]font[/ | ||
+ | * [color=COLOR]color[/ | ||
+ | |||
+ | ==== Links ==== | ||
+ | * Simple: %%[url]DESTINATION[/ | ||
+ | * Advanced: %%[url=DESTINATION (rel=relationship) (target=target)]Link text[/ | ||
+ | * **DESTINATION** may be: | ||
+ | * an external URL: %%" | ||
+ | * an uploaded file: %%" | ||
+ | * an uploaded file: %%" | ||
+ | * **rel** specifies the relationship between the current and the linked document (see [[https:// | ||
+ | * **target** (available as of FlatPress 1.3) specifies where to open the linked document (see [[https:// | ||
+ | * Simple email link: %%[mail]user@example.org[/ | ||
+ | * Advanced email link: [mail=user@example.org]link text[/url] | ||
==== Images ==== | ==== Images ==== | ||
Line 22: | Line 42: | ||
* **alt** sets the alternate text | * **alt** sets the alternate text | ||
* **title** title shown on mouse-over | * **title** title shown on mouse-over | ||
- | * **float** float the images to the left or to the right | ||
* **popup** If set to true and the // | * **popup** If set to true and the // | ||
* **scale** creates a thumbnail NN% smaller than the original. Example: [img=images/ | * **scale** creates a thumbnail NN% smaller than the original. Example: [img=images/ | ||
- | * If the //thumb// plugin is enabled (it is by default) the generated thumbnail is a real, static thumbnail. Otherwise the image will look small in browser but the browser will be actually downloading the original file. | + | * If the //thumb// plugin is enabled (it is by default) and the server has the GD2 php extension installed (usually it is) the generated thumbnail is a real, static thumbnail. Otherwise the image will look small in browser but the browser will be actually downloading the original file. |
- | * Setting a scale value automatically invokes popup=true, and clicking on the thumbnail will display the image in a " | + | * Setting a scale value automatically invokes popup=true and clicking on the thumbnail will display the image in a " |
- | * **width** and **height** set the width or height on the image in pixels. You can use both of them or only one. If you set only one the re-sized image will retain its aspect ratio. | + | * Scale doesn' |
- | | + | * **width** and **height** set the width or height on the image in pixels. You can use both of them or only one. If you set only one the re-sized image will retain its aspect ratio. |
+ | * if the //thumb// plug-in is enabled | ||
+ | * Static thumbnail creation does not work on remote images. | ||
+ | * **float** float the images to the left or to the right | ||
* **loading** images will be loaded not before the user scrolls near them (" | * **loading** images will be loaded not before the user scrolls near them (" | ||
- | ==== Text format | + | |
- | * [b]bold[/b] | + | ==== Videos |
- | * [i]italic[/i] | + | * [video=VIDEOPATH (width=N) (height=N) (float=left|right)] \\ //(items in parenthesis are optional)// |
- | * [u]underlined[/ | + | * **VIDEOPATH** may be: |
- | * [del]strike-through[/del] | + | * an uploaded file: %%" |
- | * [size=80%]smaller[/ | + | * a remote file: %%"https// |
- | * [font=FONT]font[/font]\\ | + | * a YouTube link: %%" |
- | * [color=COLOR]color[/color]\\ | + | * a Facebook Video link: %%"https://www.facebook.com/watch/? |
+ | * a Vimeo link: %%" | ||
+ | * **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 | ||
===== BBCode from other standard plugins ===== | ===== BBCode from other standard plugins ===== | ||
* [more] ([[doc: | * [more] ([[doc: | ||
* [entryurl=ENTRY-ID]link text[/ | * [entryurl=ENTRY-ID]link text[/ |
doc/plugins/bbcode.1625001443.txt.gz · Last modified: 2021/06/29 23:17 by norfolkgreg