From: AdvancedTextFormatting, CdmlElements
This CmdlElement creates title-bars (for paragraphs, chapters, pages, etc.) with a colored background.
The title-bar in this example:
-
is generated from the following input:
: [[title] This Title]
- color: specifies the background color of the Title-bar (default: configuration-variable "TitleColor"); e.g. [color=blue] (see also: HtmlColorCodes and CdmlColorNames)
- size: specifies the font-size (default: +2); e.g. [size=5]
- padding: sets the amount of space around the text (default: 2); e.g. [padding=7]
- textcolor: specifies the color of the text (default: configuration-variable "TitleFontColor"); e.g. [color=#ffffff] (see also: HtmlColorCodes and CdmlColorNames)
This title:
-
is created from:
:[[title][color=#ffff99][size=+1]Preface]
The transparent title-bar here:
-
comes from:
:[[title][color=none]Chapter 1]
These are the different sizes:
-
-
-
-
-
-
-
-
created from:
:[[title][color=lightgray][size=1]Chapter 1 (size=1)]
:[[title][color=lightgray][size=2]Chapter 1 (size=2)]
:[[title][color=lightgray][size=3]Chapter 1 (size=3)]
:[[title][color=lightgray][size=4]Chapter 1 (size=4)]
:[[title][color=lightgray][size=5]Chapter 1 (size=5)]
:[[title][color=lightgray][size=6]Chapter 1 (size=6)]
:[[title][color=lightgray][size=7]Chapter 1 (size=7)]
:[[title][color=lightgray][size=8]Chapter 1 (size=8)]
Different values for the parameter padding:
-
-
-
-
-
resulting from this input:
:[[title][color=lightgray][padding=0]Chapter 1 (padding=0)]
:[[title][color=lightgray][padding=2]Chapter 1 (padding=2)]
:[[title][color=lightgray][padding=5]Chapter 1 (padding=5)]
:[[title][color=lightgray][padding=10]Chapter 1 (padding=10)]
:[[title][color=lightgray][padding=15]Chapter 1 (padding=15)]
FolderWikiTechniques FolderWiki