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

מתוך ויקי נטפרי
קפיצה לניווט קפיצה לחיפוש
שורה 9: שורה 9:
 
{{ספוילר|2|לחץ כאן|זה התוכן המוסתר}}
 
{{ספוילר|2|לחץ כאן|זה התוכן המוסתר}}
 
{{תיבת מידע|חשוב שבדף שיש בו כמה ספוילרים לייעד מספר נפרד לכל ספוילר (כדי שלא יוצגו ויסתרו ביחד).}}
 
{{תיבת מידע|חשוב שבדף שיש בו כמה ספוילרים לייעד מספר נפרד לכל ספוילר (כדי שלא יוצגו ויסתרו ביחד).}}
</noinclude><includeonly><details style="margin: 15px 0; text-align: center;"><summary style="display: inline-block; background-color: #17a2b8; color: #fff; padding: 1rem 2rem; border-radius: 5px; cursor: pointer; font-weight: bold; font-size: 1em; list-style: none; border: none; outline: none;">👁️ {{{2|לחץ להצגת התוכן}}}</summary><div style="background-color: #F5F5DC; border: 1px solid #DBCA7E; padding: 7px 7px 0 7px; margin: 2px; text-align: right;">{{{3}}}</div></details></includeonly>
+
</noinclude><includeonly><div style="text-align: center; margin: 15px 0;"><a href="#spoiler-{{{1|1}}}" data-toggle="collapse" style="background-color: #17a2b8; color: #fff; padding: 1rem 2rem; border-radius: 5px; cursor: pointer; font-weight: bold; font-size: 1em; text-decoration: none; display: inline-block;">👁️ {{{2|לחץ להצגת התוכן}}}</a></div><div id="spoiler-{{{1|1}}}" class="collapse" style="background-color: #F5F5DC; border: 1px solid #DBCA7E; padding: 7px 7px 0 7px; margin: 2px;">{{{3}}}</div></includeonly>

גרסה מ־00:44, 10 במרץ 2026

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

הסבר

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

<a href="#spoiler-2" data-toggle="collapse" style="background-color: #17a2b8; color: #fff; padding: 1rem 2rem; border-radius: 5px; cursor: pointer; font-weight: bold; font-size: 1em; text-decoration: none; display: inline-block;">👁️ לחץ כאן</a>
זה התוכן המוסתר