FANDOM


OverviewIcon(White) Overview




[edit] Template-info Template documentation
Transparent
Ambox content
This template is deprecated. Please use {{Tabs vehicle}} instead.
Description

This template can be used as it is to display tabs in the subpages of a car article in the Asphalt Series, but it's recommended to create another template to easily modify it for other usage if necessary.

Dependencies

This template uses {{!}}. To fix a color visualization problem in monobook this CSS code should be added:

table, abbr, acronym, .explain {
	color:inherit;
	background-color:inherit;
}

(just the table is enough)

Syntax
{{Car ParentTab
| base          = 
| StatsTab      = 
| UpgradesTab   = 
| ColorTab      = 
| DecalsTab     = 
| GalleryTab    = 
| MiscTab       = 
}}
Parameters

All parameters, except base, are optional.

  • base - this optional parameter allows a different base pagename to be selected. For example, the pagename Dodge Dart GT (or any other car pagename) can be used as the base page for subpages. Subpages are named in a specific way - base pagename\tab name. Since the tabs are all named, the only variable left (variable = changes depending on page) is the base. Every car page that uses this template must have the base = pagename (as seen with the above example using the Dart GT), or else the the subpage names will be wrong.
  • StatsTab - The second defined tab. It is a variable, but the name can not be changed. It is a parameter because you can choose whether to display the tab or not. Enter any text into the parameter (a simple one being Y, which means Yes) and the tab will be displayed. If you do not include this parameter when using the template, the tab will not be displayed.
  • UpgradesTab - Same as above. The name can not be changed and you enter text to display the tab (or do not include the parameter to not display the tab).
  • ColorTab - Same as above. The name can not be changed and you enter text to display the tab (or do not include the parameter to not display the tab). This is because not all cars have use for certain tabs.
  • DecalsTab - Same as above. The name can not be changed and you enter text to display the tab (or do not include the parameter to not display the tab). This is because not all cars have use for certain tabs (such as no decals for the car in the Asphalt Series).
  • GalleryTab - Same as above. The name can not be changed and you enter text to display the tab (or do not include the parameter to not display the tab). This is because not all cars have use for certain tabs (such as the no images for gallery).
  • MiscTab - Same as above. The name can not be changed and you enter text to display the tab (or do not include the parameter to not display the tab). This is because not all cars have use for certain tabs (such as no miscellaneous information to be included).
Basic Codes
  • backcolor - background color of active tab; default: #DDDDDD;
  • altbackcolor - background color of inactive tabs; default: transparent;
  • textcolor - text color of the active tab; default: black;
  • alttextcolor - text color of the inactive tab; default: default text link color;
  • bordercolor - border color of every tab; default: gray;
  • activeborder - border color of the active tab; default: the same as bordercolor;
  • borderradius - border radius of every tab; default: 4;
  • font-size - the text size.
  • height - height of tabs, in em; default: 3.8em;
  • minwidth - min. width of tabs, in em; default: 5.0em;
  • maxwidth - max. width of tabs, in em; default: 12.0em;
Functions
  • #if -
    {{#if:{{{1|}}}|You entered text in variable 1|There is no text in variable 1}}
  • #ifeq -
Samples

This one displays all tabs and uses the page HTT Pléthore LC 750 as base.

{{Car ParentTab
| base          = HTT Pléthore LC 750
| StatsTab      = Y
| UpgradesTab   = Y
| ColorTab      = Y
| DecalsTab     = Y
| GalleryTab    = Y
| MiscTab       = Y
}}
gives:


This one displays only some tabs and uses the page Ford 2006 GT as base. Please see if you can identify which tabs are not used.

{{Car ParentTab
| base          = Ford 2006 GT
| StatsTab      = Y
| ColorTab      = Y
| DecalsTab     = Y
| MiscTab       = Y
}}
gives:


Images
  • Images used in the Template can be found in this category page.
See Also

- Category:Tab Templates.

Community content is available under CC-BY-SA unless otherwise noted.