Template:Tab: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
| Line 4: | Line 4: | ||
{{#vardefine:tlen|{{#expr:{{#if:{{{1|}}}|{{{1}}}|1}} * {{#if:{{{2|}}}|{{{2}}}|4}} * {{#len:{{#var:tpad}}}}}}}} | {{#vardefine:tlen|{{#expr:{{#if:{{{1|}}}|{{{1}}}|1}} * {{#if:{{{2|}}}|{{{2}}}|4}} * {{#len:{{#var:tpad}}}}}}}} | ||
}}<noinclude> | }}<noinclude> | ||
Syntax: <nowiki>{{Tab|number of tabs|number of spaces in tab}}</nowiki> | '''Syntax:''' <nowiki>{{Tab|number of tabs|number of spaces in tab}}</nowiki><br/> | ||
Both parameters are optional and will default if empty or not included. | Both parameters are optional and will default if empty or not included. | ||
See the discussion page for more information. | |||
{| {{Prettytable}} | {| {{Prettytable}} | ||
|- {{Hl2}} | |- {{Hl2}} | ||
| Line 18: | Line 19: | ||
|| 2 || number of spaces in tab || 4 | || 2 || number of spaces in tab || 4 | ||
|} | |} | ||
Limited to a total of 44 tabs (264 spaces). | |||
Len {{#var:tlen}}: "</noinclude>{{#pad:| | Len {{#var:tlen}}: "</noinclude>{{#pad:| | ||
Latest revision as of 08:32, 3 May 2007
Syntax: {{Tab|number of tabs|number of spaces in tab}}
Both parameters are optional and will default if empty or not included.
See the discussion page for more information.
| Position | Description | Default |
|---|---|---|
| 1 | number of tabs | 1 |
| 2 | number of spaces in tab | 4 |
Limited to a total of 44 tabs (264 spaces).
Len 24: "{{#pad:| 24 | |right}}"