پرش به محتوا

الگو:تب رده: تفاوت میان نسخه‌ها

از ویکی امام رضا علیه السلام
جزبدون خلاصۀ ویرایش
برچسب: ویرایش مبدأ ۲۰۱۷
جزبدون خلاصۀ ویرایش
برچسب: ویرایش مبدأ ۲۰۱۷
 
(۵ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۱: خط ۱:
<noinclude>
<div style="max-height: {{{ارتفاع|400px}}}; overflow: auto; border: 1px solid #bccaff; padding: 2px; border-radius: 5px; background-color: #fbfcff; margin: 1em auto;">
الگوی تب
{{#if: {{{تیتر|}}} | <div style="white-space: nowrap; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; font-size: 120%; font-weight: bold; text-align: center; padding: 5px; margin: 0px; background-color: #E8DDCD; border: 2px solid #DAC9B4; border-bottom: none;">{{{تیتر|}}}</div>}}
</noinclude>
<tabber>
<includeonly>
|-| اساتید =
<div style="border:1px solid #ddd; border-radius:8px; overflow:hidden; margin:10px 0;">
<categorytree mode="all" hideroot="true">اساتید</categorytree>
<!-- تب‌ها -->
<div style="display:flex; background:#f8f9fa; border-bottom:1px solid #ddd;">
<span style="flex:1; text-align:center; padding:12px; background:#28a745; color:white; font-weight:bold; cursor:pointer;" onclick="this.parentNode.parentNode.children[1].children[0].style.display='block'; this.parentNode.parentNode.children[1].children[1].style.display='none'; this.parentNode.parentNode.children[1].children[2].style.display='none'; this.parentNode.parentNode.children[1].children[3].style.display='none'; this.style.background='#28a745'; this.style.color='white'; this.parentNode.children[1].style.background='#f8f9fa'; this.parentNode.children[1].style.color='#333'; this.parentNode.children[2].style.background='#f8f9fa'; this.parentNode.children[2].style.color='#333'; this.parentNode.children[3].style.background='#f8f9fa'; this.parentNode.children[3].style.color='#333';">{{{1}}}</span>


<span style="flex:1; text-align:center; padding:12px; background:#f8f9fa; color:#333; cursor:pointer;" onclick="this.parentNode.parentNode.children[1].children[0].style.display='none'; this.parentNode.parentNode.children[1].children[1].style.display='block'; this.parentNode.parentNode.children[1].children[2].style.display='none'; this.parentNode.parentNode.children[1].children[3].style.display='none'; this.style.background='#28a745'; this.style.color='white'; this.parentNode.children[0].style.background='#f8f9fa'; this.parentNode.children[0].style.color='#333'; this.parentNode.children[2].style.background='#f8f9fa'; this.parentNode.children[2].style.color='#333'; this.parentNode.children[3].style.background='#f8f9fa'; this.parentNode.children[3].style.color='#333';">{{{2}}}</span>
|-| مقالات =
<categorytree mode="all" hideroot="true">مقالات</categorytree>


<span style="flex:1; text-align:center; padding:12px; background:#f8f9fa; color:#333; cursor:pointer;" onclick="this.parentNode.parentNode.children[1].children[0].style.display='none'; this.parentNode.parentNode.children[1].children[1].style.display='none'; this.parentNode.parentNode.children[1].children[2].style.display='block'; this.parentNode.parentNode.children[1].children[3].style.display='none'; this.style.background='#28a745'; this.style.color='white'; this.parentNode.children[0].style.background='#f8f9fa'; this.parentNode.children[0].style.color='#333'; this.parentNode.children[1].style.background='#f8f9fa'; this.parentNode.children[1].style.color='#333'; this.parentNode.children[3].style.background='#f8f9fa'; this.parentNode.children[3].style.color='#333';">{{{3}}}</span>
|-| کتابخانه =
<categorytree mode="all" hideroot="true">کتابخانه</categorytree>


<span style="flex:1; text-align:center; padding:12px; background:#f8f9fa; color:#333; cursor:pointer;" onclick="this.parentNode.parentNode.children[1].children[0].style.display='none'; this.parentNode.parentNode.children[1].children[1].style.display='none'; this.parentNode.parentNode.children[1].children[2].style.display='none'; this.parentNode.parentNode.children[1].children[3].style.display='block'; this.style.background='#28a745'; this.style.color='white'; this.parentNode.children[0].style.background='#f8f9fa'; this.parentNode.children[0].style.color='#333'; this.parentNode.children[1].style.background='#f8f9fa'; this.parentNode.children[1].style.color='#333'; this.parentNode.children[2].style.background='#f8f9fa'; this.parentNode.children[2].style.color='#333';">{{{4}}}</span>
|-| موضوعات =
<categorytree mode="all" hideroot="true">موضوعات</categorytree>
</tabber>
</div>
</div>
<!-- محتوا -->
<div>
<div style="padding:15px; display:block;">
<categorytree mode="all" hideroot="true">{{{1}}}</categorytree>
</div>
<div style="padding:15px; display:none;">
<categorytree mode="all" hideroot="true">{{{2}}}</categorytree>
</div>
<div style="padding:15px; display:none;">
<categorytree mode="all" hideroot="true">{{{3}}}</categorytree>
</div>
<div style="padding:15px; display:none;">
<categorytree mode="all" hideroot="true">{{{4}}}</categorytree>
</div>
</div>
</div>
</includeonly>

نسخهٔ کنونی تا ‏۲۹ سپتامبر ۲۰۲۵، ساعت ۱۵:۳۱

<tabber> |-| اساتید =

|-| مقالات =

|-| کتابخانه =

|-| موضوعات =

</tabber>