Difference between revisions of "Template:Indent"

From Xen
(Creating wrapper that can be used in mixtures of lists (see http://www.mediawiki.org/wiki/Help:Formatting))
 
(Remove spacing and padding)
 
Line 1: Line 1:
<table><tr><td width="{{{width|}}}"></td><td>{{{content|}}}</td></tr></table><noinclude>{{documentation}}</noinclude>
+
<table cellspacing="0" cellpadding="0"><tr><td width="{{{width|}}}"></td><td>{{{content|}}}</td></tr></table><noinclude>{{documentation}}</noinclude>

Latest revision as of 09:32, 16 June 2012

[edit] [purge] Template documentation

Syntax

{{Indent
 | width = extra indentation on the left
 | content = content
}}

Example 1

{{Indent
 | content = Some content
}}
Some content

Example 2

{{Indent
 | width   = 60px
 | content = Some content
}}
Some content


Use

Useful in particular for lists and <pre>-blocks

The above documentation is transcluded from Template:Indent/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.
A print version of this template exists at /Print. If you make a change to this template, please update the print version as well.