موضيل:Navbox with collapsible groups
موضيل ؤلا شرح د لموضيل مامطرجمش. عافاك عاون ف طّرجامة ديالو. |
لا يُعرض هذا القالب عند التصفح عبر الجوال؛ ويظهر على سطح المكتب فقط. شوف تا التوثيق للحصول على التفسير. |
هذا القالب يستعمل لوا: |
تخدام
[بدل لكود]{{شريط مركب | name = {{subst:PAGENAME}} | state = {{{state|}}} | titlestyle = | title = | image = | listclass = hlist | selected = {{{selected|{{{1|}}}}}} | abbr1 = | group1 = | list1 = | abbr2 = | group2 = | list2 = <!--[etc, to:]--> | abbr20 = | group20 = | list20 = }}
المعلمات
[بدل لكود]This template shares many common parameters with its sister templates {{شريط}} and {{شريط بأعمدة}}. The common parameters are marked with a cross†. Please refer to the documentation of {{شريط}} for more in depth descriptions and examples of those parameters.
Setup parameters
[بدل لكود]- name†
- The name of the template. The name of this template, for example, is "Navbox with collapsible groups".
- state† [
uncollapsed, collapsed, plain, off
] - The initial state of the show/hide feature for the main title. See {{شريط}} for more information. Does not affect display or hiding of group items, see staten, below.
- state† [
- navbar†
- Possible values are
plain
,off
, and the default value of blank. See {{شريط}} for more information.
- border†
- Possible values are
child
,none
, and the default value of blank. Set tochild
if you wish to use the navbox inside of another navbox; with this option, the child navbox is borderless and fits snuggly inside of its parent navbox. The parent navbox may be the list area of {{شريط}}, the columns of a {{شريط بأعمدة}}, or a list area of {{شريط مركب}}. See {{شريط}} for more information and examples.
Basic data parameters
[بدل لكود]- title†
- The title of the template, displayed centered in the titlebar at the top of the template.
- above†
- Text or other elements to appear above groups/lists.
- image†
- Image to the right of all of the groups/lists.
- imageleft†
- Image to the left of all of the groups/lists.
- below†
- Text or other elements to appear below the groups/lists.
Group/list parameters
[بدل لكود]- groupn†
- The title of each section.
- listn†
- The content/wikilinks that will be shown in the group. موضيل:يتوسطه A {{شريط}} or {{شريط بأعمدة}} can optionally be used here with its
border = child
parameter set. If this is done, leave the corresponding groupn blank, as the child navbox will already provide the collapsible feature.
- abbrn
- This is the abbreviation of the group. See
selected
parameter immediately below to see how to use this parameter. This parameter is optional, but recommended.
- selected
- If the value of
selected
equals the value ofabbrn
, then listn is uncollapsed and all other lists are collapsed. Ifselected
is left blank, or if it does not match anyabbrn
, then all groups are collapsed. Usually this parameter should be set to {{{1|}}}. Since this template is a base template for others, there has to be a way to pass the group parameter from the article, to the secondary template to this one.
- The collapsed/uncollapsed options can be listed on the template's page by using the {{Collapsible sections option}} template in the <noinclude> part of the page.
- staten [
uncollapsed, collapsed, plain, off
] - The initial collapsible state of listn. Set to collapsed by default. Overridden to uncollapsed if
selected
equalsabbrn
.
- staten [
- imagen
- An image to appear in the listn content area on the right side.
- imageleftn
- An image to appear in the listn content area on the left side.
Style parameters
[بدل لكود]- bodystyle†
- CSS style/s to apply to the entire template
- titlestyle†
- CSS style/s to apply to titlebar; usually
background:color
. The color of wikilink text must be manually changed using span tags. For example usetitle = [[كشافة|<span style="color:ivory;">Scouting</span>]]
to change the color of the link to ivory. The [show]/[hide] button and the vde link button use the color set in the titlestyle parameter. Here is an example of setting the titlestyle:titlestyle = background:darkgreen;color:ivory;
- abovestyle†
- belowstyle†
- CSS style/s to apply to the above and below parameters, respectively.
- basestyle†
- CSS style/s to apply to the title, above, below, and groupn parameters, all at the same time.
- imagestyle†
- CSS style/s to apply to the image parameter. Does not get applied to the imagen parameters.
- imageleftstyle†
- CSS style/s to apply to the imageleft parameter. Does not get applied to the imageleftn parameters.
- groupstyle†
- CSS style/s to apply to all group heading parameters. Visit this website to get a lighter color similar to the title background color. Example:
groupstyle = background:lightgreen;
- groupnstyle†
- CSS style/s to apply to a specific group heading; overrides any CSS styles set in groupstyle.
- liststyle†
- CSS style/s to apply to all list content parameters.
- listnstyle†
- CSS style/s to apply to specific list content parameters; overrides any CSS styles set in liststyle.
- listpadding†
- Padding to have in each list cell; defaults to 0.25em on the left/right and 0em on the top/bottom.
Microformat parameters
[بدل لكود]- bodyclass†
- This parameter is inserted into the "class" attribute for the infobox as a whole.
- titleclass†
- This parameter is inserted into the "class" attribute for the infobox's title caption.
- See ويكيپيديا:WikiProject Microformats for more information on adding microformat information to Wikipedia, and microformat for more information on microformats in general.
أمتيلا
[بدل لكود]ميتال أساسي
[بدل لكود] {{شريط مركب
|name = University of Michigan
|state = uncollapsed
|title = [[جامعة ميشيغان|<span style="color:#FFD700;">The University of Michigan, Ann Arbor</span>]]
|titlestyle = background:#00008B;color:#FFD700;
|listclass = hlist
|groupstyle = background:#FFD700;color:#00008B;
|image =
|selected = {{{1|}}}
|group1 = [[جامعة ميشيغان]]
|abbr1 = أكاديميون
|list1 =
* [[University of Michigan College of Engineering|College of Engineering]]
* [[كلية الآداب والعلوم والفنون في جامعة ميشيغان]]
* [[Gerald R. Ford School of Public Policy]]
* [[كلية القانون في جامعة ميشيغان]]
* [[مدرسة طب جامعة ميشيغان]]
* {{وإو|كلية روس لإدارة الأعمال|Ross School of Business}}
* [[University of Michigan School of Education|School of Education]]
* [[University of Michigan School of Information|School of Information]]
* [[University of Michigan School of Music, Theatre & Dance|School of Music, Theatre & Dance]]
* [[University of Michigan School of Natural Resources and Environment|School of Natural Resources and Environment]]
* [[كلية الصحة العامة بجامعة ميشيغان]]
* [[Taubman College of Architecture and Urban Planning]]
|group2 = [[Michigan Wolverines|<span style="color:#00008B;">Athletics</span>]]
|abbr2 = athletics
|state2 = uncollapsed
|list2 =
* [[ملعب ميشيغان]]
* [[Crisler Arena]]
* [[Yost Ice Arena]]
* [[Michigan Wolverines]]
* {{وإو|ميشيغان وولفرينز فوتبول|Michigan Wolverines football|نص=Football}}
* [[Michigan – Ohio State football rivalry|UM-OSU Rivalry]]
* [[Little Brown Jug (American football)|Little Brown Jug]]
* [[Paul Bunyan Trophy]]
* [[Cold War (ice hockey)|Cold War]]
|group3 = Campus
|abbr3 = campus
|list3 =
* [[مرصد أنجيل هول]]
* [[Burton Memorial Tower|Burton Tower]]
* [[The Diag]]
* [[David M. Dennison Building|Dennison Building]]
* {{وإو|مكتبة جيرارد فورد الرئاسية|Gerald R. Ford Presidential Library}}
* [[Hill Auditorium]]
* [[Lurie Tower]]
* [[Matthaei Botanical Gardens]]
* [[Michigan Union]]
* [[Museums at the University of Michigan|Museums]]
* [[Nichols Arboretum]]
* [[مدرسة طب جامعة ميشيغان]]
* [[University of Michigan Library|University Library]]
}}
Nesting other Navbox forms
[بدل لكود]This example shows {{شريط}}, {{شريط مركب}} and {{شريط بأعمدة}} all working together. Press the edit button for the section to view the code. Note that each of the child navboxes has the first parameter set to child
موضيل:شريط مركب
Nesting Navboxes to get more groups/lists
[بدل لكود]You can conveniently nest Navboxes, including {{شريط مركب}}, to get an unlimited number of groups/lists. The following example uses one instance of {{شريط مركب}} to get the first 10 collapsible groups, a nested instance to get the next 10, and another nested instance to get the last 6. See the code to learn how it works. It is fairly simple to extend this to as many groups/lists as you like:
شوف تا
[بدل لكود]- {{Collapsible sections option}}
- موضيل:يتوسطه Deprecated; use the
hlist
class.
هاد شّرح لي لفوق تم تضمينو من موضيل:Navbox with collapsible groups/شرح. (عدل | تاريخ) لكتاتبيا يقدرو يجربو تعديلاتهم على لقالب ف صفحات تيران د رملة (صاوب | مراية) و لابو (صاوب). عافاك زيد التصنيفات ف الصفحة لفرعية /شرح. الصفحات لفرعية ديال هاد لقالب. |