Difference between revisions of "Template:Mbox"

From Dharmawiki
Jump to navigation Jump to search
en>Verdy p
m
Template>Amorymeltzer
m (Changed protection level for "Template:Mbox": Highly visible template: 1M transclusions, used in the interface, cascade protected ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (inde...)
Line 1: Line 1:
<table class="messagebox plainlinks layouttemplate {{{lang|}}}" {{#if:{{{lang|}}}|lang="{{{lang}}}"}} style="direction:{{Dir|{{{lang|}}}}};margin:2px auto;{{#if:{{{width|}}}|width:{{{width|}}};}}{{#switch:{{{type|}}}
+
{{#invoke:Message box|mbox}}<noinclude>
  |warning |speedy      = border:2px solid #b22222;background:#ffdbdb;
+
{{documentation}}
  |serious |delete |stop = border:2px solid #b22222;
+
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
  |issue |content        = border:2px solid #f28500;background:#ffe;<!--warn-->
 
  |query |style          = border:2px solid #f4c430;background:#ffe;<!--cleanup-->
 
  |license              = border:2px solid #88a;
 
  |legal                = border:2px solid #666;background:#fff;
 
  |honor                = border:2px solid #ca3;background:#fcf4db;
 
  |growth                = border:2px solid #8d4;background:#f5fff5;<!--alt-->
 
  |move                  = border:2px solid #93c;
 
  |protection |message  = border:2px solid #aaa;<!--none-->
 
  |notice |#default      = border:2px solid #48d;background:#fbfcff;<!--info-->
 
  }}color:#222;border-{{Dir|{{{lang|}}}|right|left}}-width:8px;border-collapse:collapse;{{{style|}}}"><tr>
 
{{#ifeq:{{{image|}}}|none
 
| <td class="mbox-empty-cell"></td><!--No image. Cell with some width or padding necessary for text cell to have 100% width.-->
 
| <td class="mbox-image" style="padding-{{Dir|{{{lang|}}}|right|left}}:.9em">{{#if:{{{image|}}}
 
  | {{{image|}}}
 
  | [[File:{{#switch:{{{type|}}}
 
    |warning |speedy  = Commons-emblem-urgent
 
    |serious |delete  = Gnome-emblem-important
 
    |stop            = Commons-emblem-hand
 
    |move            = Go-next-purple
 
    |issue |content  = Commons-emblem-issue
 
    |query            = Commons-emblem-query
 
    |style            = Gnome-edit-clear
 
    |license          = Commons-emblem-copyright
 
    |legal            = Commons-emblem-legal
 
    |honor            = Gnome-help-about
 
    |growth          = Dialog-apply
 
    |protection      = Gnome-security-medium
 
    |message          = Tango-style info icon
 
    |notice |#default = Commons-emblem-notice
 
    }}.svg|45x45px|class=noviewer|{{#ifeq:{{NAMESPACE}}|Template||link=}}]]
 
  }}</td>
 
}}<td class="mbox-text" style="{{{textstyle|}}}">{{{text}}}</td>{{#if:{{{imageright|}}}
 
| <td class="mbox-imageright">{{{imageright|}}}</td>
 
}}</tr></table><!--
 
Most templates made based on this template do not comply with [[Help:Authoring a license-template]]
 
-->{{#ifeq:{{{type|}}}|license|[[Category:Licensing templates based on Mbox]]}}<noinclude>
 
{{Pp-template}}
 
{{Documentation}}
 
 
</noinclude>
 
</noinclude>

Revision as of 03:46, 17 December 2018

Lua error in mw.lua at line 307: frame:expandTemplate: a title is required.