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 blockAs 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]
These templates use the wiki syntax to create Semantic-UI elements. By default, Elephant uses the template-semantic root for web templates.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
[ html(&class:ui stackable middle aligned grid)][ html(&class:six wide column,padding-top:0px,margin:0px,line-height:0px)][ img repository( /abstractal1.jpg)][ /html][ html(&class:ten wide column)][ block(&class:ui basic center aligned text container segment,font-size:2.1em)]- --+This is an example of middle and center aligned text Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.[ /block][ /html][ /html]
|
|
This is an example of middle and center aligned textLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. |
[ column(width:35%)][ img repository(/abstractal1.jpg)][ column(width:65%,text-align:center,vertical-align:middle,font-size:2.1em)]- --+This is an example of middle and center aligned text Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.[ /column][ /no-format]
The data-id is the YouTube video code. This code is visible in the URL as a parameter or part of the path, depending if is a share URL or you're watching in YouTube.
[ html(&class:ui embed normal,&data-source:youtube,&data-id:eCBUrsqVfgE)][ /html]