Template:Mbox: Difference between revisions

From TetrisWiki
Jump to navigation Jump to search
 
Add some base styles since I can't edit CSS
Line 1: Line 1:
<onlyinclude><div {{#if: {{{id|}}} | id="{{{id}}}"}} class="mbox {{#ifeq: {{{small|}}} | yes | mbox-small}} {{#switch: {{ucfirst:{{{namespace|{{NAMESPACE}}}}}}} | {{TALKSPACE}} | Talk = tmbox | {{ns:category}} = cmbox | {{ns:file}} = imbox | {{ns:template}} = xmbox | {{ns:0}} | Main = ambox | Header | Footer = fmbox | #default = ombox }} {{#if: {{{type|}}} | mbox-{{{type}}} }} {{#ifeq: {{{plainlinks|}}} | yes | plainlinks}} {{#if: {{{class|}}} | {{{class}}}}}" {{#if: {{{style|}}} | style="{{{style}}}"}}>{{#if: {{{image|}}} | <div class="mbox-image">{{{image|}}}</div> }}<div class="mbox-message" {{#if: {{{textstyle|}}} | style="{{{textstyle}}}"}}>{{#if: {{{issue|}}} | {{{issue|}}}{{#if: {{{fix|}}} | &#32;{{{fix|}}}}} | {{{text|}}} }}{{#if: {{{date|}}} | &#32;<span class="mbox-date">({{{date|}}})</span> }}<div class="mbox-info">{{{info|}}}</div></div>{{#if: {{{imageright|}}} | <div class="mbox-image">{{{imageright|}}}</div> }}</div>{{#ifeq: {{{doc|}}} | yes || {{#if: {{{cat|}}} | <includeonly>[[Category:{{{cat|}}}|{{PAGENAME}}]]</includeonly>}}}}</onlyinclude>
<onlyinclude><div {{#if: {{{id|}}} | id="{{{id}}}"}} style="display: flex; flex-direction: row; justify-content: space-between; align-items: center; height: auto; box-sizing: border-box; margin: 4px 5%; padding: 0.25em; font-size: 95%;" class="mbox {{#ifeq: {{{small|}}} | yes | mbox-small}} {{#switch: {{ucfirst:{{{namespace|{{NAMESPACE}}}}}}} | {{TALKSPACE}} | Talk = tmbox | {{ns:category}} = cmbox | {{ns:file}} = imbox | {{ns:template}} = xmbox | {{ns:0}} | Main = ambox | Header | Footer = fmbox | #default = ombox }} {{#if: {{{type|}}} | mbox-{{{type}}} }} {{#ifeq: {{{plainlinks|}}} | yes | plainlinks}} {{#if: {{{class|}}} | {{{class}}}}}" {{#if: {{{style|}}} | style="{{{style}}}"}}>{{#if: {{{image|}}} | <div class="mbox-image" style="padding: 0.25em;">{{{image|}}}</div> }}<div class="mbox-message" {{#if: {{{textstyle|}}} | style="{{{textstyle}}}"}}>{{#if: {{{issue|}}} | {{{issue|}}}{{#if: {{{fix|}}} | &#32;{{{fix|}}}}} | {{{text|}}} }}{{#if: {{{date|}}} | &#32;<span class="mbox-date">({{{date|}}})</span> }}<div class="mbox-info">{{{info|}}}</div></div>{{#if: {{{imageright|}}} | <div class="mbox-image">{{{imageright|}}}</div> }}</div>{{#ifeq: {{{doc|}}} | yes || {{#if: {{{cat|}}} | <includeonly>[[Category:{{{cat|}}}|{{PAGENAME}}]]</includeonly>}}}}</onlyinclude>

Revision as of 23:13, 20 December 2018