arraysize: 0
What to do?
- If there is nothing to show, both the navigation header and the content pane should be suppressed.
- By default, it is the first relevant section that should be visible/active, but sections that get suppressed should be ignored.
- Sometimes we want to show the number of results as part of each tab heading.
The parser function
The parser function is currently part of the CODECS Resources extension. You can have any number of sections as long as you use the sets of header
/show
/pane
parameters as explained below. If usefilter
is set to true (default), the show
parameter determines whether or not a section is suppressed.
{{#cr-nav-tabs: |uniquename= // Name element to be used for HTML ids. Default: cr. Always provide a different name if you use the parser function again on the same page. |headerclass= // Optional. Defaults to nav nav-tabs |showresultcount=false/true // Whether to show 'show1', etc., as a result count in the navigation headers. Default: false. |usefilter=true/false. // Default: true. If the filter is used, any section with a 'show' parameter that equals 0 will be suppressed. If the filter is disabled, all sections will be shown regardless. //Section 1: |header1=Content of the tab header. |show1= // If show1 is 0 (and usefilter=true), this section will be suppressed. This means we can use a semantic query with format=count. |pane1=Content of the tab pane. //Section 2: |header2= |show2= |pane2= //Section 3: |header3= |show3= |pane3= //etc. }}