Editing Template:BaseInfoBox From DoomWiki.org Warning: You are not logged in. Your IP address will be recorded in this page's edit history. Anti-spam check. Do not fill this in! <div class="boilerplate {{#if:{{{classes|}}}|{{{classes}}}|}}" {{#if:{{{id|}}}|id="{{{id}}}"|}} style="overflow: auto; max-width: 90%; {{#if:{{{width|}}}|width: {{{width}}};|}} margin: {{#if:{{{margins|}}}|{{{margins}}}|0 auto 2em auto}}; text-align: {{#if:{{{textalign|}}}|{{{textalign}}}|center}}; padding: {{#if:{{{padding|}}}|{{{padding}}}|0 1em}}; border: {{#if:{{{border|}}}|{{{border}}}|1px solid}} {{#switch: {{{colorscheme}}} | info = #99C | warning = #FF7777 | dead = #656565 | gray = #888 | parchment = #CC9 | royalblue = #79B | easter = #79B | purple = #3B005B | lilac = #C0B8CC | orange = #F28500 | clearred = #C03030 | camel = #C0C090 | #CC9 }}; background: {{#switch: {{{colorscheme}}} | info = #CEDFF2 | warning = #F3C3C3 | dead = #999 | gray = #DDD | parchment = #F1F1DE | royalblue = #D3E3FF | easter = #FEF1E6 | purple = #DCCBEF | lilac = #F0E5FF | orange = #F8EABA | clearred = #FBFBFB | camel = #F8EABA | #F1F1DE }};"><!-- Full content specified? -->{{#if:{{{fullcontent|}}}|{{{fullcontent}}}|<!-- A standard content form is in use. Icon is outside content if floating -->{{#switch: {{{iconpos}}}|none|center|left|right = {{#if:{{{icon|}}}|[[File:{{{icon}}}{{!}}{{{iconsize}}}{{!}}{{{iconpos}}}]]|}} }}<!-- Content is inline. --><p class="nometa" {{#if:{{{textstyle|}}}|style="{{{textstyle}}}"|}}><!-- Icon is inline with content if not floating -->{{#switch:{{{iconpos}}}|top|text-top|super|baseline|sub|middle|text-bottom|bottom = {{#if:{{{icon|}}}|[[File:{{{icon}}}{{!}}{{{iconsize}}}{{!}}{{{iconpos}}}]]|}} }}<!-- Directly specified content -->{{{content}}}</p><div style="clear:both;"></div><!-- End if !fullcontent -->}}</div><noinclude> ==Documentation== Base class template for article-top information boxes. ===Parameters=== * {{c|icon}}: Name of a file to display as an icon (optional). If provided, {{c|iconpos}} and {{c|iconsize}} are required. Must be floating if {{c|tc}} is specified. ** {{c|iconsize}}: Size of icon. Required if an icon is specified. ** {{c|iconpos}}: Floating or inline position of icon. Required if an icon is specified. * {{c|classes}}: Extra CSS class(es) to apply. "boilerplate" is always applied. * {{c|id}}: HTML entity id to apply; default none. This should be unique per descendent template. * {{c|width}}: CSS width to apply. Default is unspecified and will fill the article width minus the default margins. Will not exceed 90% of article width. * {{c|margins}}: CSS margins. Default: 0 auto 1.5em auto. Do '''not''' include whitespace, br tags, etc after a descendant template transclusion! Change the bottom margin instead if extra space between the box and article content is desired. * {{c|textalign}}: CSS text alignment. Default is center. * {{c|padding}}: CSS padding inside infobox. Default: 0 1em. * {{c|border}}: CSS border styling. Default: 1px solid. Do not include color; color is determined by the {{c|colorscheme}} parameter. * {{c|colorscheme}}: Determines background and border color. Possible values: ** {{c|info}}: <span style="background: #CEDFF2; border: 1px solid #99C">Baby blue</span> ** {{c|warning}}: <span style="background: #F3C3C3; border: 1px solid #FF7777">Warning red</span> ** {{c|dead}}: <span style="background: #999; border: 1px solid #656565">Dead gray</span> ** {{c|gray}}: <span style="background: #DDD; border: 1px solid #888">Neutral gray</span> ** {{c|parchment}}: <span style="background: #F1F1DE; border: 1px solid #CC9">Parchment tan</span>. This is the default. ** {{c|royalblue}}: <span style="background: #D3E3FF; border: 1px solid #79B">Royal blue</span> ** {{c|easter}}: <span style="background: #FEF1E6; border: 1px solid #79B">Easter egg</span> ** {{c|purple}}: <span style="background: #DCCBEF; border: 1px solid #3B005B">Purple</span> ** {{c|lilac}}: <span style="background: #F0E5FF; border: 1px solid #C0B8CC">Lilac</span> ** {{c|orange}}: <span style="background: #F8EABA; border: 1px solid #F28500">Orange</span> ** {{c|clearred}}: <span style="background: #FBFBFB; border: 1px solid #C03030">Clear Red</span> ** {{c|camel}}: <span style="background: #F8EABA; border: 1px solid #C0C090">Camel</span> * {{c|textstyle}}: CSS style to apply to text. Default none. * {{c|content}}: Place content of descendent template here. '''''Deprecated.''''' Use {{c|fullcontent}} instead. * {{c|fullcontent}}: Alternatively to use of content, specify the entire contents of the infobox using this parameter. [[Category:InfoBox classes]] </noinclude> Summary: All contributions to DoomWiki.org are considered to be released under the CC BY-SA 4.0 International (see Doom Wiki:Copyrights for details). By contributing, you agree to be bound by the Terms of Use. Your changes will be visible immediately. Please enter a summary of your changes above. Do not submit copyrighted images or text without permission! This includes text taken from in-game codices or logbooks, or from official instruction manuals, strategy guides, and other such books. This project is not affiliated with id Software, Raven Software, ZeniMax Media, Bethesda SoftWorks, or any other commercial software developer or publisher. Use of trademarked logos and other protected intellectual property is solely for the purpose of analysis and critical commentary on the identified products and associated fan community activity, and does not imply any endorsement by any of these organizations or their employees, past or present. Upload images to the wiki. Don't forget to categorize pages! For testing, please use a sandbox. View this template Cancel | Editing help (opens in new window) Template used on this page: Template:C (edit)