Загвар:Navigation bar


This template documentation is transcluded from Загвар:Navigation bar/doc [edit]


↓ Skip to English language Documentation ↓

Баримт бичиг[кодоор засварлах]

xxx[кодоор засварлах]

Өгүүлбэр зүй[кодоор засварлах]

Жишээ[кодоор засварлах]

Documentation[кодоор засварлах]

This is the standard shell for navigation bars (horizontal navigation boxes for the bottom of articles). It is used to create "real" navigation bars about specific topics, which then get inserted into a series of articles each. The contents may be structured in arbitrary ways, possibly with the help of other templates like {{Format columns}} or {{Format rows}}.

The navars can be collapsed or expanded with a click. A parameter allows them to be collapsed by default. And if three or more are placed in the same article, then those who are configured to do so will automatically be collapsed as well.

Syntax[кодоор засварлах]

{{Navigation bar
|name  = {{subst:PAGENAME}}
|title = 
|body  = 
}}

Parameters[кодоор засварлах]

Mandatory[кодоор засварлах]

name
The name of the template, which is needed for the "v ·· e" (i.e. "view · talk · edit") links to work properly on the pages where the template is used. You can enter {{subst:PAGENAME}} for this value as a shortcut.
title
Text that appears centered in the titlebar (the top bar). Usually this is the template's topic, i.e. a succinct description of the body contents.
body
The material contained by the template, usually a list or list of links. Format is inline. Formatting of the contents may be done with the help of other templates like {{Format columns}} or {{Format rows}}.

Optional[кодоор засварлах]

state
If set to collapsed, then the navbar will be collapsed unconditionally on page load. This is useful for voluminous navbars, so that they don't take too much space by default.
If set to expanded, then the navbar will always be shown in full size on page load. This should hardly ever be used, and only for very short and very important navbars.
If not set, then the navbar will be collapsed conditionally on page load. When there are a total of three or more navbars present on the same page, it will be collapsed, otherwise it will be expanded.
icon_left, icon_right
Add a graphic on either end of the title bar. The argument for each is a full image link like [[Image:Flag of Mongolia.svg|40px]]. Make sure that the size of the graphic is reasonable (which means small!), because it will widen the title bar if it doesn't fit its height.
above, below
Add extra fields (typically one line high) above and below the content area. Especially the below area may often serve to display footnotes and other explanations.

Styles[кодоор засварлах]

Elements can be styled individually. Style arguments should be used sparingly, as the defaults may already provide for an acceptable look. In the ideal case, the formatting should be kept to an absolute minimum.

style
formats the underlying table, eg. for a border around everything, etc.
title_style
Style/s to apply to titlebar; usually a background color (i.e. title_style = background:#ffffd0;).
Use of this parameter is discouraged. Where it is used, care and consensus are needed as multiple navigational templates on one page with different titlebar colors will probably look unpleasant.
body_style
Any CSS styling to add to the body, e.g. "text-align:left;" to left-align the body's content in place of its default center alignment.
above_style, below_style
formats the optional rows above and below the content area.

Example[кодоор засварлах]

Source[кодоор засварлах]

{{Navigation bar
|name       = {{subst:PAGENAME}}
|title      = [[Монгол Улс|Монгол Улсын]] [[Аймаг|аймгууд]]
|icon_right = [[Image:Flag of Mongolia.svg|40px]]
|body       = [[Архангай]] {{!}} [[Баян-Өлгий]] {{!}} [[Баянхонгор]] {{!}} [[Булган]] {{!}}
[[Говь-Алтай]] {{!}} [[Говьсүмбэр]] {{!}} [[Дархан-Уул]] {{!}} [[Дорноговь]] {{!}}
[[Дорнод]] {{!}} [[Дундговь]] {{!}} [[Завхан]] {{!}} [[Орхон]] {{!}} [[Өвөрхангай]] {{!}}
[[Өмнөговь]] {{!}} [[Сүхбаатар (аймаг)|Сүхбаатар]] {{!}} [[Сэлэнгэ]] {{!}} [[Төв]] {{!}}
[[Увс]] {{!}} [[Ховд]] {{!}} [[Хөвсгөл]] {{!}} [[Хэнтий]]
<br>'''Нийслэл хот''': [[Улаанбаатар]]
}}

Result[кодоор засварлах]

See also[кодоор засварлах]