Templat:Navbox with collapsible groups/doc: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
k bot Membuang: ckb:داڕێژە:RNavbox with collapsible groups (strong connection between (2) id:Templat:Navbox with collapsible groups and ckb:داڕێژە:Navbox with collapsible groups) |
k Robot: Perubahan kosmetika |
||
Baris 5:
== Usage ==
Please remove the parameters that are left blank. The template currently supports up to 10 groups/lists but more can be added if needed.
<pre>{{Navbox with collapsible groups
Baris 33:
== Parameters ==
This template shares many common parameters with its sister templates {{t1|Navbox}} and {{t1|Navbox with columns}}.
=== Setup parameters ===
:;name<sup>†</sup>
::The name of the template. The name of this template, for example, is "Navbox with collapsible groups".
:; ''state''<sup>†</sup> <span style="font-weight:normal;">[<code>autocollapse, uncollapsed, collapsed, plain, off</code>]</span>
::The initial state of the show/hide feature for the main title.
:;''navbar''<sup>†</sup>
::Possible values are <code>plain</code>, <code>off</code>, and the default value of blank.
:;''border''<sup>†</sup>
::Possible values are <code>child</code>, <code>none</code>, and the default value of blank.
=== Basic data parameters ===
:;'''''title'''''<sup>†</sup>
::The title of the template, displayed centered in the titlebar at the top of the template.
Baris 64:
::Text or other elements to appear below the groups/lists.
=== Group/list parameters ===
:; ''group<sub>n</sub>''<sup>†</sup>
:: The title of each section.
:; ''list<sub>n</sub>''<sup>†</sup>
:: The content/wikilinks that will be shown in the group. Use dots or bullets as separators (see the [[#See also|See also]] section).
:; ''abbr<sub>n</sub>''
:: This is the abbreviation of the group.
:; ''selected''
:: If the value of <code>selected</code> equals the value of <code>abbr<sub>n</sub></code>, then list<sub>n</sub> is uncollapsed and all other lists are collapsed.
:: The collapsed/uncollapsed options can be listed on the template's page by using the {{tl|Collapsible sections option}} template in the <nowiki><noinclude></nowiki> part of the page.
:; ''state<sub>n</sub>'' <span style="font-weight:normal;">[<code>autocollapse, uncollapsed, collapsed, plain, off</code>]</span>
:: The initial collapsible state of list<sub>n</sub>.
:; ''image<sub>n</sub>''
Baris 88:
:: An image to appear in the list<sub>n</sub> content area on the left side.
=== Style parameters ===
:;''bodystyle''<sup>†</sup>
::CSS style/s to apply to the entire template
:;''titlestyle''<sup>†</sup>
::[[Wikipedia:CSS|CSS]] style/s to apply to titlebar; usually <code>background:''color''</code>.
:::<code>titlestyle = background:darkgreen;color:ivory;</code>
Baris 104:
:;''imagestyle''<sup>†</sup>
::CSS style/s to apply to the ''image'' parameter.
:;''imageleftstyle''<sup>†</sup>
::CSS style/s to apply to the ''imageleft'' parameter.
:; ''groupstyle''<sup>†</sup>
:: CSS style/s to apply to all group heading parameters.
:::<code>groupstyle = background:lightgreen;</code>
Baris 125:
:: Padding to have in each list cell; defaults to 0.25em on the left/right and 0em on the top/bottom.
=== Microformat parameters ===
:; ''bodyclass''<sup>†</sup>
:: This parameter is inserted into the "class" attribute for the infobox as a whole.
Baris 135:
== Examples ==
=== Basic example ===
<pre style="overflow:scroll;">
{{Navbox with collapsible groups
Baris 183:
}}
=== Nesting other Navbox forms ===
This example shows {{t1|Navbox}}, {{t1|Navbox with collapsible groups}} and {{t1|Navbox with columns}} all working together.
{{Navbox with collapsible groups
|name = Navbox with collapsible groups
Baris 270:
}}
=== Nesting Navboxes to get more groups/lists ===
You can conveniently nest Navboxes, including {{t1|Navbox with collapsible groups}}, to get an unlimited number of groups/lists.
{{Navbox with collapsible groups
|