Template:Block indent: Difference between revisions
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 22: | Line 22: | ||
Note, if your text includes an equals sign, you need to explicitly number the 1st parameter | Note, if your text includes an equals sign, you need to explicitly number the 1st parameter: | ||
<pre style="max-width: | <pre style="max-width:385px; margin-left:12px;"><nowiki> | ||
{{Block indent|1=This has an equals sign (=) in it. | {{Block indent|1=This has an equals sign (=) in it.}} | ||
</nowiki></pre> | </nowiki></pre> | ||
[[Category:Template]] | [[Category:Template]] |
Revision as of 17:18, 18 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 #1a}} : Test string #1b {{Block indent|Test string #2a|2}} :: Test string #2b {{Block indent|Test string #3a|5}} ::::: Test string #3b
Results in:
- Test string #1b
- Test string #2b
- Test string #3b
Note, if your text includes an equals sign, you need to explicitly number the 1st parameter:
{{Block indent|1=This has an equals sign (=) in it.}}