Weitere Optionen
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
mw.hook('wikipage.content').add(function($content) { | |||
mw.hook('wikipage.content').add(function() { | |||
const headings = document.querySelectorAll('.citizen-section-heading'); | const headings = document.querySelectorAll('.citizen-section-heading'); | ||
if (headings.length === 0) return; | if (headings.length === 0) return; | ||
| Zeile 6: | Zeile 5: | ||
const sections = document.querySelectorAll('.citizen-section'); | const sections = document.querySelectorAll('.citizen-section'); | ||
sections.forEach(function(section, index) { | sections.forEach(function(section, index) { | ||
if (index === 0) return; | if (index === 0) return; // Einleitungstext überspringen | ||
section.hidden = 'until-found'; | section.hidden = 'until-found'; | ||
}); | }); | ||
}); | }); | ||
Version vom 23. Mai 2026, 11:36 Uhr
mw.hook('wikipage.content').add(function($content) {
const headings = document.querySelectorAll('.citizen-section-heading');
if (headings.length === 0) return;
const sections = document.querySelectorAll('.citizen-section');
sections.forEach(function(section, index) {
if (index === 0) return; // Einleitungstext überspringen
section.hidden = 'until-found';
});
});