Template:In5: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Wikid77
added section "Examples" with 3 examples
meta>Wikid77
removed 2 sets of extraneous "{{" from draft version of template
Line 30: Line 30:
   | <!--other-10-->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<!--
   | <!--other-10-->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<!--
   -->}}<!--endswitch on {1}-10
   -->}}<!--endswitch on {1}-10
-->}}<!--endifexpr {1} > 10 -->{{
-->}}<!--endifexpr {1}>10 -->{{
#ifexpr:{{{1|5}}} > 20 | {{
#ifexpr:{{{1|5}}} > 20 | {{
   #switch: {{#expr:{{{1|5}}}-20}}<!--parameter 1 is count-->
   #switch: {{#expr:{{{1|5}}}-20}}<!--parameter 1 is count-->
Line 43: Line 43:
   | 9 = &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
   | 9 = &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
   | <!--other-10-->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<!--
   | <!--other-10-->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<!--
   -->}}<!--endswitch on {1}-20 -->{{
   -->}}<!--endswitch on {1}-20
-->}}<!--endifexpr {1} > 20 -->{{
-->}}<!--endifexpr {1} > 20 -->{{
#ifexpr:{{{1|5}}} > 30 | {{
#ifexpr:{{{1|5}}} > 30 | {{
Line 57: Line 57:
   | 9 = &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
   | 9 = &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
   | <!--other-10-->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<!--
   | <!--other-10-->&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<!--
   -->}}<!--endswitch on {1}-30 -->{{
   -->}}<!--endswitch on {1}-30
-->}}<!--endifexpr {1} > 30 -->{{
-->}}<!--endifexpr {1} > 30 -->{{
#ifexpr:{{{1|5}}} > 40 | {{
#ifexpr:{{{1|5}}} > 40 | {{

Revision as of 00:04, 25 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}}       <--indents by 5 spaces
Usage:   {{in5|8}}     <--indents by 8 spaces
Usage:   {{in5|47}}   <--indents by 47

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

See also