قالب:تصفح مع أعمدة
من ويكيبيديا، الموسوعة الحرة
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.
| name | The name of the template. The name of this template, for example, is "Navigation with columns". |
| title | The title of the template, displayed centered in the titlebar at the top of the template. |
| titlebkg | Background color of titlebar (defaults to NavHead default, currently #efefef). |
| above | (or top) Text or other elements to appear above the columns. |
| cols | The number of columns to be used (maximum 8, minimum 2). |
| colsbkg | Background color for columns (defaults to transparent). |
| width | Width, in pixels without "px" suffixقالب:Smallsup, used for each column whose width not specified by colNwidth below. |
| 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). |
| ...... | ...... |
| col8 | Sixth and final column's content. |
| col8width | Sixth and final column's width (if not width above). |
| below | (or bottom) Text or other elements to appear below the columns. |
| cat | (or category) The category or categories to which a page including the template will become a member. |
قالب:Smaller
[تحرير] Blank syntax
Only required parameters included.
{{تصفح مع أعمدة
|اسم القاالب = {{subst:PAGENAME}}
|العنوان =
|cols =
|width =
|col1 =
|col2 =
}}
[تحرير] Example
[تحرير] Code
{{تصفح مع أعمدة
|اسم القالب = (Countries bordering the Mediterranean Sea)
|العنوان = [[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.)
| قالب:Country data Albania قالب:Country data Algeria قالب:Country data Bosnia and Herzegovina قالب:Country data Croatia قالب:Country data Cyprus قالب:Country data Egypt |
قالب:Country data France قالب:Country data Greece قالب:Country data Israel قالب:Country data Italy |
قالب:Country data Libya قالب:Country data Malta قالب:Country data Monaco قالب:Country data Montenegro قالب:Country data Morocco |
قالب:Country data Slovenia قالب:Country data Spain قالب:Country data Syria قالب:Country data Tunisia قالب:Country data Turkey |
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 |
Example | |
|---|---|---|---|---|---|---|
| {{Navigation}} | NavFrame | NavHead | No | No | Yes | {{OPEC}} |
| {{Navigation with image}} | NavFrame | NavHead | Left/right of body | No | Yes | {{HolmesNovels}} |
| {{Navigation with columns}} | NavFrame | NavHead | No | No | Yes | |
| {{Dynamic navigation box}} | collapsible | navbox | No | No | Yes | {{CSUHeads}} |
| {{Dynamic navigation box with image}} | NavFrame | NavHead | Upper left | No | No | {{SlovakPMs}} |
| {{Navbox generic}} | collapsible | navbox | Right-hand side | Yes | Yes | {{Dilbert}} |
| {{NavigationBox}} | No | navbox | Right of title+body | No | No | {{EPA}} |
| {{Commons:NavigationBox}} | No | #ccccff | Right of title+body | No | No | |
| {{Commons:Dynamic navigation box}} | NavFrame | #ccccff | No | No | No | |
| {{Commons:Dynamic navigation box with image}} | NavFrame | #ccccff | Upper left | No | No | |
| † The background color for the header or title is inherited from the class listed below. The templates have titlebkg parameters that override the default. | ||||||
| Type | CSS classes | Collapses when | Custom initial state |
Nesting | Header color |
Font size |
|---|---|---|---|---|---|---|
| NavFrame div | NavFrame, NavHead, NavContent | 3+ of the same | No | Yes | #ccccff | 95% |
| Collapsible table | collapsible, navbox | 2+ of the same | Yes | Yes | #ccccff | 90% |
|
For the technically minded, see Common.css and Common.js. |
||||||

