Lompat ke isi

Templat:Navbox/bak pasir

Dari Wiki Javasatu
[lihat] [sunting] [riwayat] [hapus singgahan] Ikon dokumentasi Dokumentasi templat


Penggunaan

[sunting sumber]

No image

[sunting sumber]

<syntaxhighlight lang="moin" style="overflow: auto;">

</syntaxhighlight>


With image, without groups

[sunting sumber]

<syntaxhighlight lang="moin" style="overflow: auto;">

</syntaxhighlight>


With two images, without groups, multiple lists

[sunting sumber]

<syntaxhighlight lang="moin" style="overflow: auto;">

</syntaxhighlight>


With image, groups, above, below

[sunting sumber]

<syntaxhighlight lang="moin" style="overflow: auto;">

</syntaxhighlight>


Child navboxes

[sunting sumber]


It is possible to place multiple navboxes within a single border by using "child" as the first parameter, or by setting the border parameter. The basic code for doing this is as follows (which adds a subgroup for the first group/list area):

 {{Navbox/bak pasir
| name = {{subst:PAGENAME}}
| title = Title

| group1 = [optional]
| list1  =  {{Navbox/bak pasir|child
   ...child navbox parameters...
 }}

...
}}

Subgroups example

[sunting sumber]

This example shows two subgroups created using child as the first unnamed parameter. The striping is alternated automatically. To remove the striping altogether, you can set liststyle = background:transparent; in each of the navboxes.


Multiple show/hides in a single container

[sunting sumber]

The example below is generated using a regular navbox for the main container, then its list1, list2, and list3 parameters each contain another navbox, with 1 = child set. The view (v), discuss (d), edit (e) navbar links are hidden using navbar = plain for each of them, or could be suppressed by just leaving out the name parameter (child navboxes do not require the name parameter to be set, unlike regular navboxes).