Template:Side box: Difference between revisions
make metadata optional - this metatemplate 1is used to create content boxes (eg {{listen}}) as well as maintenance templates (ambox-small etc)
(add plainlist class, which makes adds semantic value when multiple elements are used. any problems with this, please let me know) |
(make metadata optional - this metatemplate 1is used to create content boxes (eg {{listen}}) as well as maintenance templates (ambox-small etc)) |
||
Line 1: | Line 1: | ||
<table class="metadata mbox-small{{#ifeq:{{lc:{{{position|}}}}}|left|-left}} {{{class|}}}" style="border:1px solid #aaa; background-color:#f9f9f9; {{{style|}}}"> | <table class="{{#ifeq:{{lc:{{{metadata|}}}}}|no||metadata}} mbox-small{{#ifeq:{{lc:{{{position|}}}}}|left|-left}} {{{class|}}}" style="border:1px solid #aaa; background-color:#f9f9f9; {{{style|}}}"> | ||
{{#if:{{{above|}}} | {{#if:{{{above|}}} | ||
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}{{{abovestyle|}}}"> | | <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}{{{abovestyle|}}}"> |