Template:Tab

From OpenStreetMap Wiki
Jump to navigation Jump to search
Tab
[Edit] [Purge] Template-info.svg Template documentation

Usage

This template can be used to add a tab bar over each of a set of pages. For example, you can split a long page about a city up into several subpages, then connect these subpages using tabs. An example can be found at the page DE:Aachen.

Usage

Use the TabBar template at the beginning of the page. For each tab, use the Tab template with the page title as the first parameter and the tab label as the second parameter. The second parameter is optional; if it is omitted, the page title will be used as the tab label.

Example

Wiki source code:

{{TabBar|edit=Template:TabBar/doc|
  {{Tab|DE:Aachen|Info}}
  {{Tab|DE:Aachen Community|Community}}
  {{Tab|DE:Aachen ToDo|ToDo}}
  {{Tab|DE:Aachen Status|Status}}
  {{Tab|DE:Aachen Hinweise|Hinweise}}
}}
Page content starts here...
|}

This is rendered like this:

Info Community ToDo Status Hinweise

Page content starts here...

For smaller tabs, you can do

{{TabBar|
  {{Tab Small|DE:Aachen|Info}}
  {{Tab Small|DE:Aachen Community|Community}}
  {{Tab Small|DE:Aachen ToDo|ToDo}}
  {{Tab Small|DE:Aachen Status|Status}}
  {{Tab Small|DE:Aachen Hinweise|Hinweise}}
}}
Page content starts here...
|}

This is rendered like this:

Info Community ToDo Status Hinweise

Page content starts here...

See also