Template:Infobox: Difference between revisions

DoggoBit (talk | contribs)
No edit summary
DoggoBit (talk | contribs)
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{infobox/layout
<includeonly><div class="infobox">{{Box
   |color={{{color|var(--color-base)}}}
   |color={{{color|var(--color-base)}}}
   |background={{{background|var(--background-color-neutral-subtle)}}}
   |background=var(--background-color-base)
   |borderColor={{{border|var(--border-color-muted)}}}
   |borderColor={{{borderColor|var(--border-color-muted)}}}
   |clip={{{clip|}}}
   |padding=0
  |title={{{title}}}
  |margin=0 0 1rem 1rem
  |image={{{image}}}
  |extraStyle=overflow-y: hidden;
  |content={{{content}}}
  |{{#tag:div|{{#tag:p|{{{title}}}|class=infobox-title|style=
  |footer={{{footer|}}}
      color: {{{color|var(--color-neutral)}}};
}}
      font-size: 161%;
      font-weight: bold;
      margin-top: 0;
      margin-bottom: 0.5rem;
    }}{{#tag:p|''{{{subtitle}}}''|class=infobox-subtitle|style=
      color: {{{color|var(--color-base)}}};
      margin-top: 0;
    }}
    {{#if:{{{image|}}}|<div class="nix-wiki infobox-image">[[File:{{{image}}}|{{{imageSize|100%}}}]]</div>|}}|class=infobox-header|style=
      padding: {{{padding|0.6rem}}};
      display: flex;
      flex-direction: column;
      align-items: center;
    }}{{#tag:div|{{{content}}}|class=infobox-content|style=
      padding: {{{padding|0.6rem}}};
      background-color: {{{background|var(--background-color-neutral-subtle)}}};
      text-align: left;
      font-size: var(--infobox-content-size);
    }}{{#if:{{{footer|}}}|{{#tag:div|{{{footer}}}|class=infobox-footer|style=
      padding: {{{padding|0.6rem}}};
      background-color: {{{color|var(--color-base)}}};
      color: white;
      font-weight: bold;
      font-size: 90%;
    }}|}}
}}</div></includeonly><noinclude>{{Documentation}}</noinclude>