Template talk:Imbox

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Change Style Image[edit]

{{editprotected}} Could the style image be changed from

[[Image:Imbox style.png|40x40px]]

to

[[Image:Edit-clear.svg|40x40px|link=|alt=]]

so that it matches the image used in {{ambox/core}}, {{cmbox}}, {{tmbox/core}} and {{ombox/core}}. Thanks -- WOSlinker (talk) 07:06, 18 July 2010 (UTC) WOSlinker (talk) 07:06, 18 July 2010 (UTC)

 Done —  Tivedshambo  (t/c) 07:22, 18 July 2010 (UTC)

Classes[edit]

Please see centralised discussion at Wikipedia talk:Manual of Style/Article message boxes#Classes. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 10:22, 29 November 2011 (UTC)

Add 'class' for restriction tags[edit]

It would be appreciated if an appropriate class could be added for non copyright restrictions, like those listed in {{ir-Money}}, {{ir-Mughshot}} etc... Sfan00 IMG (talk) 18:00, 29 September 2012 (UTC)

Please descibe what exactly needs to be edited. Edokter (talk) — 21:20, 29 September 2012 (UTC)

Add important[edit]

Hi please could someone add the following codes


<table class="{{#if:{{yesno|{{{plainlinks|yes}}}}}|plainlinks}} imbox 
{{#switch:{{{type|}}}
| important  = imbox-important
| speedy     = imbox-speedy
| delete     = imbox-delete
| content    = imbox-content
| style      = imbox-style
| move       = imbox-move
| protection = imbox-protection
| license    = imbox-license
| featured   = imbox-featured
| notice          <!-- notice = default -->
| #default   = imbox-notice
}} {{{class|}}}" style="{{{style|}}}">
<tr>
{{#ifeq:{{{image|}}}|none
| <!-- 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">
  {{#if:{{{image|}}}
  | {{{image}}}
  | {{#switch:{{{type|}}}
    | important    = [[Image:Ambox important.svg|40x40px|alt=|link=]]
    | speedy     = [[Image:Imbox speedy deletion.png|40x40px|alt=|link=]] 
    | delete     = [[Image:Imbox deletion.png|40x40px|alt=|link=]] 
    | content    = [[Image:Imbox content.png|40x40px|alt=|link=]]
    | style      = [[Image:Edit-clear.svg|40x40px|link=|alt=]]
    | move       = [[Image:Imbox move.png|40x40px|alt=|link=]]
    | protection = [[Image:Imbox protection.png|40x40px|alt=|link=]]
    | license    = [[Image:Imbox license.png|40x40px|alt=|link=]]
    | featured   = [[Image:Imbox featured.png|40x40px]]
    | notice          <!-- notice = default -->
    | #default   = [[Image:Imbox notice.png|40x40px|alt=|link=]]
    }}
  }}</td>
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td class="mbox-imageright"> {{{imageright}}} </td>
}}
</tr>
{{#if:{{{below|}}}
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr>
}}
</table><!-- Detect and report usage with faulty "type" parameter:
-->{{#switch:{{{type|}}}
|   <!-- No type fed, is also valid input -->
| important
| speedy
| delete
| content
| style
| move
| protection
| license
| featured
| notice     =    <!-- 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 -->
}}<!--

--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:File message boxes]]}}}}</includeonly><!--

--><noinclude>

{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Please 90.209.78.127 (talk) 16:23, 21 May 2013 (UTC)

There is no consensus for your decision, plus such a parameter would not work because there are no CSS classes for this non-existent mode. ViperSnake151  Talk  20:42, 21 May 2013 (UTC)

Switch of mbox templates and category handler to Lua[edit]

I've made a request over at Template talk:Mbox about switching all of the {{mbox}} family templates, plus the {{category handler}} template, to use Lua modules. These templates have millions of transclusions, so I would appreciate comments and some more eyes on the code. Please let me know what you think over at the request page. — Mr. Stradivarius ♪ talk ♪ 15:10, 15 October 2013 (UTC)

The proposed changes are now up live - this template has been switched to use Module:Message box. — Mr. Stradivarius ♪ talk ♪ 12:58, 20 October 2013 (UTC)

Bug with imageright?[edit]

Several months ago, I found a bug with {{Vector version available}} (e.g. shown here)). Is this a bug related to imageright? If not, does anyone know how to fix the linked template to make it work correctly? +mt 00:54, 28 September 2015 (UTC)

Wider support for V • T • E links[edit]

Please see and comment at Template_talk:Navbar#Wider support for V • T • E links.--Elvey(tc) 08:07, 23 January 2016 (UTC)