1 # BBCode Package Installation Plugin
7 Each bbcode is described as an `<bbcode>` element with the mandatory attribute `name`.
8 The `name` attribute must contain alphanumeric characters only and is exposed to the user.
12 !!! info "Optional: Must not be provided if the BBCode is being processed a PHP class (`<classname>`)."
14 The contents of this tag are literally copied into the opening tag of the bbcode.
18 !!! info "Optional: Must not be provided if `<htmlopen>` is not given."
20 Must match the `<htmlopen>` tag.
21 Do not provide for self-closing tags.
25 The name of the class providing the bbcode output,
26 the class has to implement the `wcf\system\bbcode\IBBCode` interface.
28 BBCodes can be statically converted to HTML during input processing using a
29 `wcf\system\html\metacode\converter\*MetaConverter` class. This class does not
30 need to be registered.
34 <span class="label label-info">Optional</span>
36 Name of the Font Awesome icon class or path to a `gif`, `jpg`, `jpeg`, `png`, or `svg` image (placed inside the `icon/` directory) to show in the editor toolbar.
40 !!! info "Optional: Must be provided if an icon is given."
42 Explanatory text to show when hovering the icon.
46 !!! warning "Do not set this to `1` if you don't specify a PHP class for processing. You must perform XSS sanitizing yourself!"
48 If set to `1` contents of this BBCode will not be interpreted,
49 but literally passed through instead.
51 ### `<isBlockElement>`
53 Set to `1` if the output of this BBCode is a HTML block element (according to the HTML specification).
57 Each bbcode is described as an `<attribute>` element with the mandatory attribute `name`.
58 The `name` attribute is a 0-indexed integer.
62 !!! info "Optional: Must not be provided if the BBCode is being processed a PHP class (`<classname>`)."
64 The contents of this tag are copied into the opening tag of the bbcode.
65 `%s` is replaced by the attribute value.
67 #### `<validationpattern>`
69 <span class="label label-info">Optional</span>
71 Defines a regular expression that is used to validate the value of the attribute.
75 <span class="label label-info">Optional</span>
77 Specifies whether this attribute must be provided.
81 <span class="label label-info">Optional</span>
82 !!! info "Should only be set to `1` for the attribute with name `0`."
84 Specifies whether the text content of the BBCode should become this attribute's value.
90 "package/pip/bbcode.xml",