Үлгі: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 linking countries.
For details of the parameters name, title, body, color, cat, and the template's auto-collapse logic, see Template:Navigation/doc. (body is the parameter whose content is displayed as columns.)
The remaining parameters (all optional) are:
| above | For any text or other elements to appear above the columns. |
| cols | The number of columns used; defaults to 4. |
| below | For any text or other elements to appear below the columns. |
[өңдеу] Blank syntax
{{Navigation with columns
|name = {{subst:PAGENAME}}
|title =
|color =
|cat =
|above =
|cols = <!--Default 4-->
|body =
|below =
}}
[өңдеу] Example
[өңдеу] Code
{{Navigation with columns
|name = (Countries bordering the Mediterranean Sea)
|title = [[List of countries|Countries]] bordering the [[Mediterranean Sea]]
|cols = 4 <!--4 is default, so this parameter could be removed-->
|above = ''This is where the content of the {{{above}}} parameter would appear.''
|body =
{{flagcountry|Albania}}<br/> {{flagcountry|Algeria}}<br/>
{{flagcountry|Bosnia and Herzegovina}}<br/> {{flagcountry|Croatia}}<br/>
{{flagcountry|Cyprus}}<br/> {{flagcountry|Egypt}}<br/> {{flagcountry|France}}<br/>
{{flagcountry|Greece}}<br/> {{flagcountry|Israel}}<br/> {{flagcountry|Italy}}<br/>
{{flagcountry|Lebanon}}<br/> {{flagcountry|Libya}}<br/> {{flagcountry|Malta}}<br/>
{{flagcountry|Monaco}}<br/> {{flagcountry|Montenegro}}<br/> {{flagcountry|Morocco}}<br/>
{{flagcountry|Slovenia}}<br/> {{flagcountry|Spain}}<br/> {{flagcountry|Syria}}<br/>
{{flagcountry|Tunisia}}<br/> {{flagcountry|Turkey}}
|below = For dependent and other territories, see [[Dependent territory]] and [[List of
unrecognized countries]].
}}
[өңдеу] Result
Countries bordering the Mediterranean Sea
This is where the content of the {{{above}}} parameter would appear.
For dependent and other territories, see Dependent territory and List of unrecognized countries.[өңдеу] See also
| collapsible | Image | Groups | Default header color | Style parameter | Example | |
|---|---|---|---|---|---|---|
| {{Navigation}} | NavFrame | No | No | #efefef | No | {{OPEC}} |
| {{Navigation with image}} | NavFrame | Left/right of body | No | #efefef | No | {{Cetaceans}} |
| {{Navigation with columns}} | NavFrame | No | No | #efefef | No | |
| {{Dynamic navigation box}} | collapsible | No | No | #ccccff | Yes | {{CSUHeads}} |
| {{Dynamic navigation box with image}} | NavFrame | Upper left | No | #efefef | No | {{SlovakPMs}} |
| {{Navbox generic}} | collapsible | No | Yes | #ccccff | Yes | {{Dilbert}} |
| {{Navbox generic with image}} | collapsible | Right-hand side | Yes | #ccccff | Yes | |
| {{NavigationBox}} | No | Right of title+body | No | #ccccff | No | {{EPA}} |
| {{Navigation no hide}} | No | No | No | #eee | No | |
| {{Commons:NavigationBox}} | No | Right of title+body | No | #ccccff | No | |
| {{Commons:Dynamic navigation box}} | NavFrame | No | No | #ccccff | No | |
| {{Commons:Dynamic navigation box with image}} | NavFrame | Upper left | No | #efefef | No |
| CSS class | collapses when† | custom initial state | Nesting | |
|---|---|---|---|---|
| NavFrame | NavFrame | 3+ of the same | No | Yes |
| collapsible | navbox, collapsible | 2+ of the same | Yes | No |
| † For the technically minded, see MediaWiki:Common.js. | ||||

