Template:Mbox: Difference between revisions
Jump to navigation
Jump to search
(I like this one better) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<table {{ #if: {{{classes|}}} | class="{{{classes}}}"; | }} style="width: 95%; margin: 0em 2em 1em 3em; -moz-border-radius: 0 8px 0 8px; border-radius: 0 8px 0 8px; padding: 0; border-spacing: 0; border: 1px solid {{ #if: {{{border|}}} | {{{border}}} | #888 }}; background: {{ #if: {{{background|}}} | {{{background}}} | #ddd }}; color: {{ #if: {{{color|}}} | {{{color}}} | #000 }};"><tr><td style="vertical-align: middle; padding: 0.5em 1em 0.5em 1em; width: 10%; min-width:{{{min-width|50}}}px;">[[File:{{{image|Placeholder.png}}}| {{{pic-align|center}}} | {{{caption|Hmmm…}}} | {{{iwidth|50}}}px]]</td><td style="vertical-align: middle; padding: 0.5em 1em 0.5em 0em; width: 100%;">{{{text|'''Message box template'''.<br>Use attribute 'text' to change this!}}}</td></tr></table>{{ #if: {{{category1|}}} | [[Category:{{{category1}}}]] | }}{{ #if: {{{category2|}}} | [[Category:{{{category2}}}]] | }}{{ #if: {{{category3|}}} | [[Category:{{{category3}}}]] | }}<noinclude> | <table {{ #if: {{{classes|}}} | class="{{{classes}}}"; | }} style="width: 95%; margin: 0em 2em 1em 3em; -moz-border-radius: 0 8px 0 8px; border-radius: 0 8px 0 8px; padding: 0; border-spacing: 0; border: 1px solid {{ #if: {{{border|}}} | {{{border}}} | #888 }}; background: {{ #if: {{{background|}}} | {{{background}}} | #ddd }}; color: {{ #if: {{{color|}}} | {{{color}}} | #000 }};"><tr><td style="vertical-align: middle; padding: 0.5em 1em 0.5em 1em; width: 10%; min-width:{{{min-width|50}}}px;">[[File:{{{image|Placeholder.png}}}| {{{pic-align|center}}} | {{{caption|Hmmm…}}} | {{{iwidth|50}}}px]]</td><td style="vertical-align: middle; padding: 0.5em 1em 0.5em 0em; width: 100%;">{{{text|'''Message box template'''.<br>Use attribute 'text' to change this!}}}</td></tr></table>{{ #if: {{{category1|}}} | [[Category:{{{category1}}}]] | }}{{ #if: {{{category2|}}} | [[Category:{{{category2}}}]] | }}{{ #if: {{{category3|}}} | [[Category:{{{category3}}}]] | }}<noinclude> | ||
{{Cascade-protected template}} | |||
Message box template, used for generating an easy-to-make nagbox for people. Will probably be used in other container templates to automate some selections (image, color, etc.). | Message box template, used for generating an easy-to-make nagbox for people. Will probably be used in other container templates to automate some selections (image, color, etc.). | ||
Revision as of 01:23, 5 December 2023
Message box template. Use attribute 'text' to change this! |
This template is transcluded in one or more cascade-protected pages, so only administrators can edit it. |
Message box template, used for generating an easy-to-make nagbox for people. Will probably be used in other container templates to automate some selections (image, color, etc.).
{{mbox | text= Text inside the box optional: | image= Image to use (1:1 aspect ratio, resized to 50×50), file name only, e.g. File:Placeholder.png would be Placeholder.png only. | iwidth= Image width in pixels (keep it at 50 generally), e.g. 50. | caption= Image caption. | border= Border color, e.g. named constants, #0123456, #123, etc. | background= Background color. | color= Text color. | category1= Category to put this page in. | category2= Second category to put this page in. | category3= Third category to put this page in. | min-width= Minimum width to put the picture in. | pic-align= Picture alignment. Use left, right, or center. Defaults to center. | classes= Additional HTML class or classes alongside "msgbox". Make sure any you add are unique, as will be used for custom CSS styles. }}