תבנית:ספוילר: הבדלים בין גרסאות בדף

מתוך ויקי נטפרי
קפיצה לניווט קפיצה לחיפוש
 
(2 גרסאות ביניים של אותו משתמש אינן מוצגות)
שורה 16: שורה 16:
 
</noinclude>
 
</noinclude>
  
<includeonly><div style="text-align: center; margin: 15px 0;"><button onclick="(function(btn){var c=document.getElementById('spoiler-content-{{{1|1}}}');if(c.style.display==='none'){c.style.display='block';btn.querySelector('.spoiler-arrow').textContent='▲';}else{c.style.display='none';btn.querySelector('.spoiler-arrow').textContent='▼';}})(this)" style="background-color: #17a2b8; color: #fff; padding: 1rem 2rem; border-radius: 5px; border: none; cursor: pointer; font-weight: bold; font-size: 1em; font-family: inherit;">👁️ {{{2|לחץ להצגת התוכן}}} <span class="spoiler-arrow">▼</span></button></div><div id="spoiler-content-{{{1|1}}}" style="display: none;"><div style="background-color: #F5F5DC; border: 1px solid #DBCA7E; padding: 7px 7px 0 7px; margin: 2px;">{{{3}}}</div></div></includeonly>
+
<includeonly>
 +
<div style="text-align: center; margin: 15px 0;">
 +
<div class="mw-customtoggle-{{{1|1}}}" style="font-weight: bold; cursor: pointer; display: inline-block;">
 +
<span style="background-color: #17a2b8 ; color: #fff ; padding: 1rem 2rem; border-radius: 5px;">
 +
👁️ {{{2|לחץ להצגת התוכן}}}
 +
</span>
 +
</div>
 +
</div>
 +
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{1|1}}}">
 +
<div id="mf-otherProjects" style="background-color: #F5F5DC; border: 1px solid #DBCA7E; padding: 7px 7px 0 7px; margin: 2px 2px 2px 2px;">
 +
{{{3}}}
 +
</div>
 +
</div>
 +
</includeonly>

גרסה אחרונה מ־00:46, 10 במרץ 2026

למעבר מתצוגת עריכה לתצוגת קריאה

הסבר

הספוילר שימושי מאוד בשביל לקצר ולעשות סדר לדפים ארוכים (לדוגמא כאן).

בכדי לעשות ספוילר כותבים ככה:
{{ספוילר|1|לחץ כאן|זה התוכן המוסתר}}
ככה נקבל:


👁️ לחץ כאן

זה התוכן המוסתר