Template:Mbox: Difference between revisions
From sc2k-reverse
Jump to navigationJump to search
Araxestroy (talk | contribs) Created page with "<table class="msgbox {{#if: {{{classes|}}}|{{{classes}}}|}}" style="{{ #if: {{{border|}}} | border-color: {{{border}}}; | }} {{ #if: {{{background|}}} | background: {{{background}}}; | }} {{ #if: {{{color|}}} | color: {{{color}}}; | }}"><tr><td class="msgboximg" style="min-width:{{{min-width|64}}}px;">[[File:{{{image|Placeholder.png}}}| {{{pic-align|center}}} | {{{caption|Hmmm...}}} | {{{iwidth|64}}}px]]</td><td>{{{text|'''Message box template'''.<br>Use attribute 'text'..." |
Araxestroy (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<table class="msgbox {{#if: {{{classes|}}}|{{{classes}}}|}}" style="{{ #if: {{{border|}}} | border-color: {{{border}}}; | }} {{ #if: {{{background|}}} | background: {{{background}}}; | }} {{ #if: {{{color|}}} | color: {{{color}}}; | }}"><tr><td class="msgboximg" style="min-width:{{{min-width|64}}}px;">[[File:{{{image|Placeholder.png}}}| {{{pic-align|center}}} | {{{caption|Hmmm...}}} | {{{iwidth|64}}}px]]</td><td>{{{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 class="msgbox {{#if: {{{classes|}}}|{{{classes}}}|}}" style="{{ #if: {{{border|}}} | border-color: {{{border}}}; | }} {{ #if: {{{background|}}} | background: {{{background}}}; | }} {{ #if: {{{color|}}} | color: {{{color}}}; | }}"><tr><td class="msgboximg" style="min-width:{{{min-width|64}}}px;">[[File:{{{image|Placeholder.png}}}| {{{pic-align|center}}} | {{{caption|Hmmm...}}} | {{{iwidth|64}}}px]]</td><td>{{{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}}}]] | }} | ||
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). Lovingly borrowed from [https://tcrf.net The Cutting Room Floor]. | <noinclude>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). Lovingly borrowed from [https://tcrf.net The Cutting Room Floor]. | ||
<nowiki>{{mbox</nowiki> | <nowiki>{{mbox</nowiki> | ||
Line 19: | Line 19: | ||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
[[Category:Templates]]</noinclude> |
Latest revision as of 00:06, 6 March 2025
![]() | Message box template. Use attribute 'text' to change this! |
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). Lovingly borrowed from The Cutting Room Floor.
{{mbox | text= Text inside the box optional: | image= Image to use (1:1 aspect ratio, resized to 64×64), file name only, e.g. File:Placeholder.png would be Placeholder.png only. | iwidth= Image width in pixels (keep it at 64 generally), e.g. 64. | 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. }}