Vorlage:Biobox: Unterschied zwischen den Versionen

Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 6: Zeile 6:
<!-- BEGIN Bild-Block -->
<!-- BEGIN Bild-Block -->
{{#if: {{{Bild|}}} |
{{#if: {{{Bild|}}} |
<!-- Bild vorhanden -->
<!-- Wenn ein Bild angegeben wurde -->
<tr>
<tr>
   <td colspan="2" class="biobox-photo">
   <td colspan="2" class="biobox-photo">
Zeile 13: Zeile 13:
</tr>
</tr>
|
|
<!-- KEIN Bild: Platzhalter NUR wenn die Datei existiert + Upload-Link -->
<!-- Wenn KEIN Bild angegeben wurde -->
<tr>
<tr>
   <td colspan="2" class="biobox-photo" style="text-align:center;">
   <td colspan="2" class="biobox-photo" style="text-align:center;">
 
     [[Datei:Foto benoetigt (Frau).jpg|class=biobox-img]]
     {{#ifexist: Datei:{{#switch: {{lc:{{{Geschlecht|}}}}}
      | m = Foto benoetigt (Mann).jpg
      | mann = Foto benoetigt (Mann).jpg
      | w = Foto benoetigt (Frau).jpg
      | frau = Foto benoetigt (Frau).jpg
      | #default = Foto benoetigt (Frau).jpg
    }} |
      [[Datei:{{#switch: {{lc:{{{Geschlecht|}}}}}
        | m = Foto benoetigt (Mann).jpg
        | mann = Foto benoetigt (Mann).jpg
        | w = Foto benoetigt (Frau).jpg
        | frau = Foto benoetigt (Frau).jpg
        | #default = Foto benoetigt (Frau).jpg
      }}|class=biobox-img]]
    }}
 
     <div class="biobox-upload" style="font-size:85%; line-height:1.3; margin-top:0.35em;">
     <div class="biobox-upload" style="font-size:85%; line-height:1.3; margin-top:0.35em;">
       ''Bild fehlt – [{{fullurl:Special:Upload | wpDestFile={{BASEPAGENAME}}.jpg}} jetzt hochladen]''
       ''Bild fehlt – [{{fullurl:Special:Upload | wpDestFile={{BASEPAGENAME}}.jpg}} jetzt hochladen]''
Zeile 41: Zeile 25:
}}
}}
<!-- END Bild-Block -->
<!-- END Bild-Block -->
{{#if:{{{Beschreibung|}}} |
{{#if:{{{Beschreibung|}}} |
<tr>
<tr>