Vorlage:Biobox: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 53: | Zeile 53: | ||
<td style="vertical-align:top">'''Geburtsort:'''</td> | <td style="vertical-align:top">'''Geburtsort:'''</td> | ||
<td style="vertical-align:top"> | <td style="vertical-align:top"> | ||
<!-- Stadt & Land aus dem Feld "Stadt, Land" trennen --> | |||
{{#vardefine:stadt|{{#trim:{{#explode:{{{Geburtsort}}}|,|0}}}}}} | {{#vardefine:stadt|{{#trim:{{#explode:{{{Geburtsort}}}|,|0}}}}}} | ||
{{#vardefine:land_raw|{{#trim:{{#explode:{{{Geburtsort}}}|,|1}}}}}} | {{#vardefine:land_raw|{{#trim:{{#explode:{{{Geburtsort}}}|,|1}}}}}} | ||
<!-- Land normalisieren (Anzeige-Titel) --> | |||
{{#vardefine:land_norm| | {{#vardefine:land_norm| | ||
{{#switch: {{lc:{{#var:land_raw}}}} | {{#switch: {{lc:{{#var:land_raw}}}} | ||
| Zeile 78: | Zeile 79: | ||
}} | }} | ||
<!-- Stadt für Anzeige: wenn Seite existiert, verlinken --> | |||
{{#vardefine:stadt_view|{{#ifexist:{{#var:stadt}}|[[{{#var:stadt}}]]|{{#var:stadt}}}}}} | {{#vardefine:stadt_view|{{#ifexist:{{#var:stadt}}|[[{{#var:stadt}}]]|{{#var:stadt}}}}}} | ||
<!-- Land für Anzeige: wenn gesetzt und Seite existiert, verlinken --> | |||
{{#vardefine:land_view| | {{#vardefine:land_view| | ||
{{#if:{{#var:land_norm}}|{{#ifexist:{{#var:land_norm}}|[[{{#var:land_norm}}]]|{{#var:land_norm}}}}} | {{#if:{{#var:land_norm}}|{{#ifexist:{{#var:land_norm}}|[[{{#var:land_norm}}]]|{{#var:land_norm}}}}}} | ||
}} | }} | ||
<!-- Ausgabe "Stadt, Land" (Land nur anzeigen, wenn vorhanden) --> | |||
{{#var:stadt_view}}{{#if:{{#var:land_norm}}|, {{#var:land_view}}}} | {{#var:stadt_view}}{{#if:{{#var:land_norm}}|, {{#var:land_view}}}} | ||
<!-- Kategorien: Stadt immer; Land mit korrekter Beugung --> | |||
[[Kategorie:Geboren in {{#var:stadt}}]] | [[Kategorie:Geboren in {{#var:stadt}}]] | ||
{{#switch: {{#var:land_norm}} | {{#switch: {{#var:land_norm}} | ||
| Zeile 108: | Zeile 109: | ||
| #default = {{#if:{{#var:land_norm}}|[[Kategorie:Geboren in {{#var:land_norm}}]]}} | | #default = {{#if:{{#var:land_norm}}|[[Kategorie:Geboren in {{#var:land_norm}}]]}} | ||
}} | }} | ||
</td> | </td> | ||
</tr> | </tr> | ||
| [[Kategorie:Herkunft unbekannt]] }} | | [[Kategorie:Herkunft unbekannt]] }} | ||
<!-- I know the following line seems to be senseless, but birth, death, natural tits and hair produce <p><br /></p> at the beginning of the HTML output page if followed by an empty entry. If there's something directly after birth, death or hair, this effect doesn't occur. It already helps if there's an empty <tr> after them, so I simulated one. If someone knows how to fix this, please drop me a line. Don't change this code, please. Prophecy --> | <!-- I know the following line seems to be senseless, but birth, death, natural tits and hair produce <p><br /></p> at the beginning of the HTML output page if followed by an empty entry. If there's something directly after birth, death or hair, this effect doesn't occur. It already helps if there's an empty <tr> after them, so I simulated one. If someone knows how to fix this, please drop me a line. Don't change this code, please. Prophecy --> | ||
<tr></tr> | <tr></tr> | ||
Version vom 4. Oktober 2025, 09:10 Uhr
[create]
Template documentation