Loading...
 
Skip to main content

History: PluginIndent

Source of version: 9 (current)

Copy to clipboard
            ! Plugin Indentation
''Introduced in ((Tiki24))''

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 -+~np~{INDENT()}...{INDENT}~/np~+- calls for further indentation.

{maketoc}
!!Parameters
There are no parameters required - only the text between the -+INDENT+- tags is needed.
{pluginmanager plugin="indent"}
!!Examples
!!!Example 1
''This code:''
{CODE(colors="tiki")}
Before
{INDENT()}Between{INDENT}
Afters
{CODE}
''Would produce on this site:''

Before
{INDENT()}Between{INDENT}
Afters

!!!Example 2
Use ''this code'' to indent two levels:
{CODE(colors="tiki")}
Before
{INDENT()}
 Level 1
 {INDENT()}Level 2{INDENT}
{INDENT}
Afters
{CODE}
''This produces:''

{INDENT()}
 Level 1
 {INDENT()}Level 2{INDENT}
{INDENT}

!!!Example 3
Do ''not'' use this code to indent two levels:
{CODE(colors="tiki")}
Before
{INDENT()}Level 1{INDENT}
{INDENT()}{INDENT()}Level 2{INDENT}{INDENT}
Afters
{CODE}
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:

Before
{INDENT()}Level 1{INDENT}
{INDENT()}{INDENT()}Level 2{INDENT}{INDENT}
Afters

!!Related pages
No related pages.

!!Aliases
No aliases.