Відмінності між версіями «Шаблон:Mbox»

Матеріал з Аероскан Сервіс
Перейти до: навігація, пошук
(This template has now been checked and tested, it works correctly in the new "Book:" and "Book talk:" namespaces. And a minor update to "{{pp-template}}".)
(notice: Book notice.svg -> Warning icon WikiBooks.svg)
Рядок 1: Рядок 1:
{{
+
<includeonly><table class="plainlinks noprint messagebox {{{type|notice}}}" {{#if:{{{style|}}}|style="{{{style}}}"}}> 
  {{namespace detect
+
<tr style="vertical-align:middle;">{{#ifeq:{{{image|yes}}}|none
  | demospace = {{{demospace|}}}
+
|<!-- no image cell -->
  | main      = ambox
+
|<td style="padding:0.1em; text-align:center; vertical-align:middle; width:45px;">
  | talk      = tmbox
+
{{#if:{{{image|}}}|[[Image:{{{image}}}|{{{size|40x40px}}}]]|{{#switch:{{{type|}}}
  | file      = imbox
+
| warning = [[Image:Nuvola apps important.svg|{{{size|40x40px}}}]]
  | category = cmbox
+
| serious  = [[Image:Stop hand nuvola.svg|{{{size|40x40px}}}]]
  | other    = ombox
+
| content  = [[Image:Book important2.svg|{{{size|45x45px}}}]]
  }}
+
| style    = [[Image:Applications-office.svg|{{{size|40x40px}}}]]
| type      = {{{type|}}}
+
| merge    = [[Image:Merge-split-transwiki default.svg|{{{size|40x40px}}}]]
| image      = {{{image|}}}
+
| move    = [[Image:Merge-split-transwiki default.svg|{{{size|40x40px}}}]]
| imageright = {{{imageright|}}}
+
| notice  = [[Image:Warning icon WikiBooks.svg|{{{size|40x40px}}}]]
| style      = {{{style|}}}
+
| growth  = [[Image:Nuvola apps bookcase.svg|{{{size|40x40px}}}]]
| textstyle = {{{textstyle|}}}
+
  | idea    = [[Image:Dialog-information on.svg|{{{size|40x40px}}}]]
| text      = {{{text}}}
+
| query    = [[Image:Emblem-question.svg|{{{size|40x40px}}}]]
| small      = {{{small|}}}
+
| free    = [[Image:GreenCopyleft.svg|{{{size|40x40px}}}]]
| smallimage = {{{smallimage|}}}
+
| nonfree  = [[Image:Orange copyright.svg|{{{size|40x40px}}}]]
| smallimageright = {{{smallimageright|}}}
+
| pd      = [[Image:PD-icon.svg|{{{size|40x40px}}}]]
| smalltext = {{{smalltext|}}}
+
| blank    = <!-- empty image cell -->
}}<noinclude>
+
|#default = [[Image:Book notice.svg|{{{size|40x40px}}}]]}}}}</td>}}
 
+
<td style="{{{text style|color:black; text-align:left; vertical-align:middle; padding:0.5em; padding-left:0em;}}}">
{{pp-template}}
+
{{{1|{{{msg|{{{text|''Enter Text''}}}}}}}}}
 +
</td>
 +
{{#if:{{{imageright|}}}|<td style="padding:0.1em; padding-left:0em; text-align:center; vertical-align:middle;">{{{imageright}}}</td>}}
 +
</tr></table></includeonly>
 +
<noinclude>
 
{{documentation}}
 
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
[[Category:Infobox templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Версія за 01:20, 2 лютого 2010


30px Template documentation[create]