வார்ப்புரு:Navigation with columns
{{{col1}}} | {{{col2}}} |
வார்புருவை பயன்படுத்தல் தொடர்பான இந்த ஆவனம் வார்ப்புரு:Navigation with columns/doc என்ற வார்ப்புருவிலிருந்து நேரடியாக இணைக்கப்பட்டுள்ளது (தொகு)
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 = }}
Example
தொகுCode
தொகு{{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. }}
Result
தொகு Countries bordering the Mediterranean Sea
(This is where the content of the {{{above}}} or {{{top}}} parameter would appear.)
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}}} |
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 | |
{{Navbox years}} | collapsible | navbox | No | No | No |
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 |