Template:Resource badge: Difference between revisions

add default width-h
(change width parameter names)
(add default width-h)
Line 1: Line 1:
{{#switch: {{{layout|horizontal}}}
{{#switch: {{{layout|horizontal}}}
| horizontal =<div style="float:{{{float|right}}}; border:{{{border-width|{{{border-s|1}}}}}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin:1px; ;" >
| horizontal =<div style="float:{{{float|right}}}; border:{{{border-width|{{{border-s|1}}}}}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin:1px; ;" >
<table cellspacing="0" style="width:{{{width-h|}}}px; margin-bottom: 0px; background:{{{info-background|{{{2|{{{info-c|#EEE}}}}}}}}};" ><tr>
<table cellspacing="0" style="width:{{{width-h|300}}}px; margin-bottom: 0px; background:{{{info-background|{{{2|{{{info-c|#EEE}}}}}}}}};" ><tr>
{{#if:{{{logo|{{{3|{{{id|id}}}}}}}}}|
{{#if:{{{logo|{{{3|{{{id|id}}}}}}}}}|
<th style="width:{{{logo-width|{{{id-w|45}}}}}}px; height:{{{logo-height|{{{id-h|45}}}}}}px; background:{{{logo-background|{{{1|{{{id-c|#DDD}}}}}}}}}; text-align:center; font-size:{{{logo-size|{{{5|{{{id-s|14}}}}}}}}}pt; color:{{{logo-color|{{{id-fc|black}}}}}}; padding:{{{logo-padding|{{{id-p|1px}}}}}}; line-height:{{{logo-line-height|{{{id-lh|1.25em}}}}}}; vertical-align: middle; {{{logo-other-param|{{{id-op|}}}}}}" > {{{logo|{{{3|{{{id|id}}}}}}}}}</th>
<th style="width:{{{logo-width|{{{id-w|45}}}}}}px; height:{{{logo-height|{{{id-h|45}}}}}}px; background:{{{logo-background|{{{1|{{{id-c|#DDD}}}}}}}}}; text-align:center; font-size:{{{logo-size|{{{5|{{{id-s|14}}}}}}}}}pt; color:{{{logo-color|{{{id-fc|black}}}}}}; padding:{{{logo-padding|{{{id-p|1px}}}}}}; line-height:{{{logo-line-height|{{{id-lh|1.25em}}}}}}; vertical-align: middle; {{{logo-other-param|{{{id-op|}}}}}}" > {{{logo|{{{3|{{{id|id}}}}}}}}}</th>
90,866

edits