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

Template:PersonPage: Difference between revisions

Template page
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<div class="biography-container">
<style>
   <!-- Header Section with Cover and Profile -->
/* Reset & Base */
   <div class="bio-header">
.gbi-container * {
    <!-- Cover Image -->
   box-sizing: border-box;
    <img src="{{{cover_image|https://via.placeholder.com/1200x300/667eea/ffffff?text=Cover+Image}}}"
  margin: 0;
        alt="Cover"
  padding: 0;
        class="bio-cover-image">
}
   
 
    <!-- Profile Photo -->
/* Banner Section */
    <img src="{{{profile_image|https://via.placeholder.com/180/764ba2/ffffff?text=Photo}}}"
.gbi-profile-banner {
        alt="{{{name}}}"
   width: 100%;
        class="bio-profile-photo">
  height: 320px;
   
  object-fit: cover;
    <!-- Name and Title Section -->
  display: block;
    <div class="bio-name-section">
  border-radius: 0;
      <h1 class="bio-name">{{{name|Person Name}}}</h1>
}
      <p class="bio-title">{{{title|Professional Title}}}</p>
 
    </div>
/* Profile Header */
   </div>
.gbi-profile-header {
  position: relative;
  margin-top: -80px;
  padding: 0 40px 30px;
  background: linear-gradient(to bottom, transparent 0%, #ffffff 40%);
}
 
.gbi-profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
 
.gbi-name {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 8px;
}
 
.gbi-pronoun {
  font-size: 18px;
  font-weight: 400;
  color: #666;
  margin-left: 8px;
}
 
.gbi-headline {
  font-size: 18px;
  color: #555;
  text-align: center;
  margin-top: 8px;
  font-weight: 400;
}
 
/* Tabs Navigation */
.gbi-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 40px;
  margin-bottom: 32px;
  border-bottom: 2px solid #e5e5e5;
  flex-wrap: wrap;
}
 
.gbi-tab {
   padding: 12px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  margin-bottom: -2px;
}


.gbi-tab:hover {
   <!-- Main Content Area -->
   color: #2563eb;
   <div class="bio-content-wrapper">
  background-color: #f8fafc;
     <!-- Biography Content (Left Side) -->
}
     <div class="bio-main-content">
 
.gbi-tab-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}
 
/* Main Layout */
.gbi-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
   gap: 32px;
  padding: 0 40px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
 
/* Left Column */
.gbi-left {
  min-width: 0;
}
 
.gbi-section {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
 
.gbi-section h2 {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f1f1;
}
 
.gbi-section p,
.gbi-section ul,
.gbi-section div {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
}
 
/* Intro Section */
.gbi-intro {
  font-size: 16px;
  line-height: 1.8;
  color: #1f2937;
  margin-bottom: 24px;
}
 
/* Contact & Social */
.gbi-contact-grid {
  display: grid;
  gap: 12px;
}
 
.gbi-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 14px;
}
 
.gbi-contact-label {
  font-weight: 600;
  color: #4b5563;
  min-width: 80px;
}
 
.gbi-contact-value {
  color: #1f2937;
}
 
.gbi-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
 
.gbi-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s ease;
}
 
.gbi-social-btn:hover {
  background: #1d4ed8;
}
 
/* Photo Gallery */
.gbi-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
 
.gbi-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}
 
.gbi-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
 
/* Right Column - Infobox */
.gbi-right {
  position: sticky;
  top: 20px;
  height: fit-content;
}
 
.gbi-infobox {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
 
.gbi-infobox-header {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}
 
.gbi-infobox-body {
  padding: 0;
}
 
.gbi-infobox-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f1f1;
  gap: 12px;
}
 
.gbi-infobox-row:last-child {
  border-bottom: none;
}
 
.gbi-infobox-label {
  font-weight: 600;
  color: #4b5563;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
 
.gbi-infobox-value {
  color: #1f2937;
  font-size: 14px;
  word-break: break-word;
}
 
/* Media Links */
.gbi-media-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
 
.gbi-media-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 6px;
  text-decoration: none;
  color: #1f2937;
  transition: background 0.3s ease;
  font-size: 14px;
}
 
.gbi-media-link:hover {
  background: #f3f4f6;
}
 
/* Achievements */
.gbi-achievement-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.gbi-achievement-item {
  padding: 16px;
  background: #f0f9ff;
  border-left: 4px solid #2563eb;
  border-radius: 4px;
}
 
.gbi-achievement-title {
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 4px;
}
 
.gbi-achievement-desc {
  font-size: 14px;
  color: #374151;
}
 
