Template talk:Imbox
Message box standardisation
Here are some useful pages:
Meta pages:
|
Template:Imbox is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
|
|||
This page has archives. Sections older than 21 days may be automatically archived by Lowercase sigmabot III when more than 7 sections are present. |
Add 'class' for restriction tags
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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
editHi 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
editI'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?
editSeveral 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
editPlease see and comment at Template_talk:Navbar#Wider support for V • T • E links.--Elvey(t•c) 08:07, 23 January 2016 (UTC)
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)
Template:Imbox → Template: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)
- 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)
- 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:
andMedia:
prefixes still are aliases to the File namespace, I do not see a significant advantage. Zzyzx11 (talk) 06:31, 26 October 2019 (UTC)
- 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?
editCurrently (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)
Template-protected edit request on 24 April 2023
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
{{{FAL}} Boosquet (talk) 14:47, 24 April 2023 (UTC)
- 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)