Template:Resource badge: Difference between revisions
(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> |
Revision as of 14:48, 7 March 2011
id | info |
---|
The above documentation is transcluded from Template:Resource badge/doc. (editEditors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |