Template:Infobox: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ | <includeonly><div class="infobox">{{Box | ||
|color={{{color|var(--color-base)}}} | |color={{{color|var(--color-base)}}} | ||
|background= | |background=var(--background-color-base) | ||
|borderColor={{{ | |borderColor={{{borderColor|var(--border-color-muted)}}} | ||
| | |padding=0 | ||
|margin=0 0 1rem 1rem | |||
|extraStyle=overflow-y: hidden; | |||
|{{#tag:div|{{#tag:p|{{{title}}}|class=infobox-title|style= | |||
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> |
Latest revision as of 16:18, 14 June 2025
Template Documentation [edit source| uses| help]
☶︎
This template documentation needs to be expanded. Provide more information about creating infoboxes. Further information may be found in the related discussion page. Please consult the pedia article metapage for guidelines on contributing.
This template is the basis to all infoboxes. You shouldn't use it by itself, instead import it in a more specific infobox (e.g. {{infobox application}}
). You can either set the content directly or provide the content through a sub-template under /Content
. I.e.:
{{infobox
|title={{{title}}}
|image={{{image}}}
|content={{infobox example/content}}
}}