Template:Tab: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Strife Onizuka (talk | contribs)
mNo edit summary
Strife Onizuka (talk | contribs)
No edit summary
Line 3: Line 3:
{{#vardefine:tmax|{{#expr:100 - (100 mod 6)}}}}  
{{#vardefine:tmax|{{#expr:100 - (100 mod 6)}}}}  
{{#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>Len {{#var:tlen}} &quot;</noinclude>{{#pad:{{{3|}}}|
}}<noinclude>
Syntax: <nowiki>{{Tab|number of tabs|number of spaces in tab}}</nowiki>
Both parameters are optional and will default if empty or not included.
 
Defaults
{| {{Prettytable}}
|- {{Hl2}}
! Position
! Description
! Default
|-
|| 1 || number of tabs || 1
|-
|| 2 || number of spaces in tab || 4
|}
 
Len {{#var:tlen}}: &quot;</noinclude>{{#pad:|
{{#ifexpr:{{#var:tlen}}>{{#var:tmax}}|
{{#ifexpr:{{#var:tlen}}>{{#var:tmax}}|
{{#var:tmax}}|
{{#var:tmax}}|

Revision as of 08:29, 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.

Defaults

Position Description Default
1 number of tabs 1
2 number of spaces in tab 4

Len 24: "{{#pad:| 24 | |right}}"