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

جز
اصلاح تصویر
جز (۱ نسخه واردشده)
dezfulwiki>Mojtabakd
جز (اصلاح تصویر)
خط ۱: خط ۱:
<table id="
<templatestyles src="Dmbox/styles.css" />
<div role="note" id="
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
| setindex = setindexbox
| setindex = setindexbox
| disambig      <!-- disambig = default -->
| disambig       
| #default = disambigbox
| #default = disambigbox
}}" class="metadata plainlinks dmbox  
}}" class="metadata plainlinks dmbox  
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
| setindex = dmbox-setindex
| setindex = dmbox-setindex
| disambig      <!-- disambig = default -->
| disambig       
| #default = dmbox-disambig
| #default = dmbox-disambig
}} {{{class|}}}" style="{{{style|}}}">
}} {{{class|}}}" {{#if:{{{style|}}}|style="{{{style}}}"}}>{{#ifeq:{{{image|}}}|none|
<tr>
| {{#if:{{{image|}}}
{{#ifeq:{{{image|}}}|none
   | <div>{{{image}}}</div>
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell"></td>
| <td class="mbox-image" style="padding: 2px 0 2px 0.4em;">
  {{#if:{{{image|}}}
   | {{{image}}}
   | [[File:{{#switch:{{{type|}}}
   | [[File:{{#switch:{{{type|}}}
     | setindex = DAB list gray.svg
     | setindex = DAB list gray.svg
     | disambig      <!-- disambig = default -->
     | disambig      <!-- disambig = default -->
     | #default = Disambig gray RTL.svg
     | #default = Disambig gray RTL.svg
     }}|30px|alt=نماد ابهام‌زدایی]]
     }}|30px|alt=Disambiguation icon]]
   }}</td>
   }}
}}
}}<div class="dmbox-body" {{#if:{{{textstyle|}}}|style="{{{textstyle}}}"}}> {{{text}}} </div>{{#if:{{{imageright|}}}|<div>{{{imageright}}}</div>}}
<td class="mbox-text" style="padding: 0.25em 0.4em; font-style: italic; {{{textstyle|}}}"> {{{text}}} </td>
</div><!--  
{{#if:{{{imageright|}}}
| <td class="mbox-imageright" style="padding: 2px 0.4em 2px 0;"> {{{imageright}}} </td>
}}
</tr>
</table><!--  
   Detect and report usage with faulty "type" parameter:
   Detect and report usage with faulty "type" parameter:
-->{{#switch:{{{type|}}}
-->{{#switch:{{{type|}}}
خط ۳۴: خط ۲۶:
| disambig
| disambig
| setindex =    <!-- Do nothing, valid "type" -->
| setindex =    <!-- Do nothing, valid "type" -->
| #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
| #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[رده:پارامتر نیازمند اصلاح الگوی پیامی ویکی‌پدیا]]<!-- Sort on namespace -->
}}<!--  
}}<!--  
-->{{#ifeq:{{{type|}}}|disambig|__DISAMBIG__|}}<!--  
  Magic word for disambiguation pages:
-->{{#if:{{{nocat|}}}||{{#ifeq:{{{type|}}}|disambig|__DISAMBIG__|}}}}<!--  
   Categorization:
   Categorization:
-->{{#switch:{{{type|}}}
-->{{#switch:{{{type|}}}
| setindex =  
| setindex =  
   {{category handler
   {{گرداننده رده
   | main = [[رده:همه مقاله‌های مجموعه‌نمایه]]
   | main = [[رده:همه مقاله‌های مجموعه‌نمایه]]
   | nocat = {{{nocat|}}}  <!--So "nocat=true" works-->
   | nocat = {{{nocat|}}}  <!--So "nocat=true" works-->
خط ۴۷: خط ۴۰:
| disambig    <!-- disambig = default -->
| disambig    <!-- disambig = default -->
| #default =  
| #default =  
   {{category handler
   {{گرداننده رده
   | main = [[رده:همه صفحه‌های ابهام‌زدایی]] [[رده:همه صفحه‌های ابهام‌زدایی مقاله‌ها]]
   | main = [[رده:همه صفحه‌های ابهام‌زدایی مقاله‌ها]][[رده:همه صفحه‌های ابهام‌زدایی]]
   | template =    <!-- Don't categorize on template pages. -->
   | template =    <!-- Don't categorize on template pages. -->
   | other = [[رده:همه صفحه‌های ابهام‌زدایی]]
   | other = [[رده:همه صفحه‌های ابهام‌زدایی]]
خط ۵۵: خط ۴۸:
   }}
   }}
}}<noinclude>
}}<noinclude>
 
{{توضیحات}}
{{documentation}}
<!-- Add categories to the /doc subpage and interwikis to Wikidata, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
[[رده:الگو:ابهام‌زدایی]]
[[رده:الگو:صفحه‌های مجموعه‌نمایه]]
</noinclude>
</noinclude>
کاربر ناشناس