User:Locke/Sandbox/Template5: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
gotta actually define the variables first. that's sorta the whole point.
(added a hack to control parsing order, which determines how variables such as tabset-position and tabset-selector are defined. by default left is parsed before top. first=top parses top first.)
(gotta actually define the variables first. that's sorta the whole point.)
Line 1: Line 1:
<!--hack to control parsing order-->{{#if:{{#vardefine:tabset-position|{{{first|left}}}}}{{{{{{first|left}}}}}}{{#vardefine:tabset-position|left}}{{{left|}}}{{#vardefine:tabset-position|top}}{{{top|}}}|}}<!--end hack-->{{#vardefine:tab-target|{{{1}}}}}{{#vardefine:tabsetv-width|{{{vtabwidth|60}}}}}<div id="{{{1}}}" class="tabtarget box {{#if:{{{left|}}}|hastabsleft}} {{#if:{{{top|}}}|hastabstop}}" {{#if:{{{left|}}}|style="margin-left: {{#expr:{{#var:tabsetv-width}}-1}}px"}}>{{{left|}}}{{{top|}}}{{{2}}}{{Clear}}</div>
{{#vardefine:tab-target|{{{1}}}}}{{#vardefine:tabsetv-width|{{{vtabwidth|60}}}}}<!--hack to control parsing order-->{{#if:{{#vardefine:tabset-position|{{{first|left}}}}}{{{{{{first|left}}}}}}{{#vardefine:tabset-position|left}}{{{left|}}}{{#vardefine:tabset-position|top}}{{{top|}}}|}}<!--end hack--><div id="{{{1}}}" class="tabtarget box {{#if:{{{left|}}}|hastabsleft}} {{#if:{{{top|}}}|hastabstop}}" {{#if:{{{left|}}}|style="margin-left: {{#expr:{{#var:tabsetv-width}}-1}}px"}}>{{{left|}}}{{{top|}}}{{{2}}}{{Clear}}</div>

Navigation menu