"ഫലകം:Navbox with columns" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
Content deleted Content added
removing second header row |
extending to 20 columns |
||
വരി 75: | വരി 75: | ||
-->{{#if:{{{col11header|}}}|<td class="navbox-abovebelow" <!-- |
-->{{#if:{{{col11header|}}}|<td class="navbox-abovebelow" <!-- |
||
-->colspan={{{ |
-->colspan={{{col11headercolspan|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;<!-- |
-->colspan={{{col12headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
||
-->{{{colheaderstyle|}}}{{{col12headerstyle|}}}">'''{{{col12header|}}}'''</td>}}<!-- |
-->{{{colheaderstyle|}}}{{{col12headerstyle|}}}">'''{{{col12header|}}}'''</td>}}<!-- |
||
-->{{#if:{{{col13header|}}}|<td class="navbox-abovebelow" <!-- |
|||
-->colspan={{{col13headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
|||
-->{{{colheaderstyle|}}}{{{col13headerstyle|}}}">'''{{{col13header|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col14header|}}}|<td class="navbox-abovebelow" <!-- |
|||
-->colspan={{{col14headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
|||
-->{{{colheaderstyle|}}}{{{col14headerstyle|}}}">'''{{{col14header|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col15header|}}}|<td class="navbox-abovebelow" <!-- |
|||
-->colspan={{{col15headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
|||
-->{{{colheaderstyle|}}}{{{col15headerstyle|}}}">'''{{{col15header|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col16header|}}}|<td class="navbox-abovebelow" <!-- |
|||
-->colspan={{{col16headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
|||
-->{{{colheaderstyle|}}}{{{col16headerstyle|}}}">'''{{{col16header|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col17header|}}}|<td class="navbox-abovebelow" <!-- |
|||
-->colspan={{{col17headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
|||
-->{{{colheaderstyle|}}}{{{col17headerstyle|}}}">'''{{{col17header|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col18header|}}}|<td class="navbox-abovebelow" <!-- |
|||
-->colspan={{{col18headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
|||
-->{{{colheaderstyle|}}}{{{col18headerstyle|}}}">'''{{{col18header|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col19header|}}}|<td class="navbox-abovebelow" <!-- |
|||
-->colspan={{{col19headercolspan|1}}} style="border-left:2px solid #fdfdfd;<!-- |
|||
-->{{{colheaderstyle|}}}{{{col19headerstyle|}}}">'''{{{col19header|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col20header|}}}|<td class="navbox-abovebelow" <!-- |
|||
-->style="border-left:2px solid #fdfdfd;<!-- |
|||
-->{{{colheaderstyle|}}}{{{col20headerstyle|}}}">'''{{{col20header|}}}'''</td>}}<!-- |
|||
--></tr>}}<!-- |
--></tr>}}<!-- |
||
വരി 152: | വരി 185: | ||
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col12style|}}};width:{{{col12width|{{{colwidth|10em}}}}}};"><div> |
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col12style|}}};width:{{{col12width|{{{colwidth|10em}}}}}};"><div> |
||
{{{col12}}} |
{{{col12}}} |
||
</div></td>}}<!-- |
|||
-->{{#if:{{{col13|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!-- |
|||
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col13style|}}};width:{{{col13width|{{{colwidth|10em}}}}}};"><div> |
|||
{{{col13}}} |
|||
</div></td>}}<!-- |
|||
-->{{#if:{{{col14|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!-- |
|||
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col14style|}}};width:{{{col14width|{{{colwidth|10em}}}}}};"><div> |
|||
{{{col14}}} |
|||
</div></td>}}<!-- |
|||
-->{{#if:{{{col15|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!-- |
|||
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col15style|}}};width:{{{col15width|{{{colwidth|10em}}}}}};"><div> |
|||
{{{col15}}} |
|||
</div></td>}}<!-- |
|||
-->{{#if:{{{col16|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!-- |
|||
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col16style|}}};width:{{{col16width|{{{colwidth|10em}}}}}};"><div> |
|||
{{{col16}}} |
|||
</div></td>}}<!-- |
|||
-->{{#if:{{{col17|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!-- |
|||
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col17style|}}};width:{{{col17width|{{{colwidth|10em}}}}}};"><div> |
|||
{{{col17}}} |
|||
</div></td>}}<!-- |
|||
-->{{#if:{{{col18|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!-- |
|||
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col18style|}}};width:{{{col18width|{{{colwidth|10em}}}}}};"><div> |
|||
{{{col18}}} |
|||
</div></td>}}<!-- |
|||
-->{{#if:{{{col19|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!-- |
|||
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col19style|}}};width:{{{col19width|{{{colwidth|10em}}}}}};"><div> |
|||
{{{col19}}} |
|||
</div></td>}}<!-- |
|||
-->{{#if:{{{col20|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!-- |
|||
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col20style|}}};width:{{{col20width|{{{colwidth|10em}}}}}};"><div> |
|||
{{{col20}}} |
|||
</div></td>}}<!-- |
</div></td>}}<!-- |
||
വരി 194: | വരി 267: | ||
-->border-left:2px solid #fdfdfd;{{{colfooterstyle|}}};{{{col11footerstyle|}}}">'''{{{col11footer|}}}'''</td>}}<!-- |
-->border-left:2px solid #fdfdfd;{{{colfooterstyle|}}};{{{col11footerstyle|}}}">'''{{{col11footer|}}}'''</td>}}<!-- |
||
-->{{#if:{{{col12footer|}}}|<td class="navbox-abovebelow" style="<!-- |
-->{{#if:{{{col12footer|}}}|<td class="navbox-abovebelow" colspan={{{col12footercolspan|1}}} style="<!-- |
||
-->border-left:2px solid #fdfdfd;{{{colfooterstyle|}}};{{{col12footerstyle|}}}">'''{{{col12footer|}}}'''</td>}}<!-- |
-->border-left:2px solid #fdfdfd;{{{colfooterstyle|}}};{{{col12footerstyle|}}}">'''{{{col12footer|}}}'''</td>}}<!-- |
||
-->{{#if:{{{col13footer|}}}|<td class="navbox-abovebelow" colspan={{{col13footercolspan|1}}} style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colfooterstyle|}}};{{{col13footerstyle|}}}">'''{{{col13footer|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col14footer|}}}|<td class="navbox-abovebelow" colspan={{{col14footercolspan|1}}} style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colfooterstyle|}}};{{{col14footerstyle|}}}">'''{{{col14footer|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col15footer|}}}|<td class="navbox-abovebelow" colspan={{{col15footercolspan|1}}} style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colfooterstyle|}}};{{{col15footerstyle|}}}">'''{{{col15footer|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col16footer|}}}|<td class="navbox-abovebelow" colspan={{{col16footercolspan|1}}} style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colfooterstyle|}}};{{{col16footerstyle|}}}">'''{{{col16footer|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col17footer|}}}|<td class="navbox-abovebelow" colspan={{{col17footercolspan|1}}} style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colfooterstyle|}}};{{{col17footerstyle|}}}">'''{{{col17footer|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col18footer|}}}|<td class="navbox-abovebelow" colspan={{{col18footercolspan|1}}} style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colfooterstyle|}}};{{{col18footerstyle|}}}">'''{{{col18footer|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col19footer|}}}|<td class="navbox-abovebelow" colspan={{{col19footercolspan|1}}} style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colfooterstyle|}}};{{{col19footerstyle|}}}">'''{{{col19footer|}}}'''</td>}}<!-- |
|||
-->{{#if:{{{col20footer|}}}|<td class="navbox-abovebelow" style="<!-- |
|||
-->border-left:2px solid #fdfdfd;{{{colfooterstyle|}}};{{{col20footerstyle|}}}">'''{{{col20footer|}}}'''</td>}}<!-- |
|||
--></tr>}}<!-- |
--></tr>}}<!-- |
13:15, 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 (നിർമ്മിക്കുക) താളിലോ നടത്താവുന്നതാണ്. ദയവായി വർഗ്ഗങ്ങളും ബഹുഭാഷാകണ്ണികളും /വിവരണം ഉപതാളിൽ മാത്രം ഇടുക. ഈ ഫലകത്തിന്റെ ഉപതാളുകൾ. |