الگو:Ambox: تفاوت بین نسخه‌ها

از irPress.org
پرش به ناوبری پرش به جستجو
(صفحه‌ای جدید با '<table class="metadata plainlinks ambox {{#switch:{{{type|}}} | speedy = ambox-speedy | delete <!-- delete = serious --> | serious = …' ایجاد کرد)
 
جز (۱ نسخه)
 
(یک نسخهٔ میانیِ همین کاربر نمایش داده نشده است)
سطر ۱: سطر ۱:
<table class="metadata plainlinks ambox
+
{{#ifeq:{{{subst}}}|SUBST
{{#switch:{{{type|}}}
+
|{{#if:{{{name|}}}
| speedy    = ambox-speedy
+
  |{{Error|الگوی {{Tlx|{{{name}}}}} به‌نادرست جانشانی شده‌است.}}
| delete        <!-- delete = serious -->
+
}}[[Category:Pages with incorrectly substituted templates]]
| serious    = ambox-delete
+
}}{{#ifeq:{{{small}}}|left
| content    = ambox-content
+
|{{Ambox/core
| style     = ambox-style
+
  |small      = left
| move          <!-- move = merge -->
+
  |type      = {{{type|}}}
| merge      = ambox-move
+
  |image     = {{#if:{{{smallimage|}}}
| protection = ambox-protection
+
  |{{{smallimage}}}
| notice        <!-- notice = default -->
+
  |{{{image|}}}
| #default   = ambox-notice
+
  }}
}}" style="{{{style|}}}">
+
  |imageright = {{#if:{{{smallimageright|}}}
<tr>
+
  |{{{smallimageright}}}
{{#ifeq:{{{image|}}}|none
+
  |{{{imageright|}}}
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
+
  }}
| <td class="ambox-image"><div style="width: 52px;">
+
   |class      = {{{class|}}}
   {{#ifeq:{{{image|}}}|blank
+
  |style     = {{{style|}}}
   | &nbsp;
+
  |textstyle  = {{{textstyle|}}}
   | {{#if:{{{image|}}}
+
  |text      = {{#if:{{{smalltext|}}}
    | {{{image}}}
+
  |{{{smalltext}}}
    | {{#switch:{{{type|}}}
+
  |{{{text}}}
      | speedy    = [[Image:Ambox speedy deletion.png|40x40px|link=]]
+
  }}
      | delete
+
}}
      | serious    = [[Image:Ambox deletion.png|40x40px|link=]]
+
|{{Ambox/core
      | content    = [[Image:Ambox content.png|40x40px|link=]]
+
  |type      = {{{type|}}}
      | style      = [[Image:Ambox style.png|40x40px|link=]]
+
  |image      = {{{image|}}}
      | move
+
  |imageright = {{{imageright|}}}
      | merge      = [[Image:Ambox move.png|40x40px|link=]]
+
   |class      = {{{class|}}}
      | protection = [[Image:Ambox protection.png|40x40px|link=]]
+
  |style      = {{{style|}}}
      | notice          <!-- notice = default -->
+
  |textstyle  = {{{textstyle|}}}
      | #default  = [[Image:Ambox notice.png|40x40px|link=]]
+
   |text      = {{{text}}}
      }}
+
   |date      = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
 +
  |{{#ifeq:{{{date|¬}}}|¬||{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
 +
  |{{{date|}}}
 +
  }}
 +
}}
 +
}}{{Category handler
 +
|main={{Ambox/category
 +
  |cat={{{cat|{{{category|}}}}}}
 +
  |all={{{all|}}}
 +
  |cat2={{{cat2|{{{category2|}}}}}}
 +
  |all2={{{all2|}}}
 +
  |cat3={{{cat3|{{{category3|}}}}}}
 +
  |all3={{{all3|}}}
 +
  |date={{{date|}}}
 +
}}
 +
|template={{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|<!--We are on a rootpage, not a /doc or /sandbox page-->{{#ifeq:{{{nocat|}}}|true
 +
    | <!--Don't categorise-->
 +
    | [[رده:الگوهای پیامی مقاله‌ها|{{BASEPAGENAME}}]]
 
     }}
 
     }}
   }}</div></td>
+
   }}
}}
+
}}{{#ifeq:{{FULLPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
<td class="ambox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
+
|{{#ifeq:{{{doc}}}|no|
{{#if:{{{imageright|}}}
+
  |{{Documentation}}<!-- Transclude documentation on template page -->
| <td class="ambox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td>
+
}}
}}
+
}}<noinclude>
</tr>
+
{{Documentation}}
</table><noinclude>
 
{{توضیحات}}
 
[[رده:فراالگوهای ویکی‌پدیا]]
 
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

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