Template:Infobox start: Difference between revisions

Template page
(move table outer style css to MediaWiki:Common.css to allow more skin compatibility)
m (dark mode support (do not hardcode colours))
Line 3: Line 3:
* name
* name
* image (default none)
* image (default none)
* headercolor (default #cccccc)
* darkheader (set to 1 if the background is dark. header text will be white. default 0)
* description
* description
</noinclude><includeonly>
</noinclude><includeonly>
{| cellpadding="3" cellspacing="0" class="t-infobox"
{| cellpadding="3" cellspacing="0" class="t-infobox"
! colspan="2" style="text-align: center; border-bottom: 1px solid #aaaaaa; background-color: {{{headercolor|#cccccc}}}; color: {{#ifeq: {{{darkheader|}}} | 1 | white | black}}" <!--
! colspan="2" style="text-align: center; border-bottom: 1px solid #aaaaaa;" <!--
     --> | <big>{{{name}}}</big>
     --> | <big>{{{name}}}</big>
{{ifnotempty|1={{{image|}}}|2={{!-}}
{{ifnotempty|1={{{image|}}}|2={{!-}}

Revision as of 21:16, 19 April 2024

parameters:

  • name
  • image (default none)
  • description