Template:Ds: Difference between revisions
Jump to navigation
Jump to search
Documentation
m (Protected "Template:Ds": protect sensitive template ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
(Text formatting templates) |
||
Line 1: | Line 1: | ||
{{#switch: {{{1|1}}} | {{#switch: {{{1|1}}} | ||
|0=|1=<span style="margin-left:0.583em"></span>|2=<span style="margin-left:1.167em"></span>|3=<span style="margin-left:1. | | 0=<!-- | ||
-->| 1=<span style="margin-left:0.583em"></span><!-- | |||
-->| 2=<span style="margin-left:1.167em"></span><!-- | |||
-->| 3=<span style="margin-left:1.750em"></span><!-- | |||
-->| 4=<span style="margin-left:2.333em"></span><!-- | |||
-->| 5=<span style="margin-left:2.917em"></span><!-- | |||
-->| 6=<span style="margin-left:3.500em"></span><!-- | |||
-->| 7=<span style="margin-left:4.083em"></span><!-- | |||
-->| 8=<span style="margin-left:4.667em"></span><!-- | |||
-->| 9=<span style="margin-left:5.250em"></span><!-- | |||
-->|10=<span style="margin-left:5.833em"></span><!-- | |||
-->|11=<span style="margin-left:6.417em"></span><!-- | |||
-->|12=<span style="margin-left:7.000em"></span><!-- | |||
-->|<span style="margin-left:0.583em"></span>}}<noinclude> | |||
{{prot-temp}} | {{prot-temp}} | ||
{{DisplayBox|title=Documentation|text= | |||
{{DisplayBox|text= | |||
:{{tl|ds|n}} | |||
produces a horizontal width equal to that of ''n'' digits, for n = 0,1,...,12. | produces a horizontal width equal to that of ''n'' digits, for n = 0,1,...,12. | ||
:{{tl|ds}} | |||
is equivalent to | is equivalent to {{tl|ds|1}} and produces a single digit space. | ||
Here are some examples: | Here are some examples: | ||
:{{ds|3}}1 - type: <tt><nowiki>{{ds|3}}1</nowiki></tt> | :{{ds|3}}1 - type: <tt><nowiki>{{ds|3}}1</nowiki></tt> | ||
Line 15: | Line 27: | ||
:{{ds|0}}1000 - type: <tt><nowiki>{{ds|0}}1000</nowiki></tt> or just <tt>1000</tt> | :{{ds|0}}1000 - type: <tt><nowiki>{{ds|0}}1000</nowiki></tt> or just <tt>1000</tt> | ||
}} | }} | ||
[[Category:Text formatting templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 16:55, 12 May 2013
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |
- {{ds|n}}
produces a horizontal width equal to that of n digits, for n = 0,1,...,12.
- {{ds}}
is equivalent to {{ds|1}} and produces a single digit space. Here are some examples:
- 1 - type: {{ds|3}}1
- 10 - type: {{ds|2}}10
- 100 - type: {{ds|1}}100 or just {{ds}}100
- 1000 - type: {{ds|0}}1000 or just 1000