| Message box standardisation
Here are some useful pages:
- {{ambox}} – For article message boxes.
- {{cmbox}} – For category message boxes.
- {{hmbox}} – For hatnote message boxes.
- {{imbox}} – For image page message boxes.
- {{mbox}} – Has namespace detection, for message boxes that are used on several types of pages thus need to change style depending on what page they are used on.
- {{tmbox}} – For talk page message boxes.
- {{ombox}} – For other pages message boxes.
Meta pages:
|
Archives |
|
|
This page has archives. Sections older than 21 days may be automatically archived by Lowercase sigmabot III when more than 7 sections are present. |
| This 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)
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)
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)
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)
- 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:
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)
- 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.
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)