Template:TabRow: Difference between revisions

From retromux
Jump to navigation Jump to search
Initial Create
 
m →‎Themes: Removing 'queen' theme.
 
Line 17: Line 17:
=== Themes ===
=== Themes ===
There are currently 4 themes for your tabs (they are case-sensitive!):
There are currently 4 themes for your tabs (they are case-sensitive!):
* queen
* skyline
* skyline
* headline
* headline

Latest revision as of 21:07, 10 August 2024


This template creates a row of Template:Tabs. These tabs can be clicked, which will then display the respective Template:TabPanel.

Usage

The TabRow uses the following syntax:

{{TabRow |<Tab1Name>|<Tab2Name>|...<TabNName>|name=<name>|theme=<theme>}}

The <name> field gives the TabRow a name to help with styling. Give each tab a name via <Tab1Name>, <Tab2Name>, etc, up to <Tab10Name>. From there, add your Template:TabPanels to the page. Note: the name field of each Template:TabPanel must match the names of the tabs given to your TabRow, and the CASE-SENSITIVE.

Themes

There are currently 4 themes for your tabs (they are case-sensitive!):

  • skyline
  • headline
  • vintage

They've been styled to fit into the Template:LokiCharPage with the same theme names.

Example

{{TabRow |Homid|Glabro|Crinos|Hispo|Lupus|name=forms|theme=vintage}}
{{TabPanel
|row=forms
|name=Homid
| This is a pretty neat guy
}}
{{TabPanel
|row=forms
|name=Glabro
| This is a pretty neat guy in Glabro!
}}
{{TabPanel
|row=forms
|name=Crinos
| Oh noes! Warform!
}}{{TabPanel
|row=forms
|name=Hispo
| Pet the pretty dire wolf, it'll be fine!
}}{{TabPanel
|row=forms
|name=Lupus
| Woof Woof, I am wolf.
}}

This will create a 5-panel TabRow, as seen here (click on one of the links to see it in action!):


This is a pretty neat guy
This is a pretty neat guy in Glabro!
Oh noes! Warform!
Pet the pretty dire wolf, it'll be fine!
Woof Woof, I am wolf.