Template:In5: Difference between revisions
Content added Content deleted
(created, as typesetting template, allowing large indentation of text quickly) |
(added section "Examples" with 3 examples) |
||
Line 87: | Line 87: | ||
side,<br>such as the 12 spaces inserted by: " {<font/>{in5|10}} ". |
side,<br>such as the 12 spaces inserted by: " {<font/>{in5|10}} ". |
||
NOTE: The name "in5" was chosen because other names were debated, such |
NOTE: The name "in5" was chosen because other names were debated, such as<br> the name "in" being redefined as 6 different uses. |
||
as<br> the name "in" being redefined as 6 different uses. |
|||
==Examples== |
|||
The following are examples showing larger amounts of spacing: |
|||
:: Example 1: <nowiki>xx{{in5|10}}yy{{in5|10}}</nowiki>zz, produces: xx{{in5|10}}yy{{in5|10}}zz |
|||
:: Example 2: <nowiki>xx{{in5|10}}yy{{in5|15}}</nowiki>zz, produces: xx{{in5|10}}yy{{in5|15}}zz |
|||
:: Example 1: <nowiki>aa{{in5|20}}bb{{in5|20}}</nowiki>cc, produces: aa{{in5|20}}bb{{in5|20}}cc |
|||
==See also== |
==See also== |
Revision as of 23:58, 24 September 2009
The indenter Template:in5 indents text by 5 spaces or
the count specified by
parameter 1 (range: 1 to 50 spaces).
- Usage: {{in5}} {{
- ifexpr:5 > 20 | {{
-->}}{{
- ifexpr:5 > 30 | {{
-->}} <--indents by 5 spaces
- Usage: {{in5|8}} <--indents by 8 spaces
- Usage: {{in5|47}} <--indents by 47
- Usage: {{in5|8}} <--indents by 8 spaces
Spaces outside the double braces will add an extra space on either
side,
such as the 12 spaces inserted by: " {{in5|10}} ".
NOTE: The name "in5" was chosen because other names were debated, such as
the name "in" being redefined as 6 different uses.
Examples
The following are examples showing larger amounts of spacing:
- Example 1: xx{{in5|10}}yy{{in5|10}}zz, produces: xx {{
- ifexpr:10 > 20 | {{
-->}}{{
- ifexpr:10 > 30 | {{
-->}}yy {{
- ifexpr:10 > 20 | {{
-->}}{{
- ifexpr:10 > 30 | {{
-->}}zz
- Example 2: xx{{in5|10}}yy{{in5|15}}zz, produces: xx {{
- ifexpr:10 > 20 | {{
-->}}{{
- ifexpr:10 > 30 | {{
-->}}yy {{
- ifexpr:15 > 20 | {{
-->}}{{
- ifexpr:15 > 30 | {{
-->}}zz
- Example 1: aa{{in5|20}}bb{{in5|20}}cc, produces: aa {{
- ifexpr:20 > 20 | {{
-->}}{{
- ifexpr:20 > 30 | {{
-->}}bb {{
- ifexpr:20 > 20 | {{
-->}}{{
- ifexpr:20 > 30 | {{
-->}}cc
See also
- Template:indent - forces newline break before indenting