Vorlage:NoteBerechnung: Unterschied zwischen den Versionen
Aus smw-dev03
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| 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 --> | <!-- Durchschnittsnoten berechnen --> | ||
{{#set: | {{#set: | ||
| Zeile 8: | Zeile 7: | ||
|Hat Durchschnittsnote Kolloquium={{#expr: ({{{note_koll_ref|0}}} + {{{note_koll_koref|0}}}) / 2 round 1 }} | |Hat Durchschnittsnote Kolloquium={{#expr: ({{{note_koll_ref|0}}} + {{{note_koll_koref|0}}}) / 2 round 1 }} | ||
}} | }} | ||
<!-- Gesamtnote berechnen nach Gewichtung (75% / 25%) --> | <!-- Gesamtnote berechnen nach Gewichtung (75% / 25%) --> | ||
{{#set: | {{#set: | ||
| Zeile 15: | Zeile 13: | ||
((({{{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 1 }} | ||
}} | }}<!-- Darstellung --> | ||
<!-- Darstellung --> | |||
<div style="max-width: 75%; margin: 20px auto 0 auto; padding: 15px; background-color: #f9f9f9; border: 1px solid #ccc; border-radius: 8px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"> | <div style="max-width: 75%; margin: 20px auto 0 auto; padding: 15px; 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> | <h3 style="margin-top: 0; color: #2c3e50;">📊 Notenübersicht</h3> | ||
| Zeile 26: | Zeile 22: | ||
<li><strong>Koreferent – Kolloquium:</strong> {{{note_koll_koref|–}}}</li> | <li><strong>Koreferent – Kolloquium:</strong> {{{note_koll_koref|–}}}</li> | ||
</ul> | </ul> | ||
<div style="display: flex; justify-content: space-between; gap: 20px;"> | <div style="display: flex; justify-content: space-between; gap: 20px;"> | ||
<div style="flex: 1; text-align: center; padding: 10px; background-color: #ffffff; border: 1px solid #e1e4e8; border-radius: 6px;"> | <div style="flex: 1; text-align: center; padding: 10px; background-color: #ffffff; border: 1px solid #e1e4e8; border-radius: 6px;"> | ||