თარგი:ნავდაფა გიმენბუნა

ვიკიპედიაშე
დოკუმენტაცია დოკუმენტაცია


თე თანგი ირინუანს თანგიშ სინტაქსიშ უძგალაშო რთულ დო ეზოთერულ მუშებეფს.

რთხიინთ ვეცადათ თიშ თირუას დორწუმაფილი ვარეთჷ-და, ნამდა გარჩქილენა თიში ნწყილობა დო ხაზირი რეთ დუდშა გეჭოფათ თეშ გეშა მერინაფილი გავალინ. ნამდგარდია ექსპერიმენტიქ ოკო მუკორთას თანგიშ ოქარინჯეს ვარდა თქვანი მახვარებუშ ოფირჩას.

თარგი:ნავდაფა suite This template is designed to be used with {{ნავდაფა}} or other navigational templates that allow creating lists of links with groups headers or titles. This template allows the creation of subgroups that can be assigned to a list item within {{ნავდაფა}}. A subgroup may contain up to 20 list items.

Blank template

{{ნავდაფა გიმენბუნა
| ბუნასტილი = 
| ერკებულსტილი  = 

| ბუნა1 = 
| ერკებული1  = 
| ბუნა2 = 
| ერკებული2  = 
...
| ბუნა20 = 
| ერკებული20  = 
}}

Parameters

This template employs all parameters of {{ნავდაფა}}. Please see the documentation there for more complete descriptions. In fact, the only differences between this template and {{ნავდაფა}} are as follows:

  • The border parameter defaults to "child"
  • The group padding defaults to 0.75em on the left/right, and can only be changed with the grouppadding parameter. This is done to prevent the Internet Explorer box model bug from effecting the width of groups.

Everything else is exactly the same as {{ნავდაფა}}.

Only the most common parameters are listed below.

Cells

listn
(i.e. ერკებული1, ერკებული2, ... ერკებული20) The body of the template, usually a list of links. Format is inline. At least one list parameter is required; each additional list is displayed in a separate row of the table. Each listn may be preceded by a corresponding groupn parameter, if provided (see below). The background color of the list items (and the entire table) defaults to transparent, therefore it displays the same background color used in the parent navigation box.
groupn
(i.e. ბუნა1, ბუნა2, ..., ბუნა20) If specified, text appears in a header cell displayed to the left of listn. If omitted, listn uses the full width of the table. The background color defaults to #e6e6ff, but can be changed via the ბუნასტილი parameter (see below).

Styles

შქასტილი
Specifies CSS styles to apply to the template body. Examples:
background:#nnnnnn;
text-align:[right/center/left/justified];
ბუნასტილი
CSS styles to apply to the groupn cells. This option overrides any styles that are applied to the entire table. Examples:
background:#nnnnnn;
text-align:[left/center/right];
vertical-align:[top/middle/bottom];
white-space:nowrap;
grouppadding
CSS style to specify group padding. Should usually be specified using em units. It is recommended to leave this parameter alone and use the default padding. Examples:
grouppadding = 0em 1em; (1em on left/right, 0em on top/bottom)
grouppadding = 0em 0.5em 0em 1em; (0em top, 0.5em right, 0em bottom, 1em left)
ერკებულსტილი
CSS styles to apply to all lists. Overridden by the ცალსტილი and ჭკულსტილი parameters (if specified) below.
ცალსტილი
ჭკულსტილი
CSS styles to apply to the odd-numbered list items (ერკებული1, ერკებული3 დო ა.უ.) or even-numbered list items (ერკებული2, ერკებული4 დო ა.უ.), respectively. Typically used to set background color (background:#nnnnnn;) in order to achieve an alternating background color between odd and even-numbered lists.
evenodd [swap, even, odd, off]
If set to swap, then the automatic striping of even and odd rows is reversed. Normally, even rows get a light gray background for striping; when this parameter is used, the odd rows receive the gray striping instead of the even rows. Setting to even or odd sets all rows to have that striping color. Setting to off disables automatic row striping. NOTE: Due to system limitations, do not use a semi-colon to close this command.

Setting the width of groups

If multiple {{Navbox subgroup}} templates are used inside of a parent {{ნავდაფა}}, it generally looks better if the width of the groups matches up. In order to do this, one must set the ბუნასტილი parameters to contain the desired width, and the ერკებულსტილი parameters to have width:auto (due to HTML/CSS reasons). For example, place the following code in each {{Navbox subgroup}} to adjust the widths:

ბუნასტილი = width:10em;
ერკებულსტილი = width:auto;

If you also use the image or სურკვარჩხანშე parameters, then you will most likely also need to set their width manually using the სურათსტილი and სურკვარჩხანშეstyle parameters.

Examples

Example 1

The following is an example of Navbox subgroup used within a Navbox template.

{{ნავდაფა
| ჯოხო  = Protected Areas of Colorado
| დუდჯოხო  = Protected Areas of Colorado
| ბუნა1 = National Park Service
| ერკებული1  = 
  {{ნავდაფა გიმენბუნა
   |ბუნა1 = National Parks
   |ერკებული1  = [[Black Canyon of the Gunnison National Park|Black Canyon of the Gunnison]]{{•}} [[Great Sand Dunes National Park and Preserve|Great Sand Dunes]]{{•}} [[Mesa Verde National Park|Mesa Verde]]{{•}} [[Rocky Mountain National Park|Rocky Mountain]]
   |ბუნა2 = National Monuments
   |ერკებული2  = [[Colorado National Monument|Colorado]]{{•}} [[Florissant Fossil Beds National Monument|Florissant Fossil Beds]]{{•}} [[Hovenweep National Monument|Hovenweep]]{{•}} [[Yucca House National Monument|Yucca House]]
   |ბუნა3 = National Historic Sites
   |ერკებული3  = [[Bent's Old Fort National Historic Site|Bent's Old Fort]]{{•}} [[Sand Creek Massacre National Historic Site|Sand Creek Massacre]]
   |ბუნა4 = National Recreation Area
   |ერკებული4  = [[Curecanti National Recreation Area|Curecanti]]
  }}
| ბუნა2 = National Forests
| ერკებული2  = [[Arapaho National Forest|Arapaho]]{{•}} [[Grand Mesa National Forest|Grand Mesa]]{{•}} [[Gunnison National Forest|Gunnison]]{{•}} [[Pike National Forest|Pike]]{{•}} [[Rio Grande National Forest|Rio Grande]]{{•}} [[Roosevelt National Forest|Roosevelt]]{{•}} [[Medicine Bow - Routt National Forest|Medicine Bow - Routt]]{{•}} [[San Isabel National Forest|San Isabel]]{{•}} [[San Juan National Forest|San Juan]]{{•}} [[Uncompahgre National Forest|Uncompahgre]]{{•}} [[White River National Forest|White River]]
}}

Example 2

This example implements horizontal group headings by assigning the headings to ერკებული1 and ერკებული3 and the links to ერკებული2 and ერკებული4), then using ერკებული1სტილი and ერკებული3სტილი to set the background color of the headings.

