Vorlage:Biobox: Unterschied zwischen den Versionen

Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 13: Zeile 13:
</tr>
</tr>
|
|
<!-- KEIN Bild: ggf. Platzhalter (nur wenn vorhanden) + ein klarer Upload-Link -->
<!-- KEIN Bild: Platzhalter NUR wenn die Datei existiert + Upload-Link -->
<tr>
<tr>
   <td colspan="2" class="biobox-photo" style="text-align:center;">
   <td colspan="2" class="biobox-photo" style="text-align:center;">
    <!-- Geschlechtsbezogenen Platzhalter-Namen berechnen -->
 
     {{#vardefine:platzhalter|
     {{#ifexist: Datei:{{#switch: {{lc:{{{Geschlecht|}}}}}
       {{#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
         | m = Foto benoetigt (Mann).jpg
         | mann = Foto benoetigt (Mann).jpg
         | mann = Foto benoetigt (Mann).jpg
Zeile 24: Zeile 30:
         | frau = Foto benoetigt (Frau).jpg
         | frau = Foto benoetigt (Frau).jpg
         | #default = Foto benoetigt (Frau).jpg
         | #default = Foto benoetigt (Frau).jpg
       }}
       }}|class=biobox-img]]
    }}
 
    <!-- Platzhalter NUR anzeigen, wenn er als Datei existiert -->
    {{#ifexist: Datei:{{#var:platzhalter}} |
      [[Datei:{{#var:platzhalter}}|class=biobox-img]]
     }}
     }}


    <!-- Upload-Hinweis (schlank, EIN Link) -->
     <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
       ''Bild fehlt – [{{fullurl:Special:Upload | wpDestFile={{BASEPAGENAME}}.jpg}} jetzt hochladen]''
          | wpDestFile={{BASEPAGENAME}}.jpg
        }} jetzt hochladen]''
     </div>
     </div>
   </td>
   </td>