Templat:Navbox/bak pasir
| ||||||||||||||||||||||||||||||||||
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).
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Dokumentasi di atas ditransklusikan dari Templat:Navbox/bak pasir/doc. (sunting | versi terdahulu) Penyunting dapat melakukan uji coba pada halaman bak pasir (buat | cermin) dan kasus uji (buat) templat ini. Mohon tambahkan kategori pada subhalaman /doc. Subhalaman templat ini. |