Template:Block indent: Difference between revisions

From FamilySearch Wiki
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





Revision as of 18:29, 15 July 2025

This provide a block indent, similar to the Wikipedia template (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:

{{Block indent|Test string #1|2}}
:: Test string #2

Results in:

Test string #1
Test string #2