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 14: | Zeile 25: | ||
<!-- Geburtsdatum + Alter --> | <!-- Geburtsdatum + Alter --> | ||
<tr> | <tr> | ||
<th style="background:#efefef; text-align:left; padding:0.25em;">Geburtsdatum</th> | |||
<td style="padding:0.25em; white-space:nowrap;"> | |||
{{{GEBURTSDATUM|–}}}{{#if:{{#var:alter}}| ({{#var:alter}} Jahre)}} | |||
{{{GEBURTSDATUM|–}}}{{#if: | </td> | ||
</tr> | |||
</tr> | |||
<tr> | <tr> | ||
| Zeile 37: | Zeile 40: | ||
<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;">{{{STERBEDATUM|–}}}</td> | <td style="padding:0.25em; white-space:nowrap;"> | ||
{{{STERBEDATUM|–}}}{{#if:{{{GEBURTSDATUM|}}}| ({{#expr: {{#time:Y|{{{STERBEDATUM}}}}} - {{#time:Y|{{{GEBURTSDATUM}}}}} }} Jahre)}} | |||
</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
| Zeile 70: | Zeile 75: | ||
</tr> | </tr> | ||
{{#if:{{{WEBLINK|}}} | {{#if:{{{WEBLINK|}}}| | ||
<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 78: | Zeile 83: | ||
</table> | </table> | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
| Zeile 102: | Zeile 104: | ||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
Version vom 21. Oktober 2025, 09:22 Uhr
Syntax
{{Infobox Person
| NAME =
| ALTERNATIVNAMEN =
| KURZBESCHREIBUNG =
| GEBURTSDATUM =
| GEBURTSORT =
| STERBEDATUM =
| STERBEORT =
| STAATSANGEHÖRIGKEIT=
| TÄTIGKEITSFELD =
| BEKANNTFÜR =
| AKTIVSEIT =
| WERKE =
| WEBLINK =
}}