Warning: Undefined variable $filepath in /home/tiki-doc/public_html/lib/wiki-plugins/wikiplugin_tikidocfromcode.php on line 146 PluginIndent | Documentation for Tiki Wiki CMS Groupware
Use this wiki plugin to indent a block of wiki content at the paragraph level (such as paragraphs, tables, code blocks...) by one level. Use properly nested {INDENT()}...{INDENT} calls for further indentation.
There are no parameters required - only the text between the INDENT tags is needed.
Tiki Doc From Code error: indent not found
Examples
Example 1
This code:
Copy to clipboard
Before
{INDENT()}Between{INDENT}
Afters
Would produce on this site:
Before
Between
Afters
Example 2
Use this code to indent two levels:
Copy to clipboard
Before
{INDENT()}
Level 1
{INDENT()}Level 2{INDENT}
{INDENT}
Afters
This produces:
Level 1
Level 2
Example 3
Do not use this code to indent two levels:
Copy to clipboard
Before
{INDENT()}Level 1{INDENT}
{INDENT()}{INDENT()}Level 2{INDENT}{INDENT}
Afters
This is because the browser generates a vertical gap when repeating the indentation several times, like above. The gap gets bigger with each level of indentation. This is what the browser produces when doing it like in example 3: