Difference between revisions of "Template:Collapsible Nav Section"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with '{{#vardefine:expand|{{#ifeq:{{{expand}}}|{{{sec-title}}}||collapsed}}}} <table class="collapsible {{#var:expand}}" width="100%" border=0 style="border: 0px; background: {{{color|...')
 
 
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 &rarr;</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 &rarr;</span>}}</th></tr>
<tr><td>
<tr><td>

Latest revision as of 13:33, 29 October 2010

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.