Editing Template:In5/doc
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 5: | Line 5: | ||
the count specified by<br>parameter 1 (range: 1 to 50 spaces). | the count specified by<br>parameter 1 (range: 1 to 50 spaces). | ||
<br><br> | <br><br> | ||
:: Usage: {<font>{in5}} {{in5}} <--indents by 5 spaces<br> | :: Usage: {<font/>{in5}} {{in5}} <--indents by 5 spaces<br> | ||
:: Usage: {<font>{in5|8}} <--indents by 8 spaces<br> | :: Usage: {<font/>{in5|8}} <--indents by 8 spaces<br> | ||
:: Usage: {<font>{in5|47}} <--indents by 47 | :: Usage: {<font/>{in5|47}} <--indents by 47 | ||
Spaces outside the double braces will add an extra space on either | Spaces outside the double braces will add an extra space on either | ||
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 as<br> the name "in" being redefined as 6 different uses. | NOTE: The name "in5" was chosen because other names were debated, such as<br> the name "in" being redefined as 6 different uses. | ||
Line 20: | Line 20: | ||
:: Example 3: <nowiki>aa{{in5|20}}bb{{in5|20}}</nowiki>cc, produces: aa{{in5|20}}bb{{in5|20}}cc | :: Example 3: <nowiki>aa{{in5|20}}bb{{in5|20}}</nowiki>cc, produces: aa{{in5|20}}bb{{in5|20}}cc | ||
:: Example 4: <nowiki>"32.0{{in5|7}}"</nowiki> produces: "32.0{{in5|7}}" | :: Example 4: <nowiki>"32.0{{in5|7}}"</nowiki> produces: "32.0{{in5|7}}" | ||
The example 4 shows the ability to put trailing spaces, such as spaces after a number in a wikitable column (coded as: | 32.0{<font>{in5}} ). Typical numbers (with "align=right"), in a table column, often appear crowded at the right-hand side, so appending "{<font>{in5}}" can improve readability, in tables with lines between columns. | The example 4 shows the ability to put trailing spaces, such as spaces after a number in a wikitable column (coded as: | 32.0{<font/>{in5}} ). Typical numbers (with "align=right"), in a table column, often appear crowded at the right-hand side, so appending "{<font/>{in5}}" can improve readability, in tables with lines between columns. | ||
==Universal template== | ==Universal template== | ||
Line 32: | Line 32: | ||
| valign=top | Example of <nowiki>{{in5|10}}</nowiki><br>and...<br>with <nowiki>{{in5|14}}</nowiki><br>with <nowiki>{{in5|15}}</nowiki><br>with <nowiki>{{in5|25}}</nowiki><br>with <nowiki>{{in5|45}}</nowiki> || <nowiki>xx{{in5|10}}</nowiki>yy, produces:<br>xx{{in5|10}}yy<br>xx{{in5|14}}yy<br>xx{{in5|15}}yy<br>xx{{in5|25}}yy<br>xx{{in5|45}}yy | | valign=top | Example of <nowiki>{{in5|10}}</nowiki><br>and...<br>with <nowiki>{{in5|14}}</nowiki><br>with <nowiki>{{in5|15}}</nowiki><br>with <nowiki>{{in5|25}}</nowiki><br>with <nowiki>{{in5|45}}</nowiki> || <nowiki>xx{{in5|10}}</nowiki>yy, produces:<br>xx{{in5|10}}yy<br>xx{{in5|14}}yy<br>xx{{in5|15}}yy<br>xx{{in5|25}}yy<br>xx{{in5|45}}yy | ||
|} | |} | ||
Again, using {<font>{in5}} reliably allows up to 50 spaces at a time. | Again, using {<font/>{in5}} reliably allows up to 50 spaces at a time. | ||
==Comparison with letter-spacing== | ==Comparison with letter-spacing== |