/* Responsive Design */
@media (max-width: 1024px) {
  .gbi-layout {
     grid-template-columns: 1fr;
    padding: 0 20px 40px;
  }
 
  .gbi-right {
    position: static;
    order: -1;
  }
 
  .gbi-profile-header {
    padding: 0 20px 30px;
  }
 
  .gbi-tabs {
    padding: 0 20px;
  }
}
 
@media (max-width: 640px) {
  .gbi-profile-banner {
    height: 200px;
  }
 
  .gbi-profile-photo {
    width: 120px;
    height: 120px;
  }
 
  .gbi-name {
    font-size: 24px;
  }
 
  .gbi-headline {
    font-size: 16px;
  }
 
  .gbi-tabs {
    gap: 4px;
  }
 
  .gbi-tab {
    padding: 10px 16px;
    font-size: 14px;
  }
 
  .gbi-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
 
  .gbi-infobox-row {
    grid-template-columns: 1fr;
  }
}
 
/* Tab Content Control */
.gbi-tab-content {
  display: none;
}
 
.gbi-tab-content.active {
  display: block;
}
</style>
 
<script>
// Tab functionality
document.addEventListener('DOMContentLoaded', function() {
  const tabs = document.querySelectorAll('.gbi-tab');
  const sections = document.querySelectorAll('.gbi-section');
 
  tabs.forEach((tab, index) => {
     tab.addEventListener('click', function() {
      // Remove active class from all tabs
      tabs.forEach(t => t.classList.remove('gbi-tab-active'));
        
        
       // Add active class to clicked tab
       <!-- Biography Section -->
      this.classList.add('gbi-tab-active');
       <div class="bio-section">
        
        <h2>Biography</h2>
      // Scroll to corresponding section
        <p>{{{biography_intro|Write a compelling introduction about the person's life and achievements here.}}}</p>
      if (sections[index]) {
       
         sections[index].scrollIntoView({ behavior: 'smooth', block: 'start' });
        <h3>Early Life</h3>
      }
         <p>{{{early_life|Details about early life, education, and formative years.}}}</p>
    });
       
  });
        <h3>Career</h3>
});
        <p>{{{career|Information about their professional journey and major accomplishments.}}}</p>
</script>
       
</noinclude>
        {{#if notable_quote}}
        <div class="bio-quote">
          "{{{notable_quote}}}"
          <span class="bio-quote-author">— {{{quote_author|{{{name}}}}}}</span>
        </div>
        {{/if}}
      </div>


<!-- TEMPLATE CODE -->
      <!-- Achievements Section -->
<div class="gbi-container">
      {{#if achievements}}
      <div class="bio-section">
        <h2>Major Achievements</h2>
        <div class="achievement-tags">
          {{#each achievements}}
          <span class="achievement-tag">{{this}}</span>
          {{/each}}
        </div>
        <p>{{{achievements_description|Description of major achievements and recognition.}}}</p>
      </div>
      {{/if}}


<!-- HERO BANNER -->
      <!-- Timeline Section -->
[[File:{{{banner|globalbanner.jpg}}}|class=gbi-profile-banner|link=]]
      {{#if timeline}}
      <div class="bio-section">
        <h2>Career Timeline</h2>
        <div class="bio-timeline">
          {{#each timeline}}
          <div class="timeline-item">
            <div class="timeline-year">{{year}}</div>
            <div class="timeline-event">{{event}}</div>
          </div>
          {{/each}}
        </div>
      </div>
      {{/if}}


<!-- PROFILE HEADER -->
      <!-- Additional Sections -->
<div class="gbi-profile-header">
      <div class="bio-section">
  [[File:{{{image|globalimage.jpg}}}|class=gbi-profile-photo|link=]]
        <h2>Legacy & Impact</h2>
  <h1 class="gbi-name">
        <p>{{{legacy|Information about their lasting impact and contributions to their field.}}}</p>
    {{{name|Person Name}}} <span class="gbi-pronoun">({{{pronoun|He/Him}}})</span>
      </div>
  </h1>
  <p class="gbi-headline">{{{headline|Professional Title / Tagline}}}</p>
</div>


<!-- TABS -->
      <!-- References Section -->
<div class="gbi-tabs">
      {{#if show_references}}
  <span class="gbi-tab gbi-tab-active">Biography</span>
      <div class="bio-section">
  <span class="gbi-tab">Gallery</span>
        <h2>References</h2>
  <span class="gbi-tab">Contact</span>
        <references />
  <span class="gbi-tab">Social</span>
      </div>
  <span class="gbi-tab">Achievements</span>
      {{/if}}
</div>
     </div>
 
<!-- CONTENT LAYOUT -->
<div class="gbi-layout">
 
<!-- LEFT COLUMN -->
<div class="gbi-left">
 
<!-- SHORT INTRO -->
<div class="gbi-section">
  <div class="gbi-intro">
    {{{intro|A brief introduction about this person goes here. This should be a concise summary highlighting key aspects of their professional background and achievements.}}}
  </div>
</div>
 
<!-- BIOGRAPHY -->
<div class="gbi-section">
  <h2>Biography</h2>
  <div>
    {{{bio|Full biography not added yet. This section will contain the complete professional and personal history of the individual.}}}
  </div>
</div>
 
<!-- PHOTO GALLERY -->
<div class="gbi-section">
  <h2>Photo Gallery</h2>
  <div class="gbi-gallery">
    {{{photo_gallery|<p style="color: #9ca3af; text-align: center; padding: 40px 0;">No photos uploaded yet</p>}}}
  </div>
</div>
 
<!-- CONTACT INFO -->
<div class="gbi-section">
  <h2>Contact Information</h2>
  <div class="gbi-contact-grid">
    {{{contact|<div class="gbi-contact-item"><span class="gbi-contact-label">Email:</span><span class="gbi-contact-value">Not provided</span></div>}}}
  </div>
</div>
 
<!-- SOCIAL MEDIA -->
<div class="gbi-section">
  <h2>Social Media</h2>
  <div class="gbi-social-links">
    {{{social_links|<p style="color: #9ca3af;">No social media links added</p>}}}
  </div>
</div>
 
<!-- MEDIA LINKS -->
<div class="gbi-section">
  <h2>Media & Press</h2>
  <div class="gbi-media-links">
    {{{media_links|<p style="color: #9ca3af;">No media links available</p>}}}
  </div>
</div>
 
<!-- ACHIEVEMENTS -->
<div class="gbi-section">
  <h2>Achievements & Awards</h2>
  <div class="gbi-achievement-list">
     {{{achievements|<p style="color: #9ca3af;">No achievements listed yet</p>}}}
  </div>
</div>
 
</div>


<!-- RIGHT COLUMN - INFOBOX -->
    <!-- Infobox Sidebar (Right Side) -->
<div class="gbi-right">
    <div class="bio-infobox">
  <div class="gbi-infobox">
      <div class="infobox-card">
    <div class="gbi-infobox-header">Quick Info</div>
        <div class="infobox-header">Personal Information</div>
    <div class="gbi-infobox-body">
        <div class="infobox-content">
      <div class="gbi-infobox-row">
         
        <div class="gbi-infobox-label">Birth Date</div>
          {{#if birth_date}}
        <div class="gbi-infobox-value">{{{birth_date|Not specified}}}</div>
          <div class="infobox-row">
      </div>
            <span class="infobox-label">Born</span>
      <div class="gbi-infobox-row">
            <span class="infobox-value">{{{birth_date}}}</span>
        <div class="gbi-infobox-label">Nationality</div>
          </div>
        <div class="gbi-infobox-value">{{{nationality|Not specified}}}</div>
          {{/if}}
      </div>
         
      <div class="gbi-infobox-row">
          {{#if birth_place}}
        <div class="gbi-infobox-label">Occupation</div>
          <div class="infobox-row">
        <div class="gbi-infobox-value">{{{occupation|Not specified}}}</div>
            <span class="infobox-label">Birthplace</span>
      </div>
            <span class="infobox-value">{{{birth_place}}}</span>
      <div class="gbi-infobox-row">
          </div>
        <div class="gbi-infobox-label">Industry</div>
          {{/if}}
        <div class="gbi-infobox-value">{{{industry|Not specified}}}</div>
         
      </div>
          {{#if nationality}}
      <div class="gbi-infobox-row">
          <div class="infobox-row">
        <div class="gbi-infobox-label">Known For</div>
            <span class="infobox-label">Nationality</span>
        <div class="gbi-infobox-value">{{{known_for|Not specified}}}</div>
            <span class="infobox-value">{{{nationality}}}</span>
      </div>
          </div>
      <div class="gbi-infobox-row">
          {{/if}}
        <div class="gbi-infobox-label">Website</div>
         
        <div class="gbi-infobox-value">{{{website|Not provided}}}</div>
          {{#if occupation}}
          <div class="infobox-row">
            <span class="infobox-label">Occupation</span>
            <span class="infobox-value">{{{occupation}}}</span>
          </div>
          {{/if}}
         
          {{#if education}}
          <div class="infobox-row">
            <span class="infobox-label">Education</span>
            <span class="infobox-value">{{{education}}}</span>
          </div>
          {{/if}}
         
          {{#if alma_mater}}
          <div class="infobox-row">
            <span class="infobox-label">Alma Mater</span>
            <span class="infobox-value">{{{alma_mater}}}</span>
          </div>
          {{/if}}
         
          {{#if known_for}}
          <div class="infobox-row">
            <span class="infobox-label">Known for</span>
            <span class="infobox-value">{{{known_for}}}</span>
          </div>
          {{/if}}
         
          {{#if awards}}
          <div class="infobox-row">
            <span class="infobox-label">Awards</span>
            <span class="infobox-value">{{{awards}}}</span>
          </div>
          {{/if}}
         
          {{#if website}}
          <div class="infobox-row">
            <span class="infobox-label">Website</span>
            <span class="infobox-value"><a href="{{{website}}}" target="_blank" rel="noopener">Official Site</a></span>
          </div>
          {{/if}}
         
          {{#if social_media}}
          <div class="infobox-row">
            <span class="infobox-label">Social Media</span>
            <span class="infobox-value">{{{social_media}}}</span>
          </div>
          {{/if}}
         
        </div>
       </div>
       </div>
     </div>
     </div>
Line 527: Line 168:
</div>
</div>


</div>
<!-- Usage Example with Template Parameters -->
 
<!--
</div>
{{Person Biography
|name=Dr. Jane Smith
|title=Renowned Scientist & Innovator
|profile_image=File:JaneSmith.jpg
|cover_image=File:JaneSmithCover.jpg
|birth_date=January 15, 1975
|birth_place=San Francisco, California, USA
|nationality=American
|occupation=Physicist, Author, Speaker
|education=Ph.D. in Theoretical Physics
|alma_mater=MIT, Stanford University
|known_for=Quantum Computing Research
|awards=Nobel Prize in Physics (2020), Fields Medal
|website=https://janesmith.com
|biography_intro=Dr. Jane Smith is a pioneering physicist whose groundbreaking work in quantum computing has revolutionized the field...
|early_life=Born in San Francisco, Jane showed an early aptitude for mathematics and science...
|career=After completing her doctorate at MIT, Dr. Smith joined Stanford's research team...
|notable_quote=Science is not just about discovery, it's about asking the right questions.
|quote_author=Dr. Jane Smith
|achievements=Nobel Prize Winner,Quantum Computing Pioneer,Published Author,TED Speaker
|achievements_description=Dr. Smith has received numerous accolades throughout her career...
|legacy=Her contributions to quantum computing continue to influence researchers worldwide...
|show_references=yes
}}
-->

Latest revision as of 16:12, 25 November 2025

   <img src="https://via.placeholder.com/1200x300/667eea/ffffff?text=Cover+Image" 
        alt="Cover" 
        class="bio-cover-image">
   
   <img src="https://via.placeholder.com/180/764ba2/ffffff?text=Photo" 
        alt="{{{name}}}" 
        class="bio-profile-photo">
   

Person Name

Professional Title

Biography

Write a compelling introduction about the person's life and achievements here.

Early Life

Details about early life, education, and formative years.

Career

Information about their professional journey and major accomplishments.

       {{#if notable_quote}}
         "{{{notable_quote}}}"
         — {{{name}}}
       Template:PersonPage/if
     {{#if achievements}}

Major Achievements

         {{#each achievements}}
         Template:This
         Template:PersonPage/each

Description of major achievements and recognition.

     Template:PersonPage/if
     {{#if timeline}}

Career Timeline

     Template:PersonPage/if

Legacy & Impact

Information about their lasting impact and contributions to their field.

     {{#if show_references}}

References

       <references />
     Template:PersonPage/if
Personal Information
         {{#if birth_date}}
           Born
           {{{birth_date}}}
         Template:PersonPage/if
         
         {{#if birth_place}}
           Birthplace
           {{{birth_place}}}
         Template:PersonPage/if
         
         {{#if nationality}}
           Nationality
           {{{nationality}}}
         Template:PersonPage/if
         
         {{#if occupation}}
           Occupation
           {{{occupation}}}
         Template:PersonPage/if
         
         {{#if education}}
           Education
           {{{education}}}
         Template:PersonPage/if
         
         {{#if alma_mater}}
           Alma Mater
           {{{alma_mater}}}
         Template:PersonPage/if
         
         {{#if known_for}}
           Known for
           {{{known_for}}}
         Template:PersonPage/if
         
         {{#if awards}}
           Awards
           {{{awards}}}
         Template:PersonPage/if
         
         {{#if website}}
           Website
           <a href="{{{website}}}" target="_blank" rel="noopener">Official Site</a>
         Template:PersonPage/if
         
         {{#if social_media}}
           Social Media
           {{{social_media}}}
         Template:PersonPage/if