Template:Section: Difference between revisions
From Elwiki
m (Text replacement - "; *;" to ";") |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>__NOTOC__<table cellspacing="0" cellpadding="0" style="position: relative; width:{{{Widths|100%}}}; padding: 0; margin: 0; font-size: 1em; line-height: 1.5em; border: 1px #000 solid; border-bottom: none; border-spacing: 0;{{{SectionSty|}}}" {{{Attr|}}}> | <includeonly>__NOTOC__<table cellspacing="0" cellpadding="0" style="position: relative; width:{{{Widths|100%}}}; padding: 0; margin: 0; font-size: 1em; line-height: 1.5em; border: 1px #000 solid; border-bottom: none; border-spacing: 0;{{{SectionSty|}}}" {{{Attr|}}}> | ||
<tr style="width: 100%; text-align: center; vertical-align: middle; height: 2em;{{{ | <tr style="width: 100%; text-align: center; vertical-align: middle; height: 2em;{{{hStyles|}}}">{{#forargs:Title | ||
| key | | key | ||
| value | | value | ||
| {{#ifexpr:{{#if:{{#var:value|}}|1|0}} and {{Isnumeric|{{#var:key|}}}}|<th style="width:{{{Width{{#var:key|}}|{{{Width|}}}}}}; {{#ifeq:{{#var:key|}}|0||border-left: 1px #000 solid;}}border-bottom: 1px #000 solid; background-color:{{{Color{{#var:key|}}|{{{Color|}}}}}};{{{ | | {{#ifexpr:{{#if:{{#var:value|}}|1|0}} and {{Isnumeric|{{#var:key|}}}}|<th style="width:{{{Width{{#var:key|}}|{{{Width|}}}}}}; {{#ifeq:{{#var:key|}}|0||border-left: 1px #000 solid;}}border-bottom: 1px #000 solid; background-color:{{{Color{{#var:key|}}|{{{Color|}}}}}};{{{hStyle|}}};{{{hStyle{{#var:key|}}|}}}" {{{Attr{{#var:key|}}|}}}><{{#ifeq:{{{heading|}}}|true|h2|span}} id="{{anchorencode:{{#var:value|}}}}" style="border-bottom: none; display: inline; font-size: 1em; font-weight: bold; color: #fff; text-shadow: 1px 1px 1px black;">{{#var:value|}}</{{#ifeq:{{{heading|}}}|true|h2|span}}></th>}}}}</tr> | ||
<tr style="width: 100%; vertical-align: top;{{{Styles|}}}">{{#forargs:Title | <tr style="width: 100%; vertical-align: top;{{{Styles|}}}">{{#forargs:Title | ||
| key | | key |
Revision as of 15:03, 7 January 2015
Section Template |
---|
Section is an UI template developed by boxsnake, in order to enhance the UI design. Also, this is an example of Section. |
Parameters |
---|
|
Other Samples | ||
---|---|---|
{{Section | SectionSty=border: 2px #ccc solid; border-radius: 5px; | Color0=lightblue | Title0=Sample 1 | Content0=Sample 1 }} |