Template:Header: Difference between revisions
JoshGroban (talk | contribs) (Created page with "<h2 style="max-width:100%;background: {{{2|var(--accent1)}}};color:var(--content-background-color);text-align:center;font-weight:bold;border: 7px double var(--content-background-color);padding:5px;margin:10px 0">{{{1}}}</h2>") |
mediawiki>VesnaTheRussianWarcriminal (Created page with "<div align="left" style="border:solid 1px black; width:97%; box-shadow: rgb(1,1,0,0.5) 0px 5px 20px; border-radius: 10px; {{#if:{{{background-image|}}}|background-image: {{{background-image}}};|background-color: {{{background-color|#85886e}}};}}"> <div style="{{#if:{{{background-image|}}}|background-color:{{{background-color|#000000}}}; background-opacity: 50%;}} color: {{{text-color|#000000}}}; --link-color: {{{link-color|inherit}}}; font-size: 30px;>'''{{{1|Your text h...") |
||
| Line 1: | Line 1: | ||
< | <div align="left" style="border:solid 1px black; width:97%; box-shadow: rgb(1,1,0,0.5) 0px 5px 20px; border-radius: 10px; {{#if:{{{background-image|}}}|background-image: {{{background-image}}};|background-color: {{{background-color|#85886e}}};}}"> | ||
<div style="{{#if:{{{background-image|}}}|background-color:{{{background-color|#000000}}}; background-opacity: 50%;}} color: {{{text-color|#000000}}}; --link-color: {{{link-color|inherit}}}; font-size: 30px;>'''{{{1|Your text here}}}'''</div> | |||
</div><hr> | |||
<noinclude> | |||
[[Category:Header Templates]] | |||
{{Documentation}} | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Title", | |||
"required": true | |||
}, | |||
"background-color": { | |||
"aliases": [ | |||
"background", | |||
"bg", | |||
"background-colour" | |||
], | |||
"suggested": true | |||
}, | |||
"text-color": { | |||
"aliases": [ | |||
"text-colour" | |||
], | |||
"suggested": true | |||
}, | |||
"link-color": { | |||
"aliases": [ | |||
"link-colour" | |||
], | |||
"suggested": true | |||
}, | |||
"background-image": { | |||
"aliases": [ | |||
"background-img", | |||
"bg-img" | |||
], | |||
"description": "If a value is provided, background-color becomes the overlay colour on this image.", | |||
"suggested": true | |||
} | |||
}, | |||
"paramOrder": [ | |||
"1", | |||
"background-color", | |||
"background-image", | |||
"text-color", | |||
"link-color" | |||
] | |||
}</templatedata> | |||
</noinclude> | |||
Revision as of 06:44, 19 March 2026
Description
To use this template, add the Template:T template and fill in the appropriate fields. Fields left blank will not appear in articles. This infobox template uses Fandom's infobox syntax.
Syntax
{{Character
| name =
| image =
| imagecaption =
| aliases =
| relatives =
| affiliation =
| occupation =
| marital =
| birthDate =
| birthPlace =
| deathDate =
| deathPlace =
| species =
| gender =
| height =
| weight =
| eyes =
| portrayedby =
| appearsin =
| debut =
}}
Sample output
| {{{Name}}} | |
|---|---|
{{Character
| name = Flowa
| image = Example.jpg
| imagecaption = Flowa, at rest
| aliases = Flo
| relatives =
| affiliation =
| occupation =
| marital =
| birthDate = July 21st, 2013
| birthPlace = Iowa
| deathDate =
| deathPlace =
| species = Plant
| gender =
| height =
| weight =
| eyes =
| portrayedby =
| appearsin =
| debut =
}}
<templatedata> { "params": { "1": { "label": "Title", "required": true }, "background-color": { "aliases": [ "background", "bg", "background-colour" ], "suggested": true }, "text-color": { "aliases": [ "text-colour" ], "suggested": true }, "link-color": { "aliases": [ "link-colour" ], "suggested": true }, "background-image": { "aliases": [ "background-img", "bg-img" ], "description": "If a value is provided, background-color becomes the overlay colour on this image.", "suggested": true } }, "paramOrder": [ "1", "background-color", "background-image", "text-color", "link-color" ] }</templatedata>