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

Template:Infobox: Difference between revisions

Template page
No edit summary
No edit summary
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="leather-infobox">
<{{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Category:Infobox templates|{{remove first word|{{SUBPAGENAME}}}}]]}}}}|}}</includeonly><noinclude>
  <div class="leather-infobox-title">{{{title|Infobox}}}</div>
{{documentation}}
  <div class="leather-infobox-content">
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
    <!-- Image Section -->
    {{#if: {{{image|}}} |
      <div class="leather-infobox-image">
        [[File:{{{image}}}|250px|alt={{{image_alt}}}|{{{image_caption}}}]]
      </div>
    }}
 
    <!-- Name Section -->
    {{#if: {{{name|}}} |  
      <div class="leather-infobox-section">
        <div class="leather-infobox-label">Name</div>
        <div class="leather-infobox-value">{{{name}}}</div>
      </div>
    }}
 
    <!-- Birth Date Section -->
    {{#if: {{{birth_date|}}} |  
      <div class="leather-infobox-section">
        <div class="leather-infobox-label">Date of Birth</div>
        <div class="leather-infobox-value">{{{birth_date}}}</div>
      </div>
    }}
 
    <!-- Occupation Section -->
    {{#if: {{{occupation|}}} |  
      <div class="leather-infobox-section">
        <div class="leather-infobox-label">Occupation</div>
        <div class="leather-infobox-value">{{{occupation}}}</div>
      </div>
    }}
 
    <!-- Known For Section -->
    {{#if: {{{known_for|}}} |  
      <div class="leather-infobox-section">
        <div class="leather-infobox-label">Known For</div>
        <div class="leather-infobox-value">{{{known_for}}}</div>
      </div>
    }}
 
    <!-- Spouse Section -->
    {{#if: {{{spouse|}}} |
      <div class="leather-infobox-section">
        <div class="leather-infobox-label">Spouse(s)</div>
        <div class="leather-infobox-value">{{{spouse}}}</div>
      </div>
    }}
 
    <!-- Children Section -->
    {{#if: {{{children|}}} |
      <div class="leather-infobox-section">
        <div class="leather-infobox-label">Children</div>
        <div class="leather-infobox-value">{{{children}}}</div>
      </div>
    }}
 
    <!-- Website Section -->
    {{#if: {{{website|}}} |  
      <div class="leather-infobox-section">
        <div class="leather-infobox-label">Website</div>
        <div class="leather-infobox-value">[{{{website}}} {{{website}}}]</div>
      </div>
    }}
  </div>
</div>
 
 
<!--Last line of your template code--><noinclude>
{{Documentation}}
<!-- Add categories to the /doc subpage -->
</noinclude>
</noinclude>

Latest revision as of 12:59, 18 June 2024

<