साचा:Navbox generic subgroup
From Wikipedia, the free encyclopedia
या साच्यात काही कठीण किंवा अवघड भाग आहेत. यात कोणताही बदल करण्यापूर्वी, याची माहिती काळजीपूर्वक वाचा. हा साचा बर्याच लेखात वापरला जात आहे. तुम्ही केलेल्या बदलांमुळे अनपेक्षित समस्या उद्भवल्यास, कृपया, आपले बदल त्वरीत काढून टाकावेत. तुम्ही या साच्यावर प्रयोग करून पाहू शकता परंतु, तुमचे प्रयोग जतन करण्याआधी ते जरुर तपासावेत. ते प्रयोग , धूळपाटी साचा या पानांवर किंवा, तुमच्या सदस्य पानावर करून बघितल्यास विकिपीडियामधील पानांवर उत्पात होणार नाही. |
This template is designed to be used with {{Navbox}} or {{Navbox generic}}, navigational templates which 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 {{Navbox}} or {{Navbox generic}}. A subgroup may contain up to 10 list items.
Blank template
{{Navbox generic subgroup | bodystyle = | groupstyle = | liststyle = | oddstyle = | evenstyle = | group1 = | list1 = | group2 = | list2 = ... | group10 = | list10 = }}
Parameters
Cells
- listn
- (i.e. list1, list2, ... list10) 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. group1, group2, ... group10) 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
#ddf
(a truncated form of#ddddff
), but can be changed via the groupstyle parameter (see below).
Styles
- bodystyle
- Specifies CSS styles to apply to the template body. Examples:
background:#nnnnnn;
text-align:[right/center/left/justified];
- groupstyle
- 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;
- liststyle
- CSS styles to apply to all lists. Overridden by the oddstyle and evenstyle parameters (if specified) below.
- oddstyle
- evenstyle
- CSS styles to apply to the odd-numbered list items (list1, list3, etc) or even-numbered list items (list2, list4, etc), respectively. Typically used to set background color (
background:#nnnnnn;
) in order to achieve an alternating background color between odd and even-numbered lists.
Example 1
The following is an example of Navbox generic subgroup used within a Navbox template. Below that is the code used to generate this navigation box, with the subgroup template shown in bold text.
|
Example 2
This example implements horizontal group headings by assigning the headings to odd-numbered rows (list1, list3
) and the links to even-numbered rows (list2, list4
), then using oddstyle
to set the background color.
|
संपादक हे या साच्याच्या धूळपाटी (तयार करा | प्रतिबिंब) व चाचणी (तयार करा) पानात प्रयोग करुन बघु शकतात.
कृपया वर्ग हे /doc उपपानावर टाकावेत. या साच्याची उपपाने बघा.