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 [2023/01/22 14:09] – added Video section arvid | 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] | ||
| - | * %%[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. |
| * **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/ | ||
| Line 33: | Line 60: | ||
| ==== Videos ==== | ==== Videos ==== | ||
| - | * [video=VIDEOPATH (width=N) (height=N) (float=left|right)] \\ //(items in parenthesis are optional)// | + | * [video="VIDEOPATH" |
| * **VIDEOPATH** may be: | * **VIDEOPATH** may be: | ||
| * an uploaded file: %%" | * an uploaded file: %%" | ||
| * a remote file: %%" | * a remote file: %%" | ||
| - | * a YouTube link: %%"http:// | + | * a YouTube link: %%"https://www.youtube.com/ |
| * a Facebook Video link: %%" | * a Facebook Video link: %%" | ||
| * a Vimeo link: %%" | * 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. | * **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[/ | ||
| - | * [u]underlined[/ | ||
| - | * [del]strike-through[/ | ||
| - | * [size=80%]smaller[/ | ||
| - | * [font=FONT]font[/ | ||
| - | * [color=COLOR]color[/ | ||
| ===== 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.1674392975.txt.gz · Last modified: by arvid
