Difference between revisions of "Template:Collapsible Nav Section"
Jump to navigation
Jump to search
Bea Linden (talk | contribs) (Created page with '{{#vardefine:expand|{{#ifeq:{{{expand}}}|{{{sec-title}}}||collapsed}}}} <table class="collapsible {{#var:expand}}" width="100%" border=0 style="border: 0px; background: {{{color|...') |
Bea Linden (talk | contribs) |
||
Line 1: | Line 1: | ||
{{#vardefine:expand|{{#ifeq:{{{expand}}}|{{{sec-title}}}||collapsed}}}} | {{#vardefine:expand|{{#ifeq:{{{expand}}}|{{{sec-title}}}||collapsed}}}} | ||
<table class="collapsible {{#var:expand}}" width="100%" border=0 style="border: 0px; background: {{{color|#EEEEFF}}};"> | <table class="collapsible {{#var:expand}}" width="100%" border=0 style="border: 0px; background: {{{color|#EEEEFF}}}; text-align: {{{text_align|left}}};"> | ||
<tr><th><span style="font-size: 11pt;">{{{sec-title}}}</span> {{#ifeq:{{{expand}}}|{{{sec-title}}}||<span style="font-size: 7pt; font-weight:normal; float: right; margin-right: 10px;">...click to display →</span>}}</th></tr> | <tr><th><span style="font-size: 11pt;">{{{sec-title}}}</span> {{#ifeq:{{{expand}}}|{{{sec-title}}}||<span style="font-size: 7pt; font-weight:normal; float: right; margin-right: 10px;">...click to display →</span>}}</th></tr> | ||
<tr><td> | <tr><td> |
Latest revision as of 12:33, 29 October 2010
{{{sec-title}}} ...click to display → |
---|
{{{sec-content}}} |
This template is designed to be used within a navigation box, to create sections that are Parameters:
- sec-title - title of the collapsible section
- sec-content - content in the collapsible section
- match - if the current page name contains this string anywhere within it, then section will be opened by default; otherwise, it will be collapsed by default.