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
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Template:BasicInfobox -->
<{{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Category:Infobox templates|{{remove first word|{{SUBPAGENAME}}}}]]}}}}|}}</includeonly><noinclude>
<table class="basic-infobox" style="width: 300px; float: right; margin: 10px; border: 2px solid #5c85d6; border-radius: 10px; background-color: #444; color: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);">
{{documentation}}
  <!-- Title -->
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
  {{#if: {{{title|}}} |
    <tr>
      <th colspan="2" style="background-color: #5c85d6; color: #FFFFFF; padding: 10px; text-align: center; font-size: 1.25em; font-weight: bold;">
        {{{title}}}
      </th>
    </tr>
  }}
 
  <!-- Image -->
  {{#if: {{{image|}}} |
    <tr>
      <td colspan="2" style="text-align: center; padding: 10px;">
        [[File:{{{image}}}|250px|center|alt={{{image_alt|}}}|{{{image_caption|}}}]]
      </td>
    </tr>
  }}
 
  <!-- Name -->
  {{#if: {{{name|}}} |
    <tr>
      <td style="background-color: #444; font-weight: bold; padding: 5px; width: 40%;">
        Name
      </td>
      <td style="background-color: #444; padding: 5px;">
        {{{name}}}
      </td>
    </tr>
  }}
 
  <!-- Birth Date -->
  {{#if: {{{birth_date|}}} |
    <tr>
      <td style="background-color: #444; font-weight: bold; padding: 5px;">
        Date of Birth
      </td>
      <td style="background-color: #444; padding: 5px;">
        {{{birth_date}}}
      </td>
    </tr>
  }}
 
  <!-- Occupation -->
  {{#if: {{{occupation|}}} |
    <tr>
      <td style="background-color: #444; font-weight: bold; padding: 5px;">
        Occupation
      </td>
      <td style="background-color: #444; padding: 5px;">
        {{{occupation}}}
      </td>
    </tr>
  }}
 
  <!-- Known For -->
  {{#if: {{{known_for|}}} |
    <tr>
      <td style="background-color: #444; font-weight: bold; padding: 5px;">
        Known For
      </td>
      <td style="background-color: #444; padding: 5px;">
        {{{known_for}}}
      </td>
    </tr>
  }}
 
  <!-- Spouse -->
  {{#if: {{{spouse|}}} |
    <tr>
      <td style="background-color: #444; font-weight: bold; padding: 5px;">
        Spouse(s)
      </td>
      <td style="background-color: #444; padding: 5px;">
        {{{spouse}}}
      </td>
    </tr>
  }}
 
  <!-- Children -->
  {{#if: {{{children|}}} |
    <tr>
      <td style="background-color: #444; font-weight: bold; padding: 5px;">
        Children
      </td>
      <td style="background-color: #444; padding: 5px;">
        {{{children}}}
      </td>
    </tr>
  }}
 
  <!-- Website -->
  {{#if: {{{website|}}} |
    <tr>
      <td style="background-color: #444; font-weight: bold; padding: 5px;">
        Website
      </td>
      <td style="background-color: #444; padding: 5px;">
        [{{{website}}} {{{website}}}]
      </td>
    </tr>
  }}
</table>
 
<!--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

<