Template:Block indent: Difference between revisions
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 21: | Line 21: | ||
::::: Test string #3b | ::::: Test string #3b | ||
[[Category:Template]] | [[Category:Template]] | ||
</noinclude><includeonly><div style="padding-left:{{#switch: {{{2|}}} | 1 = 1.6em | 2 = 3.2em | 3 = 4.8em | 4 = 6.4em | 5 = 8.0em | #default = 1.6em}}; padding-right:0; overflow:hidden;">{{{1|}}}</div></includeonly> | </noinclude><includeonly><div style="padding-left:{{#switch: {{{2|}}} | 1 = 1.6em | 2 = 3.2em | 3 = 4.8em | 4 = 6.4em | 5 = 8.0em | #default = 1.6em}}; padding-right:0; overflow:hidden;">{{#replace:{{{1|}}}|=|=}}</div></includeonly> |
Revision as of 17:11, 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