"ഫലകം:Navbox with columns" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
Content deleted Content added
minor fix |
removing second header row |
||
വരി 1: | വരി 1: | ||
<!-- |
<!-- |
||
Please do not edit without discussion first as this is a "VERY complex" template. |
|||
--><!-- |
|||
Please do not edit without discussion first as this is a "VERY complex" template. |
Please do not edit without discussion first as this is a "VERY complex" template. |
||
വരി 30: | വരി 26: | ||
|list1 = <!-- |
|list1 = <!-- |
||
--><table cellspacing="0" class="navbox-columns-table" style="text-align:left;<!-- |
--><table cellspacing="0" class="navbox-columns-table" style="text-align:left;<!-- |
||
-->{{#if:{{{col1header |
-->{{#if:{{{col1header|}}}{{{fullwidth|}}}|width:100%;<!-- |
||
-->|width:auto;margin-left:auto;margin-right:auto;}}{{{coltablestyle|}}}"><!-- |
-->|width:auto;margin-left:auto;margin-right:auto;}}{{{coltablestyle|}}}"><!-- |
||
--- |
--- Header row --- |
||
-->{{#if:{{{col1header|}}}|<tr><!-- |
-->{{#if:{{{col1header|}}}|<tr><!-- |
||
-->{{#if:{{{col1header|}}}|<td class="navbox-abovebelow" |
-->{{#if:{{{col1header|}}}|<td class="navbox-abovebelow" <!-- |
||
-->colspan={{{col1headercolspan|1}}} style="<!-- |
-->colspan={{{col1headercolspan|1}}} style="<!-- |
||
-->{{{colheaderstyle|}}}{{{col1headerstyle|}}}">'''{{{col1header|}}}'''</td>}}<!-- |
-->{{{colheaderstyle|}}}{{{col1headerstyle|}}}">'''{{{col1header|}}}'''</td>}}<!-- |
||
-->{{#if:{{{col2header|}}}|<td class="navbox-abovebelow" |
-->{{#if:{{{col2header|}}}|<td class="navbox-abovebelow" <!-- |
||
-->colspan={{{col2headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
-->colspan={{{col2headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
||
-->{{{colheaderstyle|}}}{{{col2headerstyle|}}}">'''{{{col2header|}}}'''</td>}}<!-- |
-->{{{colheaderstyle|}}}{{{col2headerstyle|}}}">'''{{{col2header|}}}'''</td>}}<!-- |
||
-->{{#if:{{{col3header|}}}|<td class="navbox-abovebelow" |
-->{{#if:{{{col3header|}}}|<td class="navbox-abovebelow" <!-- |
||
-->colspan={{{col3headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
-->colspan={{{col3headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
||
-->{{{colheaderstyle|}}}{{{col3headerstyle|}}}">'''{{{col3header|}}}'''</td>}}<!-- |
-->{{{colheaderstyle|}}}{{{col3headerstyle|}}}">'''{{{col3header|}}}'''</td>}}<!-- |
||
-->{{#if:{{{col4header|}}}|<td class="navbox-abovebelow" |
-->{{#if:{{{col4header|}}}|<td class="navbox-abovebelow" <!-- |
||
-->colspan={{{col4headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
-->colspan={{{col4headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
||
-->{{{colheaderstyle|}}}{{{col4headerstyle|}}}">'''{{{col4header|}}}'''</td>}}<!-- |
-->{{{colheaderstyle|}}}{{{col4headerstyle|}}}">'''{{{col4header|}}}'''</td>}}<!-- |
||
-->{{#if:{{{col5header|}}}|<td class="navbox-abovebelow" |
-->{{#if:{{{col5header|}}}|<td class="navbox-abovebelow" <!-- |
||
-->colspan={{{col5headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
-->colspan={{{col5headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
||
-->{{{colheaderstyle|}}}{{{col5headerstyle|}}}">'''{{{col5header|}}}'''</td>}}<!-- |
-->{{{colheaderstyle|}}}{{{col5headerstyle|}}}">'''{{{col5header|}}}'''</td>}}<!-- |
||
-->{{#if:{{{col6header|}}}|<td class="navbox-abovebelow" |
-->{{#if:{{{col6header|}}}|<td class="navbox-abovebelow" <!-- |
||
-->colspan={{{col6headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
-->colspan={{{col6headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
||
-->{{{colheaderstyle|}}}{{{col6headerstyle|}}}">'''{{{col6header|}}}'''</td>}}<!-- |
-->{{{colheaderstyle|}}}{{{col6headerstyle|}}}">'''{{{col6header|}}}'''</td>}}<!-- |
||
-->{{#if:{{{col7header|}}}|<td class="navbox-abovebelow" |
-->{{#if:{{{col7header|}}}|<td class="navbox-abovebelow" <!-- |
||
-->colspan={{{col7headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
-->colspan={{{col7headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
||
-->{{{colheaderstyle|}}}{{{col7headerstyle|}}}">'''{{{col7header|}}}'''</td>}}<!-- |
-->{{{colheaderstyle|}}}{{{col7headerstyle|}}}">'''{{{col7header|}}}'''</td>}}<!-- |
||
-->{{#if:{{{col8header|}}}|<td class="navbox-abovebelow" |
-->{{#if:{{{col8header|}}}|<td class="navbox-abovebelow" <!-- |
||
-->colspan={{{col8headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
-->colspan={{{col8headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
||
-->{{{colheaderstyle|}}}{{{col8headerstyle|}}}">'''{{{col8header|}}}'''</td>}}<!-- |
-->{{{colheaderstyle|}}}{{{col8headerstyle|}}}">'''{{{col8header|}}}'''</td>}}<!-- |
||
-->{{#if:{{{col9header|}}}|<td class="navbox-abovebelow" |
-->{{#if:{{{col9header|}}}|<td class="navbox-abovebelow" <!-- |
||
-->colspan={{{col9headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
-->colspan={{{col9headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
||
-->{{{colheaderstyle|}}}{{{col9headerstyle|}}}">'''{{{col9header|}}}'''</td>}}<!-- |
-->{{{colheaderstyle|}}}{{{col9headerstyle|}}}">'''{{{col9header|}}}'''</td>}}<!-- |
||
-->{{#if:{{{col10header|}}}|<td class="navbox-abovebelow" |
-->{{#if:{{{col10header|}}}|<td class="navbox-abovebelow" <!-- |
||
-->colspan={{{col10headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
-->colspan={{{col10headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
||
-->{{{colheaderstyle|}}}{{{col10headerstyle|}}}">'''{{{col10header|}}}'''</td>}}<!-- |
-->{{{colheaderstyle|}}}{{{col10headerstyle|}}}">'''{{{col10header|}}}'''</td>}}<!-- |
||
-->{{#if:{{{col11header|}}}|<td class="navbox-abovebelow" |
-->{{#if:{{{col11header|}}}|<td class="navbox-abovebelow" <!-- |
||
-->colspan={{{col10headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
-->colspan={{{col10headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
||
-->{{{colheaderstyle|}}}{{{col11headerstyle|}}}">'''{{{col11header|}}}'''</td>}}<!-- |
-->{{{colheaderstyle|}}}{{{col11headerstyle|}}}">'''{{{col11header|}}}'''</td>}}<!-- |
||
-->{{#if:{{{col12header|}}}|<td class="navbox-abovebelow" |
-->{{#if:{{{col12header|}}}|<td class="navbox-abovebelow" <!-- |
||
-->style="border-left:2px solid #fdfdfd;<!-- |
-->style="border-left:2px solid #fdfdfd;<!-- |
||
-->{{{colheaderstyle|}}}{{{col12headerstyle|}}}">'''{{{col12header|}}}'''</td>}}<!-- |
-->{{{colheaderstyle|}}}{{{col12headerstyle|}}}">'''{{{col12header|}}}'''</td>}}<!-- |
||
വരി 88: | വരി 84: | ||
--></tr>}}<!-- |
--></tr>}}<!-- |
||
--- Second header row --- |
|||
-->{{#if:{{{col1header2|}}}{{#ifeq:{{{col1headerrowspan|}}}|2|1}}|<!-- |
|||
--><tr style="height:2px"><td></td></tr><tr><!-- |
|||
-->{{#if:{{{col1header2|}}}|<td class="navbox-abovebelow" colspan={{{col1header2colspan|1}}} style="<!-- |
|||
-->{{{colheader2style|}}};{{{col1header2style|}}}">'''{{{col1header2|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col2header2|}}}|<td class="navbox-abovebelow" colspan={{{col2header2colspan|1}}} style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colheader2style|}}};{{{col2header2style|}}}">'''{{{col2header2|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col3header2|}}}|<td class="navbox-abovebelow" colspan={{{col3header2colspan|1}}} style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colheader2style|}}};{{{col3header2style|}}}">'''{{{col3header2|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col4header2|}}}|<td class="navbox-abovebelow" colspan={{{col4header2colspan|1}}} style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colheader2style|}}};{{{col4header2style|}}}">'''{{{col4header2|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col5header2|}}}|<td class="navbox-abovebelow" colspan={{{col5header2colspan|1}}} style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colheader2style|}}};{{{col5header2style|}}}">'''{{{col5header2|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col6header2|}}}|<td class="navbox-abovebelow" colspan={{{col6header2colspan|1}}} style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colheader2style|}}};{{{col6header2style|}}}">'''{{{col6header2|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col7header2|}}}|<td class="navbox-abovebelow" colspan={{{col7header2colspan|1}}} style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colheader2style|}}};{{{col7header2style|}}}">'''{{{col7header2|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col8header2|}}}|<td class="navbox-abovebelow" colspan={{{col8header2colspan|1}}} style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colheader2style|}}};{{{col8header2style|}}}">'''{{{col8header2|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col9header2|}}}|<td class="navbox-abovebelow" colspan={{{col9header2colspan|1}}} style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colheader2style|}}};{{{col9header2style|}}}">'''{{{col9header2|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col10header2|}}}|<td class="navbox-abovebelow" colspan={{{col10header2colspan|1}}} style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colheader2style|}}};{{{col10header2style|}}}">'''{{{col10header2|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col11header2|}}}|<td class="navbox-abovebelow" colspan={{{col11header2colspan|1}}} style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colheader2style|}}};{{{col11header2style|}}}">'''{{{col11header2|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col12header2|}}}|<td class="navbox-abovebelow" style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colheader2style|}}};{{{col12header2style|}}}">'''{{{col12header2|}}}'''</td>}}<!-- |
|||
--></tr>}}<!-- |
|||
--- Main columns--- |
--- Main columns--- |
||
-->{{#if:{{{col1header |
-->{{#if:{{{col1header|}}}|<tr style="height:2px;"><td></td></tr>}}<!-- |
||
--><tr style="vertical-align:top;"><!-- |
--><tr style="vertical-align:top;"><!-- |
||
-->{{#if:{{{col1header |
-->{{#if:{{{col1header|}}}||{{#switch:{{{padding|}}}|off|0|0em|0px|0%|0;|0em;|0px;|0%;=<!-- |
||
-->|#default=<td style="width:{{{padding|5em}}};"> </td>}}}}<!-- |
-->|#default=<td style="width:{{{padding|5em}}};"> </td>}}}}<!-- |
||
13:07, 2 മേയ് 2008-നു നിലവിലുണ്ടായിരുന്ന രൂപം
[തിരുത്തുക] [ ] ഫലകത്തിന്റെ വിവരണം
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 |
മുകളിൽ കാണുന്ന വിവരണം ഫലകം:Navbox with columns/വിവരണം എന്ന ഉപതാളിൽ നിന്ന് ഉൾപ്പെടുത്തിയിട്ടുള്ളതാണ്. (തിരുത്തുക | നാൾവഴി) താങ്കൾക്ക് പരീക്ഷണങ്ങൾ ഫലകത്തിന്റെ എഴുത്തുകളരി (നിർമ്മിക്കുക) താളിലോ testcases (നിർമ്മിക്കുക) താളിലോ നടത്താവുന്നതാണ്. ദയവായി വർഗ്ഗങ്ങളും ബഹുഭാഷാകണ്ണികളും /വിവരണം ഉപതാളിൽ മാത്രം ഇടുക. ഈ ഫലകത്തിന്റെ ഉപതാളുകൾ. |