Template:In5: Difference between revisions
meta>Wikid77 updated internal HISTORY comments to log fix |
meta>Wikid77 added section "Universal template" explaining use of name "in5" |
||
Line 94: | Line 94: | ||
:: Example 2: <nowiki>xx{{in5|10}}yy{{in5|15}}</nowiki>zz, produces: xx{{in5|10}}yy{{in5|15}}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 | :: Example 1: <nowiki>aa{{in5|20}}bb{{in5|20}}</nowiki>cc, produces: aa{{in5|20}}bb{{in5|20}}cc | ||
==Universal template== | |||
This Template:in5 is intended as a universal template, with the same name on all Wikipedia sites. The name "in5" with the digit "5" is unlikely to conflict with other-language Wikipedias. Care must be taken not to name a universal template with a name that would be an awkward or peculiar word in the other languages. However, in some cases, a universal template might need a different name in a few conflicting languages. | |||
==See also== | ==See also== |
Revision as of 09:02, 2 October 2009
The indenter Template:in5 indents text by 5 spaces or
the count specified by
parameter 1 (range: 1 to 50 spaces).
- Usage: {{in5}} <--indents by 5 spaces
- Usage: {{in5|8}} <--indents by 8 spaces
- Usage: {{in5|47}} <--indents by 47
- Usage: {{in5}} <--indents by 5 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 yy zz
- Example 2: xx{{in5|10}}yy{{in5|15}}zz, produces: xx yy zz
- Example 1: aa{{in5|20}}bb{{in5|20}}cc, produces: aa bb cc
Universal template
This Template:in5 is intended as a universal template, with the same name on all Wikipedia sites. The name "in5" with the digit "5" is unlikely to conflict with other-language Wikipedias. Care must be taken not to name a universal template with a name that would be an awkward or peculiar word in the other languages. However, in some cases, a universal template might need a different name in a few conflicting languages.
See also
- Template:indent - forces newline break before indenting