Difference between revisions of "Template:Infobox/themes/style"
From Twinsuniverse
< Template:Infobox | themes
J McKalling (Talk | contribs) m |
J McKalling (Talk | contribs) |
||
Line 4: | Line 4: | ||
|data=border-color:{{{b|#ccc}}}; | |data=border-color:{{{b|#ccc}}}; | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
− | This template produces | + | This template produces one of three styles for particular <nowiki>{{</nowiki>[[Template:infobox/themes|infobox/themes]]<nowiki>}}</nowiki>, 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 '''b'''order colour | ||
+ | * '''bg''': The main '''b'''ack'''g'''round colour | ||
+ | * '''bgh''': The '''b'''ack'''g'''round colour of '''h'''eaders | ||
+ | * '''txt''': The '''t'''e'''xt''' 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 | + | |
+ | This template would then output style for either of the following parameters for the <nowiki>{{</nowiki>[[Template:Infobox/core|Infobox/core]]<nowiki>}}</nowiki> template: | ||
* '''mainstyle''': The theme style for the infobox' main table | * '''mainstyle''': The theme style for the infobox' main table | ||
− | * '''headstyle''': The theme style for the infobox' | + | * '''headstyle''': The theme style for the infobox' headers (title, subtitle, headings) |
* '''datastyle''': The theme style for the infobox' plain data cells | * '''datastyle''': The theme style for the infobox' plain data cells | ||
− | |||
− | |||
− | |||
− | |||
− | |||
==Syntax== | ==Syntax== | ||
Line 34: | Line 28: | ||
|bgh= | |bgh= | ||
|txt= | |txt= | ||
− | |||
}}</nowiki> | }}</nowiki> | ||
Line 43: | Line 36: | ||
|bgh=#ababab | |bgh=#ababab | ||
|txt=rgb(50,60,70) | |txt=rgb(50,60,70) | ||
− | |||
}}</nowiki> | }}</nowiki> | ||
− | The | + | The output would be pure CSS, acceptable for the HTML '''style''' attribute. |
[[Category:System Templates]] | [[Category:System Templates]] | ||
− | |||
</noinclude> | </noinclude> |
Revision as of 21:00, 9 January 2013
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.