Vorlage:Infobox Person: Unterschied zwischen den Versionen

Aus Wiki.sah
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
<includeonly>
<includeonly>
<!-- Altersberechnung -->
{{#vardefine:alter|
  {{#if:{{{GEBURTSDATUM|}}}|
    {{#if:{{{STERBEDATUM|}}}|
      {{#expr: {{#time:Y|{{{STERBEDATUM}}}}} - {{#time:Y|{{{GEBURTSDATUM}}}}} }}
    |
      {{#expr: {{CURRENTYEAR}} - {{#time:Y|{{{GEBURTSDATUM}}}}} }}
    }}
  }}
}}
<table class="infobox" style="float:right; width:22em; font-size:90%; text-align:left; border:1px solid #aaa; background:#f9f9f9; padding:0.5em; margin-left:1em;">
<table class="infobox" style="float:right; width:22em; font-size:90%; text-align:left; border:1px solid #aaa; background:#f9f9f9; padding:0.5em; margin-left:1em;">
   <caption style="font-size:110%; font-weight:bold; text-align:center; background:#e6e6e6; padding:0.3em;">{{{NAME}}}</caption>
   <caption style="font-size:110%; font-weight:bold; text-align:center; background:#e6e6e6; padding:0.3em;">{{{NAME}}}</caption>
Zeile 24: Zeile 13:
   </tr>
   </tr>


   <!-- Geburtsdatum + Alter -->
   <!-- Geburtsdatum + Alter (kompakt, inline, kein Kasten) -->
   <tr>
   <tr>
     <th style="background:#efefef; text-align:left; padding:0.25em;">Geburtsdatum</th>
     <th style="background:#efefef; text-align:left; padding:0.25em;">Geburtsdatum</th>
     <td style="padding:0.25em; white-space:nowrap;">
     <td style="padding:0.25em;">
       {{{GEBURTSDATUM|–}}}{{#if:{{#var:alter}}|&nbsp;({{#var:alter}} Jahre)}}
       {{#tag:span|{{{GEBURTSDATUM|–}}}{{#if:{{{GEBURTSDATUM|}}}|{{#if:{{{STERBEDATUM|}}|&nbsp;({{#expr: {{#time:Y|{{{STERBEDATUM}}}}} - {{#time:Y|{{{GEBURTSDATUM}}}}} }} Jahre)|&nbsp;({{#expr: {{CURRENTYEAR}} - {{#time:Y|{{{GEBURTSDATUM}}}}} }} Jahre)}}}}|style=display:inline;white-space:nowrap;}
     </td>
     </td>
   </tr>
   </tr>
Zeile 40: Zeile 29:
   <tr>
   <tr>
     <th style="background:#efefef; text-align:left; padding:0.25em;">Sterbedatum</th>
     <th style="background:#efefef; text-align:left; padding:0.25em;">Sterbedatum</th>
     <td style="padding:0.25em; white-space:nowrap;">
     <td style="padding:0.25em;">
       {{{STERBEDATUM|–}}}{{#if:{{{GEBURTSDATUM|}}}|&nbsp;({{#expr: {{#time:Y|{{{STERBEDATUM}}}}} - {{#time:Y|{{{GEBURTSDATUM}}}}} }} Jahre)}}
       {{#tag:span|{{{STERBEDATUM|–}}}{{#if:{{{STERBEDATUM|}}}|&nbsp;({{#expr: {{#time:Y|{{{STERBEDATUM}}}}} - {{#time:Y|{{{GEBURTSDATUM}}}}} }} Jahre)}}|style=display:inline;white-space:nowrap;}
     </td>
     </td>
   </tr>
   </tr>
Zeile 75: Zeile 64:
   </tr>
   </tr>


   {{#if:{{{WEBLINK|}}}|
   {{#if:{{{WEBLINK|}}}
   <tr>
   |<tr>
     <th style="background:#efefef; text-align:left; padding:0.25em;">Webseite</th>
     <th style="background:#efefef; text-align:left; padding:0.25em;">Webseite</th>
     <td style="padding:0.25em;">[{{{WEBLINK}}} {{{WEBLINK}}}]</td>
     <td style="padding:0.25em;">[{{{WEBLINK}}} {{{WEBLINK}}}]</td>
Zeile 89: Zeile 78:
<pre>
<pre>
{{Infobox Person
{{Infobox Person
| NAME              =  
| NAME              = Charles Darwin
| ALTERNATIVNAMEN    =  
| ALTERNATIVNAMEN    = Charles Robert Darwin
| KURZBESCHREIBUNG  =  
| KURZBESCHREIBUNG  = Britischer Naturforscher, Begründer der modernen Evolutionstheorie
| GEBURTSDATUM      =  
| GEBURTSDATUM      = 12 February 1809
| GEBURTSORT        =  
| GEBURTSORT        = Shrewsbury, England
| STERBEDATUM        =  
| STERBEDATUM        = 19 April 1882
| STERBEORT          =  
| STERBEORT          = Down House, England
| STAATSANGEHÖRIGKEIT=  
| STAATSANGEHÖRIGKEIT=  
| TÄTIGKEITSFELD    =  
| TÄTIGKEITSFELD    =  

Version vom 21. Oktober 2025, 09:25 Uhr


Syntax

{{Infobox Person
| NAME               = Charles Darwin
| ALTERNATIVNAMEN    = Charles Robert Darwin
| KURZBESCHREIBUNG   = Britischer Naturforscher, Begründer der modernen Evolutionstheorie
| GEBURTSDATUM       = 12 February 1809
| GEBURTSORT         = Shrewsbury, England
| STERBEDATUM        = 19 April 1882
| STERBEORT          = Down House, England
| STAATSANGEHÖRIGKEIT= 
| TÄTIGKEITSFELD     = 
| BEKANNTFÜR         = 
| AKTIVSEIT          = 
| WERKE              = 
| WEBLINK            = 
}}