Template:Navbox: Difference between revisions

From Know Islam
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<!-- Template:Navbox -->
<div class="navbox" style="width:100%; background:#f9f9f9; border:1px solid #aaa;">
<div class="navbox" style="width:100%; background:#f9f9f9; border:1px solid #aaa;">
     <div style="background:#d0d0d0; color:#000; text-align:center; font-weight:bold;">
     <div style="background:#d0d0d0; color:#000; text-align:center; font-weight:bold; padding:5px;">
         {{{title|Title}}}
         {{{title|Title}}}
     </div>
     </div>
     <table style="width:100%; border-collapse:collapse;">
     <table style="width:100%; border-collapse:collapse;">
         {{{content}}}
         {{{content|}}}
     </table>
     </table>
</div>
</div>
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>
{{Navbox
|title=Test Navbox
|content=
{{Navbox/Row
|group=Group 1
|list=* Item 1
* Item 2
}}
{{Navbox/Row
|group=Group 2
|list=* Item A
* Item B
}}
}}

Latest revision as of 20:26, 26 July 2024

Usage

The Navbox template is used to create navigation boxes. These boxes can contain multiple rows with grouped content to help organize and navigate related pages.

Syntax

{{Navbox |title=Navbox Title |content= {{Navbox/Row |group=Group 1 |list=* Item 1 * Item 2 }} {{Navbox/Row |group=Group 2 |list=* Item A * Item B }} }}

Parameters

  • title: The title of the navbox.
  • content: The content of the navbox, usually composed of multiple `Navbox/Row` templates.

Navbox/Row Parameters

  • group: The group header for the row.
  • list: The list of items in the row.

Example


This example will render a navigation box with two groups and their respective lists.

See Also