Template:Navbox

From OpenTTD
Jump to: navigation, search



NavBox

Can be used to create navigation tables.


List of links Example

{{Navbox

|navbar = off
|state = off      

|name  = Name 
|title = List of links
|list1  =  {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
}}

Grouped Links Example

{{Navbox

|navbar = off
|state = off      

|name  = Name 
|title = Grouped Links 

|group1 = group 1
|list1  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}

|group2 = group 2
|list2  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
}}

Sub Grouped list of links Example

{{Navbox

|navbar = off
|state = off      

|name  = Name 
|title = Sub Grouped list of links

|group1 = group 1
|list1  =  {{Navbox subgroup
            |group1 = Sub 1
            |list1  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}

            |group2 = Sub 2
            |list2  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
           }}

|group2 = group 2
|list2  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}
}}

Some more options

{{Navbox

|navbar = off
|state = off      

|name  = Name 
|title = Shown Title 

|above = more caption/links

|group1 = Name
|list1  =  {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}

|group2 = Name
|list2  = {{nowrap begin}} Item 1 {{·w}} Item 2 {{·w}} Item 3 {{nowrap end}}

|below = more caption/links
}}

etc...

Personal tools