class
attribute to wiki elementsWiki elements accept CSS style attributes directly within parenthesis. When adding (attribute:value)
wiki expands to style="attribute:value"
. Attributes starting with class
.
Wiki |
Expanded HTML |
Result |
|
|
class
and style
attributesIt is possible to use both, class
and style
attributes in wiki elements. Simply add style attributes separated by comas.
Wiki |
Expanded HTML |
Result |
|
|
Wiki |
Results in |
Description |
|
|
Accepting characters block. Will not create new lines or paragraphs. See Blocks . |
|
|
Non accepting characters block. Creates new lines and paragraphs when an empty line is given. See Blocks . |
|
|
Creates an in line element. See Spans . |
|
|
Creates an anchor. See Links . |
|
|
Creates an accepting characters element named as the first parameter. See Joker . |
joker
as a jokerThe joker
wiki element can emulate any HTML element. Let's see a joker as an HTML anchor.
Wiki |
Expanded HTML |
Result |
|
|
Docs |
html
or block
As you probably noticed, html
and block
wiki elements do much the same. They create an HTML div
with the difference of accepting or not characters. When accepting characters, the element does not create new lines or paragraphs.
When creating Semantic-UI grids, the grid
requires the use of html
. Columns may use html
or block
depending on their content. For example, if the column content is text, is preferable to use block
. If the content is mainly other elements, use html
instead.
The two blocks of construction would be:
For text columns
[ html(&class:ui two column grid)][ block(&class:column)] Some text.[ /block][ block(&class:column)] Some other text.[ /block][ /html]
For more element columns
[ html(&class:ui two column grid)][ html(&class:column)][ block(&class:ui segment)]Some segment.[ /block][ /html][ html(&class:column)][ block(&class:ui segment)]Some other segment.[ /block][ /html][ /html]
English | 04/20/20 13:09 | Lluís Turró Cutiller |