Template:Infobox: Difference between revisions

No edit summary
Tag: Reverted
m 1 revision imported
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">
<div class="infobox" style="width:300px; border:1px solid #aaa; padding:8px; background:#f9f9f9; float:right; clear:right;">
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
 
<div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|300px]]</div>}}
<!-- Title -->
<table class="infobox-table">{{if:{{{param1|}}}|<tr>
<div style="font-size:140%; font-weight:bold; text-align:center; margin-bottom:6px;">
    <th>Parameter 1</th>
  {{{title|{{PAGENAME}}}}}
    <td>{{{param1}}}</td>
</tr>}}{{if:{{{param2|}}}|<tr>
    <th>Parameter 2</th>
    <td>{{{param2}}}</td>
</tr>}}{{if:{{{param3|}}}|<tr>
    <th>Parameter 3</th>
    <td>{{{param3}}}</td>
</tr>}}{{if:{{{param4|}}}|<tr>
    <th>Parameter 4</th>
    <td>{{{param4}}}</td>
</tr>}}{{if:{{{param5|}}}|<tr>
    <th>Parameter 5</th>
    <td>{{{param5}}}</td>
</tr>}}</table>
</div>
</div>
<!-- Image -->
<div style="text-align:center; margin:6px 0;">
  {{#if:{{{image|}}}|
    [[File:{{{image}}}|250px|center]]
  }}
  <div style="font-size:85%; color:#555;">
    {{{image_desc|}}}
  </div>
</div>
<!-- Section Header -->
<div style="font-weight:bold; font-size:120%; margin-top:10px; border-bottom:1px solid #ccc;">
  General Information
</div>
<!-- Fields -->
<div style="margin-top:6px;">
  <b>Full Name:</b> {{{fullname|}}}<br />
  <b>Pronouns:</b> {{{pronouns|}}}<br />
  <b>Born:</b> {{{born|}}}<br />
  <b>Nationality:</b> {{{nationality|}}}<br />
  <b>Profession:</b> {{{profession|}}}<br />
  <b>Works:</b> {{{works|}}}<br />
</div>
</div>
<noinclude>
== Template Parameters ==
This template supports the following parameters:
;title
:Page title to display. Defaults to the page's name.
;image
:Filename of an image (without File:).
;image_desc
:Caption or description of the image.
;fullname
:Character’s or person’s full name.
;pronouns
:Preferred pronouns.
;born
:Birth date or era.
;nationality
:Country, species, or origin.
;profession
:Main role or occupation.
;works
:Major creations, publications, or notable work.
<templatedata>
{
"description": "Standard infobox for character or person pages.",
"params": {
"title": {
"label": "Title",
"description": "Title shown at the top of the infobox.",
"type": "string"
},
"image": {
"label": "Image",
"description": "Filename of an image (without the File: prefix).",
"type": "string"
},
"image_desc": {
"label": "Image Description",
"description": "Description or caption of the image.",
"type": "string"
},
"fullname": {
"label": "Full Name",
"description": "Complete name of the character or person.",
"type": "string"
},
"pronouns": {
"label": "Pronouns",
"description": "Preferred pronouns.",
"type": "string"
},
"born": {
"label": "Born",
"description": "Birth date or era.",
"type": "string"
},
"nationality": {
"label": "Nationality",
"description": "Country, species, or origin.",
"type": "string"
},
"profession": {
"label": "Profession",
"description": "Occupation or role.",
"type": "string"
},
"works": {
"label": "Works",
"description": "Notable works, creations, or publications.",
"type": "string"
}
}
}
</templatedata>
</noinclude>