Vorlage:Biobox: Unterschied zwischen den Versionen

Keine Bearbeitungszusammenfassung
Markierungen: Manuelle Zurücksetzung Zurückgesetzt
Keine Bearbeitungszusammenfassung
Markierung: Zurückgesetzt
Zeile 3: Zeile 3:
<td colspan="2" class="biobox-header" style="width:100%; background-color: {{#if:{{{Headerfarbe|}}}|{{{Headerfarbe}}}|{{Infobox Farbe Beruf|beruf={{{Beruf|}}}}}}}; text-align:center"><b>{{ #if: {{{Name}}} | {{{Name}}} | {{PAGENAMEBASE}} }}</b></td>
<td colspan="2" class="biobox-header" style="width:100%; background-color: {{#if:{{{Headerfarbe|}}}|{{{Headerfarbe}}}|{{Infobox Farbe Beruf|beruf={{{Beruf|}}}}}}}; text-align:center"><b>{{ #if: {{{Name}}} | {{{Name}}} | {{PAGENAMEBASE}} }}</b></td>
</tr>
</tr>
<!-- BEGIN Bild-Block -->
{{#if: {{{Bild|}}} |
{{#if: {{{Bild|}}} |
<!-- Bild vorhanden -->
<tr>
<tr>
   <td colspan="2" class="biobox-photo">
   <td colspan="2" class="biobox-photo">
Zeile 9: Zeile 11:
   </td>
   </td>
</tr>
</tr>
| [[Kategorie:Foto benötigt]] }}
|
{{#ifeq: {{{Bild}}} | Foto benoetigt (Frau).jpg | [[Kategorie:Foto benötigt]] | }}
<!-- KEIN Bild: Platzhalter + Upload-Link -->
{{#ifeq: {{{Bild}}} | Foto benoetigt (Mann).jpg | [[Kategorie:Foto benötigt]] | }}
<tr>
 
  <td colspan="2" class="biobox-photo" style="text-align:center;">
    [[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
      |alt=Bild fehlt – jetzt hochladen
      |link={{fullurl:Special:Upload|wpDestFile={{urlencode:{{PAGENAMEBASE}}.jpg|PATH}}}}
    ]]
    <div class="biobox-upload" style="font-size:85%; line-height:1.3; margin-top:0.35em;">
      ''Bild fehlt – [{{fullurl:Special:Upload|wpDestFile={{urlencode:{{PAGENAMEBASE}}.jpg|PATH}}}} jetzt hochladen]''
    </div>
  </td>
</tr>
[[Kategorie:Foto benötigt]]
}}
<!-- END Bild-Block -->
{{#if:{{{Beschreibung|}}} |
{{#if:{{{Beschreibung|}}} |
<tr>
<tr>