{{ნავდაფა
| ჯოხო = Roman Emperors
| დუდჯოხო = Roman Emperors
| ბუნა1 = Crisis 235 AD - 284 AD
| ერკებული1  = [[Maximinus Thrax]]{{•}} [[Gordian I]]{{•}} [[Gordian II]]{{•}} [[Pupienus]] and [[Balbinus]]{{•}} [[Gordian III]]{{•}} [[Philip the Arab]]{{•}} [[Decius]]{{•}} [[Trebonianus Gallus]]{{•}} [[Aemilianus]]{{•}} [[Valerian (emperor)|Valerian]]{{•}} [[Gallienus]]{{•}} [[Claudius II]]{{•}} [[Quintillus]]{{•}} [[Aurelian]]{{•}} [[Marcus Claudius Tacitus]]{{•}} [[Florianus]]{{•}} [[Probus]]{{•}} [[Carus]]{{•}} [[Numerian]]{{•}} [[Carinus]]
| ბუნა2 = Dominate
| ერკებული2  = 
  {{ნავდაფა გიმენბუნა
   |ერკებული1სტილი = background:#ddf;
   |ერკებული1 = '''284 AD - 395 AD'''
   |ერკებული2 = [[Diocletian]]{{•}} [[Maximian]]{{•}} [[Constantius Chlorus|Constantius I]]{{•}} [[Galerius]]{{•}} [[Flavius Valerius Severus|Severus II]]{{•}} [[Maxentius]]{{•}} [[Maximinus]]{{•}} [[Licinius]]{{•}} [[Constantine I]]{{•}} [[Constantine II (emperor)|Constantine II]]{{•}} [[Constans|Constans I]]{{•}} [[Constantius II]]{{•}} [[Julian the Apostate]]{{•}} [[Jovian]]{{•}} [[Valentinian I]]{{•}} [[Valens]]{{•}} [[Gratian]]{{•}} [[Valentinian II]]{{•}} [[Eugenius]]{{•}} [[Theodosius I]]
   |ერკებული3სტილი = background:#ddf;
   |ერკებული3 = '''Western Empire (393 AD - 476 AD)'''
   |ერკებული4 = [[Honorius (emperor)|Honorius]]{{•}} [[Constantius III]]{{•}} [[Joannes]]{{•}} [[Valentinian III]]{{•}} [[Petronius Maximus]]{{•}} [[Avitus]]{{•}} [[Majorian]]{{•}} [[Libius Severus]]{{•}} [[Anthemius]]{{•}} [[Olybrius]]{{•}} [[Glycerius]]{{•}} [[Julius Nepos]]{{•}} [[Romulus Augustus]]
  }}
}}

See also

  • {{ნავდაფა}} – Basic navbox
  • {{Navbox with columns}} – Allows columns instead of groups/lists
  • {{Navbox with collapsible groups}} – Another variation.
  • Wikipedia:Line break handling – The how-to guide about how to handle word wraps (line breaks) on Wikipedia, such as the wrapping of the link lists used in navboxes.
  • {{Nowrap begin}} – The recommended format for adding bullets, pipes, or dashes between list items. The page describes how to go about using them with proper wrapping.
  • {{Nobold}} – To display text at normal font-weight within a context where the default font-weight is bold, e.g. header cells in tables.


თარგი:Navigational templates