ഫലകം:Navbox with columns/വിവരം
A navigation box that presents its content in columns. Originally intended to provide a relatively straightforward means to align links prefixed by flag icons, e.g. in templates offering links to country articles.
Basic syntax
തിരുത്തുകOnly required parameters and colwidth included.
{{Navbox with columns |name = {{subst:PAGENAME}} |title = |colwidth = <!--(to set a default width for each column, preferably in a proportional unit such as 'em'*)--> |col1 = |col2 = }}
* See Em (typography). Using proportional units means the template should still be displayed correctly across a range of browser font-sizes. If colwidth not specified, a default 10em is used.
Parameters
തിരുത്തുകRequired parameters in bold.
name | The name of the template. The name of this template, for example, is "Navigation with columns". |
state | Possible values are collapsed , uncollapsed , and the default autocollapse . |
titlestyle | CSS style/s to apply to titlebar; usually background:color (background defaults to NavHead default). |
title | The title of the template, displayed centered in the titlebar at the top of the template. |
bodystyle | CSS style/s to apply to the template's body (i.e. including space not used by columns) |
abovestyle | CSS style/s to apply to the above parameter. |
above | Text or other elements to appear above the columns. |
image | Image to the right of all of the columns. |
imageleft | Image to the left of all of the columns. |
colwidth | Width, preferably in a proportional unit such as 'em', used for each column whose width not specified by colNwidth below. Defaults to 10em. |
padding | Padding before first column, preferably in a proportional unit. Defaults to 5em. |
colsstyle | CSS style/s to apply across all columns; if used, usually background:color per titlestyle above. |
oddcolstyle | CSS style/s to apply to all odd-numbered columns (again, if used, usually background:color ). |
evencolstyle | CSS style/s to apply to all even-numbered columns (ditto). |
col1width | First column's width (overrides colwidth above). |
col1style | CSS style/s to apply to the first column. |
col1 | First column's content. |
col2width | Second column's width (overrides colwidth above). |
col2style | CSS style/s to apply to the second column. |
col2 | Second column's content. |
col3width | Third column's width (overrides colwidth above). |
col3style | CSS style/s to apply to the third column. |
col3 | Third column's content. |
...... | ...... |
col20width | Twentieth and final column's width (overrides colwidth above). |
col20style | CSS style/s to apply to the twentieth and final column. |
col20 | Twentieth and final column's content. |
belowstyle | CSS style/s to apply to the below parameter. |
below | Text or other elements to appear below the columns. |
category | The category or categories to which a page including the template will become a member. Avoid using, as such categories not shown in the code of a page transcluding the template. |
Example
തിരുത്തുകCode
തിരുത്തുക{{Navbox with columns |name = East Asia Summit (EAS) |title = Member states of the [[East Asia Summit|East Asia Summit (EAS)]] |width = 18.25em |padding = 10em |above = ''This is where the {{{above}}} would appear.'' |col1 = {{AUS}}<br/> {{BRU}}<br/> {{CAM}}<br/> {{IND}} |col2 = {{IDN}}<br/> {{JPN}}<br/> {{LAO}}<br/> {{MAS}} |col3 = {{MYA}}<br/> {{NZL}}<br/> {{CHN-PRC}}<br/> {{PHI}} |col4width=17em |col4 = {{SIN}}<br/> {{KOR}}<br/> {{THA}}<br/> {{VIE}} |below = '''Potential future members'''{{spaces|6}}{{TLS}}{{spaces|3}}{{RUS}} }}
Result
തിരുത്തുകSee also
തിരുത്തുകCollapsible | Header color | Image | Groups | Style (body) parameter/s |
Examples | |
---|---|---|---|---|---|---|
{{Navbox}} | collapsible | navbox | Left/right of body | Yes | Yes | |
{{Navbox with collapsible groups}} | collapsible | navbox | Left/right of body and/or in each list | Yes | Yes |
|
{{Navbox with columns}} | collapsible | navbox | Left/right of columns | No | Yes |
Type | CSS classes | JavaScript | Collapses when | Custom initial state |
Nesting |
---|---|---|---|---|---|
Collapsible tables | collapsible | Defined in Common.js | 2 or more autocollapse on page | Yes | Yes |