2023-08-17 23:43:40 +00:00
|
|
|
created: 20230817233039500
|
|
|
|
creator: Octt
|
2023-08-18 08:19:10 +00:00
|
|
|
modified: 20230818075434697
|
2023-08-17 23:43:40 +00:00
|
|
|
modifier: Octt
|
|
|
|
tags: Markup WIP
|
|
|
|
title: BBCode
|
|
|
|
|
|
|
|
<<^wikipediaframe BBCode>>
|
|
|
|
|
|
|
|
!!! ''Creation''
|
|
|
|
|
|
|
|
* Simple tag, without arguments: `[example]{TEXT}[/example]`
|
|
|
|
* Medium tag, with a standard argument: `[example={SIMPLETEXT}]{TEXT}[/example]`
|
|
|
|
* Complex tag, with (multiple) named arguments: `[example first={SIMPLETEXT} second={NUMBER}]{TEXT}[/example]`
|
|
|
|
|
|
|
|
!!!! ''Advanced''
|
|
|
|
|
|
|
|
* Specifying multiple fields of the same type is done by prefixing the type with a number (e.g. `{TEXT1}`).
|
2023-08-18 08:19:10 +00:00
|
|
|
* Prefixing a field with `?` or `;optional` makes it optional on the user input side.
|
|
|
|
* To make optional fields actually useful, and not jeopardizing safety of functionality of the generated HTML, [[XSLT]] can be used (version 1.0?).
|