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
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Template: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>
 
{{documentation}}
<div class="infobox">
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
  <!-- Title -->
  {{#if: {{{title|}}} |
    <div class="infobox-header">{{{title}}}
    </div>
  }}
 
  <!-- Image -->
  {{#if: {{{image|}}} |
    <div class="infobox-image">
      [[File:{{{image}}}|250px|center|alt={{{image_alt|}}}|{{{image_caption|}}}]]
    </div>
  }}
 
  <!-- Name -->
  {{#if: {{{name|}}} |
    <div class="infobox-row">
      <div class="infobox-label">Name</div>
      <div class="infobox-value">{{{name}}}</div>
    </div>
  }}
 
  <!-- Birth Date -->
  {{#if: {{{birth_date|}}} |
    <div class="infobox-row">
      <div class="infobox-label">Date of Birth</div>
      <div class="infobox-value">{{{birth_date}}}</div>
    </div>
  }}
 
  <!-- Occupation -->
  {{#if: {{{occupation|}}} |
    <div class="infobox-row">
      <div class="infobox-label">Occupation</div>
      <div class="infobox-value">{{{occupation}}}</div>
    </div>
  }}
 
  <!-- Known For -->
  {{#if: {{{known_for|}}} |
    <div class="infobox-row">
      <div class="infobox-label">Known For</div>
      <div class="infobox-value">{{{known_for}}}</div>
    </div>
  }}
 
  <!-- Spouse -->
  {{#if: {{{spouse|}}} |
    <div class="infobox-row">
      <div class="infobox-label">Spouse(s)</div>
      <div class="infobox-value">{{{spouse}}}</div>
    </div>
  }}
 
  <!-- Children -->
  {{#if: {{{children|}}} |
    <div class="infobox-row">
      <div class="infobox-label">Children</div>
      <div class="infobox-value">{{{children}}}</div>
    </div>
  }}
 
  <!-- Website -->
  {{#if: {{{website|}}} |
    <div class="infobox-row">
      <div class="infobox-label">Website</div>
      <div class="infobox-value">{{{website}}}
      </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

<