Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Character Infobox: Difference between revisions

Template page
Created page with "<includeonly> {| class="infobox" style="float:right; clear:right; margin:0 0 1em 1em; width:22em; text-align:left; font-size:88%; line-height:1.5em;" |- ! colspan="2" style="text-align:center; background:#cee0f2; font-size:1.1em;" | {{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}} {{#if:{{{image|}}} | |- | colspan="2" style="text-align:center;" | [[File:{{{image}}}|{{{image_size|250px}}}]] {{#if:{{{caption|}}} | <br><small>{{{caption}}}</small> }} }} |- ! colspan="2" sty..."
 
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<table class="infobox">
{| class="infobox" style="float:right; clear:right; margin:0 0 1em 1em;
  <caption>{{{name|Unnamed Character}}}</caption>
  width:22em; text-align:left; font-size:88%; line-height:1.5em;"
  <tr>
|-
    <td>{{{#if:{{{image|}}}|[[File:{{{image|}}}|250px|center]]|''No image''}}}</td>
! colspan="2" style="text-align:center; background:#cee0f2; font-size:1.1em;" |
  </tr>
{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}
</table>
{{#if:{{{image|}}} |
|-
| colspan="2" style="text-align:center;" |
[[File:{{{image}}}|{{{image_size|250px}}}]]
{{#if:{{{caption|}}} |
<br><small>{{{caption}}}</small> }}
}}
|-
! colspan="2" style="background:#ddf; text-align:center;" | Personal details
{{#if:{{{born|}}} |
|-
! Born
| {{{born}}}
}}
{{#if:{{{died|}}} |
|-
! Died
| {{{died}}}
}}
{{#if:{{{nationality|}}} |
|-
! Nationality
| {{{nationality}}}
}}
{{#if:{{{occupation|}}} |
|-
! Occupation
| {{{occupation}}}
}}
{{#if:{{{known_for|}}} |
|-
! Known for
| {{{known_for}}}
}}
|}
</includeonly>
<noinclude>
<noinclude>
== Usage ==
<templatedata>
<pre>
{
{{Infobox
"description": "Infobox for a character",
| title      =
"params": {
| image      =
"name": {
| image_size =
"label": "Character Name",
| caption    =
"type": "string",
| born      =
"required": true,
| died      =
"description": "Full name of the character"
| nationality =
},
| occupation  =
"image": {
| known_for  =
"label": "Image",
}}
"type": "wiki-file-name",
</pre>
"required": false,
"description": "Image of the character"
}
}
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 14:51, 26 June 2026

Unnamed Character
[[File:|250px|center]]

Infobox for a character

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Character Namename

Full name of the character

Stringrequired
Imageimage

Image of the character

Fileoptional