Vorlage:NoteBerechnung: Unterschied zwischen den Versionen

Aus smw-dev03
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 2: Zeile 2:
<!-- Eingabe: Einzelnoten vom Referenten und Koreferenten -->
<!-- Eingabe: Einzelnoten vom Referenten und Koreferenten -->
<!-- Parameter: note_ba_ref, note_ba_koref, note_koll_ref, note_koll_koref -->
<!-- Parameter: note_ba_ref, note_ba_koref, note_koll_ref, note_koll_koref -->
 
<!-- Durchschnittsnoten berechnen -->{{#set:
<!-- Durchschnittsnoten berechnen -->
  |Hat Durchschnittsnote BA={{#expr: ({{{note_ba_ref|0}}} + {{{note_ba_koref|0}}}) / 2 round 2 }}
{{#set:
  |Hat Durchschnittsnote Kolloquium={{#expr: ({{{note_koll_ref|0}}} + {{{note_koll_koref|0}}}) / 2 round 2 }}}}
  |Hat Durchschnittsnote BA={{#expr: ({{{note_ba_ref|0}}} + {{{note_ba_koref|0}}}) / 2 round 1 }}
<!-- Gesamtnote berechnen nach Gewichtung (75% / 25%) -->{{#set:
  |Hat Durchschnittsnote Kolloquium={{#expr: ({{{note_koll_ref|0}}} + {{{note_koll_koref|0}}}) / 2 round 1 }}
}}
 
<!-- Gesamtnote berechnen nach Gewichtung (75% / 25%) -->
{{#set:
  |Hat Gesamtnote={{#expr:
  |Hat Gesamtnote={{#expr:
   ((({{{note_ba_ref|0}}} + {{{note_ba_koref|0}}}) / 2) * {{#show: Bewertungskonfiguration | ?Hat Gewicht Bachelorarbeit }} / 100) +
   ((({{{note_ba_ref|0}}} + {{{note_ba_koref|0}}}) / 2) * {{#show: Bewertungskonfiguration | ?Hat Gewicht Bachelorarbeit }} / 100) +
   ((({{{note_koll_ref|0}}} + {{{note_koll_koref|0}}}) / 2) * {{#show: Bewertungskonfiguration | ?Hat Gewicht Präsentation }} / 100)
   ((({{{note_koll_ref|0}}} + {{{note_koll_koref|0}}}) / 2) * {{#show: Bewertungskonfiguration | ?Hat Gewicht Präsentation }} / 100)
round 1 }}
round 2 }}}}<!-- Darstellung -->
}}
<div style="max-width: 100%; margin: 10px auto 0 auto; padding: 10px; background-color: #f9f9f9; border: 1px solid #ccc; border-radius: 8px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;">
 
   <h3 style="margin-top: 0; color: #2c3e50;"> Notenübersicht</h3>
<!-- Darstellung -->
<table style="width: 100%; border-collapse: collapse; margin-bottom: 20px;">
<div style="margin-top: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;">
  <tr style="background-color: #e9ecef;">
   <div style="font-weight: bold; margin-bottom: 5px;">Einzelnoten der Gutachter:</div>
    <th style="text-align: left; padding: 8px; border-bottom: 1px solid #ccc;">&nbsp;</th>
  <ul style="list-style: none; padding-left: 0;">
    <th style="text-align: center; padding: 8px; border-bottom: 1px solid #ccc;">Bachelorarbeit</th>
     <li><strong>Referent – Bachelorarbeit:</strong> {{{note_ba_ref|–}}}</li>
    <th style="text-align: center; padding: 8px; border-bottom: 1px solid #ccc;">Kolloquium</th>
     <li><strong>Koreferent – Bachelorarbeit:</strong> {{{note_ba_koref|–}}}</li>
  </tr>
     <li><strong>Referent – Kolloquium:</strong> {{{note_koll_ref|–}}}</li>
  <tr>
     <li><strong>Koreferent – Kolloquium:</strong> {{{note_koll_koref|–}}}</li>
     <td style="padding: 8px;"><strong>Referent</strong></td>
   </ul>
    <td style="text-align: center; padding: 8px;">{{{note_ba_ref|–}}}</td>
</div>
     <td style="text-align: center; padding: 8px;">{{{note_koll_ref|–}}}</td>
<div style="display: flex; justify-content: space-between; background-color: #f8f9fa; padding: 15px; border: 1px solid #e1e4e8; border-radius: 6px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; max-width: 800px; margin-top: 10px;">
  </tr>
  <div style="flex: 1; text-align: center;">
  <tr>
    <div style="font-weight: bold;">Durchschnitt BA</div>
     <td style="padding: 8px;"><strong>Koreferent</strong></td>
    <div>{{#show: {{FULLPAGENAME}} | ?Hat Durchschnittsnote BA |link=none }}</div>
    <td style="text-align: center; padding: 8px;">{{{note_ba_koref|–}}}</td>
  </div>
     <td style="text-align: center; padding: 8px;">{{{note_koll_koref|–}}}</td>
  <div style="flex: 1; text-align: center;">
   </tr>
    <div style="font-weight: bold;">Durchschnitt Kolloquium</div>
</table>
    <div>{{#show: {{FULLPAGENAME}} | ?Hat Durchschnittsnote Kolloquium|link=none }}</div>
  <!-- Durchschnitt + Gesamtnote -->
  </div>
  <div style="display: flex; justify-content: space-between; gap: 20px;">
  <div style="flex: 1; text-align: center;">
    <div style="flex: 1; text-align: center; padding: 10px; background-color: #ffffff; border: 1px solid #e1e4e8; border-radius: 6px;">
    <div style="font-weight: bold;">Gesamtnote</div>
      <div style="font-weight: bold;">Durchschnitt BA</div>
    <div>{{#show: {{FULLPAGENAME}} | ?Hat Gesamtnote |link=none }}</div>
      <div>{{#show: {{FULLPAGENAME}} | ?Hat Durchschnittsnote BA |link=none }}</div>
    </div>
    <div style="flex: 1; text-align: center; padding: 10px; background-color: #ffffff; border: 1px solid #e1e4e8; border-radius: 6px;">
      <div style="font-weight: bold;">Durchschnitt Kolloquium</div>
      <div>{{#show: {{FULLPAGENAME}} | ?Hat Durchschnittsnote Kolloquium |link=none }}</div>
    </div>
    <div style="flex: 1; text-align: center; padding: 10px; background-color: #ffffff; border: 1px solid #e1e4e8; border-radius: 6px;">
      <div style="font-weight: bold;">Gesamtnote</div>
      <div>{{#show: {{FULLPAGENAME}} | ?Hat Gesamtnote |link=none }}</div>
    </div>
   </div>
   </div>
</div>
</div>
</includeonly>
</includeonly>

Aktuelle Version vom 11. August 2025, 13:08 Uhr