Template:Infobox/themes/style

From Twinsuniverse
Jump to: navigation, search

This template produces one of three styles for particular {{infobox/themes}}, in the form of CSS.

Parameters

This template uses abbreviated parameter names, to allow for short single lines when calling this template repetitively.

  • b: The border colour
  • bg: The main background colour
  • bgh: The background colour of headers
  • txt: The text colour in headers


Note: The colours may be in any CSS accepted format, that is #RGB, #RRGGBB, rgb(xxx,xxx,xxx) or string literal.


This template would then output style for either of the following parameters for the {{Infobox/core}} template:

  • mainstyle: The theme style for the infobox' main table
  • headstyle: The theme style for the infobox' headers (title, subtitle, headings)
  • datastyle: The theme style for the infobox' plain data cells

Syntax

{{safesubst:Infobox/theme
 |b=
 |bg=
 |bgh=
 |txt=
}}

Example

{{safesubst:Infobox/theme
 |b=red
 |bg=#efe
 |bgh=#ababab
 |txt=rgb(50,60,70)
}}

The output would be pure CSS, acceptable for the HTML style attribute.