Template:Block indent: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
This provide a block indent, similar to the Wikipedia template ([https://en.wikipedia.org/wiki/Template:Block_indent Block indent]).
This provide a block indent, similar to the Wikipedia template ([https://en.wikipedia.org/wiki/Template:Block_indent Block indent]).  The first parameter is the content that should be indented and the second parameter is the number of indents similar to the amount of preceding colons.  If no second parameter is present, it defaults to 1 indent.




Usage:
Usage:
<pre style="max-width:305px; margin-left:12px;"><nowiki>
<pre style="max-width:305px; margin-left:12px;"><nowiki>
{{Block indent|<Text string>|<1>}}
{{Block indent|Test string #1|2}}
:: Test string #2
</nowiki></pre>
</nowiki></pre>


Results in:
Results in:
<div style="padding-left:3em; padding-right:0; overflow:hidden;"><Text string></div>
{{Block indent|Test string #1|2}}
:: Test string #2




Approver, Batcheditor, Moderator, Patroller, Protector, Reviewer, Bots, Bureaucrats, editor, Interface administrators, pagecreator, pagedeleter, Page Ownership admin, Push subscription managers, Suppressors, Administrators, Upload Wizard campaign editors, Widget editors
321,763

edits