Template talk:Imbox

(Redirected from Template talk:Imbox/testcases)
Latest comment: 1 year ago by Paine Ellsworth in topic Template-protected edit request on 24 April 2023

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)Reply

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

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)Reply

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)Reply

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)Reply

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)Reply

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)Reply

edit

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

Requested move 22 October 2019

edit
The following is a closed discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. Editors desiring to contest the closing decision should consider a move review after discussing it on the closer's talk page. No further edits should be made to this discussion.

The result of the move request was: not moved (non-admin closure) CAPTAIN MEDUSAtalk 12:36, 30 October 2019 (UTC)Reply


Template:ImboxTemplate:Mmbox – Since the File namespace isn't just for images anymore, I think moving the page to Template:Mmbox might be a good idea. The name, standing for Media Message Box, is a much more fitting designation for this template in my opinion. As much as I would prefer moving this page to Template:Fmbox, I think doing so would likely break way too many things, so I believe that a move to Template:Mmbox would be less confusing. InvalidOS (talk) 23:05, 22 October 2019 (UTC)Reply

  • Oppose. It's an image 99.9% of the time, and I suspect that if people are using this to insert a sound file or a video, they are terribly misusing this template anyway. SnowFire (talk) 17:20, 25 October 2019 (UTC)Reply
  • Oppose. Template:Mmbox currently redirects to Template:Mbox, likely as a plausible typo. It is convenient to have those message box meta-templates start with a different letter, especially when maintaining Module:Message box, the lua module generating them. I suppose Module:Message box could still work without modifying all those lines, but it would be inconsistent if the module still refers to the template as "imbox". And since both Image: and Media: prefixes still are aliases to the File namespace, I do not see a significant advantage. Zzyzx11 (talk) 06:31, 26 October 2019 (UTC)Reply

The above discussion is preserved as an archive of a requested move. Please do not modify it. Subsequent comments should be made in a new section on this talk page or in a move review. No further edits should be made to this section.

type=license = class=licensetpl?

edit

Currently (since Mr. Stradivarius’s edit completing the edit request of Guillaume (WMF)) the template sets class="licensetpl" if the type parameter is license. This is not always the case, as also non-copyright restriction templates (like {{Insignia}}, {{Trademark}} or {{Brands of the World SVG}}) use this type. The presence of the class causes files like File:Access Air logo.svg with sufficient license template (containing required metadata) to lose this information and end up in Category:Files with no machine-readable license. As probably most templates with this type are license templates indeed, I think the best solution would be adding a new type (e.g. licenselike) which would have the exact same styling but without the licensetpl CSS class, and then going through all usages and fix the ones that aren’t license templates. (I didn’t create a formal edit request, as I’m not 100% sure this would be the best solution. I’m open to other ideas.) —Tacsipacsi (talk) 19:54, 16 March 2020 (UTC)Reply

Template-protected edit request on 24 April 2023

edit

{{{FAL}} Boosquet (talk) 14:47, 24 April 2023 (UTC)Reply

  Not done: it's not clear what changes you want to be made. Please mention the specific changes in a "change X to Y" format and provide a reliable source if appropriate. P.I. Ellsworth , ed. put'er there 15:48, 24 April 2023 (UTC)Reply