Template:Infobox: Difference between revisions

No edit summary
m 1 revision imported
 
(11 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|}}}|
<!-- Title -->
        <div class="infobox-image">[[File:{{{image}}}|300px]]</div>
<div style="font-size:140%; font-weight:bold; text-align:center; margin-bottom:6px;">
    }}
  {{{title|{{PAGENAME}}}}}
</div>


    <table class="infobox-table">
<!-- Image -->
        {{#if:{{{param1|}}}|<tr><th>Parameter 1</th><td>{{{param1}}}</td></tr>}}
<div style="text-align:center; margin:6px 0;">
        {{#if:{{{param2|}}}|<tr><th>Parameter 2</th><td>{{{param2}}}</td></tr>}}
  {{#if:{{{image|}}}|
        {{#if:{{{param3|}}}|<tr><th>Parameter 3</th><td>{{{param3}}}</td></tr>}}
    [[File:{{{image}}}|250px|center]]
        {{#if:{{{param4|}}}|<tr><th>Parameter 4</th><td>{{{param4}}}</td></tr>}}
  }}
        {{#if:{{{param5|}}}|<tr><th>Parameter 5</th><td>{{{param5}}}</td></tr>}}
  <div style="font-size:85%; color:#555;">
    </table>
    {{{image_desc|}}}
  </div>
</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>