வார்ப்புரு:Navigation with columns


Version of {{Navigation}} that presents its content in columns. Originally intended to provide a straightforward means to align links prefixed by flag icons, e.g. in templates offering links to country articles.

Parameters

தொகு

Required parameters in bold; deprecated parameter names in parentheses.

name The name of the template. The name of this template, for example, is "Navigation with columns".
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.
abovestyle CSS style/s to apply to the above parameter.
above (or top) Text or other elements to appear above the columns.
cols The number of columns to be used (maximum 10, minimum 2).
colstyle CSS style/s to apply across all columns; per titlestyle above, usually background:color.
width Width, in pixels without "px" suffix1, used for each column whose width not specified by colNwidth below. Defaults to 100.
padding Padding before first column (default calculated per "Calculations used" section below).
col1 First column's content.
col1width First column's width (if not width above).
col2 Second column's content.
col2width Second column's width (if not width above).
col3 Third column's content.
col3width Third column's width (if not width above).
...... ......
col10 Tenth and final column's content.
col10width Tenth and final column's width (if not width above).
belowstyle CSS style/s to apply to the below parameter.
below (or bottom) Text or other elements to appear below the columns.
category (or cat) 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.

1 Pixels without "px" suffix required as this parameter's value used to calculate padding before columns (in lieu of padding parameter).

Blank syntax

தொகு

Only required parameters included.

{{Navigation with columns
|name  = {{subst:PAGENAME}}
|title = 
|cols  = 
|width = 
|col1  = 
|col2  = 
}}
{{Navigation with columns
|name  = (Countries bordering the Mediterranean Sea)
|title = [[List of countries|Countries]] bordering the [[Mediterranean Sea]]
|cols  = 4
|width = 185  <!--185 pixels-->
|above = ''(This is where the {{{above}}} or {{{top}}} parameter would appear.)''

|col1 = {{flagcountry|Albania}}<br/> {{flagcountry|Algeria}}<br/> 
{{flagcountry|Bosnia and Herzegovina}}<br/> {{flagcountry|Croatia}}<br/> 
{{flagcountry|Cyprus}}<br/> {{flagcountry|Egypt}}

|col2 = {{flagcountry|France}}<br/> {{flagcountry|Greece}}<br/> 
{{flagcountry|Israel}}<br/> {{flagcountry|Italy}}<br/> {{flagcountry|Lebanon}}

|col3 = {{flagcountry|Libya}}<br/> {{flagcountry|Malta}}<br/> 
{{flagcountry|Monaco}}<br/> {{flagcountry|Montenegro}}<br/> {{flagcountry|Morocco}}

|col4 = {{flagcountry|Slovenia}}<br/> {{flagcountry|Spain}}<br/> 
{{flagcountry|Syria}}<br/> {{flagcountry|Tunisia}}<br/> {{flagcountry|Turkey}}

|below = Dependent and other territories not included.
}}

Calculations used

தொகு
            ┌--------------------------------centered table-------------------------------┐

columns:    |   (padding)   | ┌---------------|---------{{{cols}}}------|---------------┐ |
 widths:    | {{{width}}}/2 | {{{width}}} or  | {{{width}}} or  |  ...  | {{{width}}} or  |
                            | {{{col1width}}} | {{{col2width}}} |  ...  | {{{colNwidth}}} |
Navigation templates comparison
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
{{Navbox years}} collapsible navbox No No No
Collapsible attributes
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



"https://ta.wikipedia.org/w/index.php?title=வார்ப்புரு:Navigation_with_columns&oldid=138413" இலிருந்து மீள்விக்கப்பட்டது