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 [2026/02/28 19:12] (current) – added a little more description of attributes arvid | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== BBCode Plugin ====== | ====== BBCode Plugin ====== | ||
| - | ===== What is BBCode ? ===== | + | ===== General |
| BBCode is a simple-to-understand markup language. See: [[wp> | BBCode is a simple-to-understand markup language. See: [[wp> | ||
| + | |||
| + | The plugin provides a variety of different elements, called tags. For example, there are tags for headlines, text formattings, | ||
| + | |||
| + | Many tags have attributes that modify the behaviour of the tag (such as the " | ||
| + | //(In fact, if the value does not contain blanks, you could go without the quotes - we recommend always to use them.)// | ||
| ===== 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 19: | ||
| * [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=" | ||
| + | * [font=" | ||
| + | * [color=" | ||
| + | * Pickers to get the codes: for example [[https:// | ||
| + | |||
| + | ==== Links ==== | ||
| + | * Simple: %%[url]DESTINATION[/ | ||
| + | * Advanced: %%[url=" | ||
| + | * **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=" | ||
| ==== Images ==== | ==== Images ==== | ||
| - | * [img=IMAGEPATH (alt=alternate text) (title=title text) (popup=false) (scale=NN%) (width=N) (height=N) (float=left|right) (loading=lazy|eager)] \\ //(items in parenthesis are optional)// | + | * [img="IMAGEPATH" |
| * if **IMAGEPATH** begins with images/ it will be automatically translated into the appropriate URL for fp-content/ | * if **IMAGEPATH** begins with images/ it will be automatically translated into the appropriate URL for fp-content/ | ||
| * **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=" |
| - | * [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: by norfolkgreg
