Difference between revisions of "Template:Collapsible Table"

From Second Life Wiki
Jump to navigation Jump to search
m (a quick collapsible table template, should be generic enough to handle just about everything we can throw at it.)
 
m
Line 1: Line 1:
{{{!}} class="collapsible {{#if:{{{collapsed|}}}|collapsed}} {{{table-class|}}}" style="{{{table-style|}}}"
{{{!}} class="collapsible {{#if:{{{collapsed|}}}|collapsed}} {{#if:{{{autocollapse|}}}|autocollapse}} {{{table-class|}}}" style="{{{table-style|}}}"
! style="{{{title-row-style|}}}" colspan="{{{title-colspan|}}}" {{{title-attributes|}}} {{!}} {{{title|}}}
! style="{{{title-row-style|}}}" colspan="{{{title-colspan|}}}" {{{title-attributes|}}} {{!}} {{{title|}}}
{{{extra-title-columns|}}}
{{!}}-
{{!}}-
{{{content|}}}
{{{content|}}}
Line 13: Line 12:
| collapsed
| collapsed
| any value will activate collapsed
| any value will activate collapsed
|-
| autocollapse
| collapses the table if other collapsible tables are present
|-
|-
| table-class
| table-class
Line 28: Line 30:
| title
| title
| table title
| table title
|-
| extra-title-columns
| parameter to let the user specify extra title columns
|-
|-
| content
| content

Revision as of 13:53, 14 November 2010

variable description
collapsed any value will activate collapsed
autocollapse collapses the table if other collapsible tables are present
table-class additional user supplied class value
table-style user supplied styling for the table
title-row-style style for the title row
title-colspan how many columns the title element should span
title table title
content the table contents, to be supplied in {{!}} form.