Template:InfoboxCharacter: Difference between revisions

From SLDF Archive
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
.portable-infobox.pi-theme-person .pi-title {
<infobox theme="person">
     background-color: #005f99;  /* Change to any color, e.g., #ff0000 for red */
  <title source="name">
     color: white;              /* Text color for contrast */
     <default>{{PAGENAME}}</default>
     font-weight: bold;          /* Makes text thick/bold */
  </title>
     font-size: 1.4em;          /* Optional: Larger header text */
  <image source="image">
     padding: 10px;              /* Extra spacing */
     <caption source="caption"/>
     text-align: center;
  </image>
}
  <data source="birth_date">
     <label>Born</label>
  </data>
  <data source="death_date">
     <label>Died</label>
  </data>
  <data source="occupation">
     <label>Occupation</label>
  </data>
  <data source="nationality">
     <label>Nationality</label>
  </data>
</infobox>


/* Optional: Style group/section headers if you add <header> tags later */
<noinclude>
.portable-infobox.pi-theme-person .pi-header {
== Usage ==
     background-color: #0077cc; /* Lighter shade for sections */
{{Infobox person
    color: white;
| name        = Albert Einstein
    font-weight: bold;
| image      = Einstein 1921.jpg
}
| caption     = Einstein in 1921
 
| birth_date = March 14, 1879
/* Optional: Overall infobox tweaks for better look */
| occupation  = Physicist
.portable-infobox.pi-theme-person {
| nationality = German
    border: 2px solid #005f99;
}}
    border-radius: 8px;
}

Revision as of 21:08, 21 December 2025

<infobox theme="person">

 <title source="name">
   <default>InfoboxCharacter</default>
 </title>
 <image source="image">

</image> <label>Born</label> <label>Died</label> <label>Occupation</label> <label>Nationality</label> </infobox>

Usage

Template:Infobox person