Zmiany

Skocz do: nawigacja, szukaj

Szablon:Infobox

Dodane 7101 bajtów, 19:34, 23 sty 2008
replacing with a functioning meta-template I prototyped at User:Bryan Derksen/Template sandbox.
{| <table class="infobox bordered" style="width: 25em; text-align: left; font-size: 90%;{{{bodystyle|}}}">|-<tr>| <td colspan="2" style="text-align:center; font-size: large;background:#ccf; {{{titlestyle|}}}" ><span style="float:right; margin-right:1em;">{{Tnavbar| '''{{{name}}}'''|fontstyle={{{titlestyle|}}};border:none;|mini=1}}</span> {{{title}}}</td></tr>{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align:center; {{{imagestyle|}}}"> {{{image}}} {{#if:{{{caption|}}}|<br><span style="{{{captionstyle|}}}">{{{caption}}} }}</span></td></tr>}}{{#if:{{{header1|}}}| <tr><th colspan="2" style="text-align:center;background:#ccf; {{{headerstyle|}}}" >{{{header1}}}</th></tr>| [[Image {{#if:{{{imagelabel1|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label1}}}</th><td style="{{{datastyle|}}}">{{{data1|}}}</td></tr>| {{#if:{{{data1|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data1|}}}</td></tr>}} }}}}{{#if:{{{header2|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header2}}}</th></tr>| {{#if:{{{label2|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label2}}}</th><td style="{{{datastyle|}}}">{{{data2|}}}</td></tr>| {{#if:{{{data2|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data2|}}}</td></tr>}} }}}}{{#if:{{{header3|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header3}}}</th></tr>| {{#if:{{{label3|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label3}}}</th><td style="{{{datastyle|}}}">{{{data3|}}}</td></tr>| {{#if:{{{data3|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data3|}}}</td></tr>}} }}}}{{#if:{{{header4|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header4}}}</th></tr>| {{#if:{{{label4|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label4}}}</th><td style="{{{datastyle|}}}">{{{data4|}}}</td></tr>| {{#if:{{{data4|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data4|}}}</td></tr>}} }}}}{{#if:{{{header5|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header5}}}</th></tr>| {{#if:{{{label5|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label5}}}</th><td style="{{{datastyle|}}}">{{{data5|}}}</td></tr>| {{#if:{{{data5|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data5|}}}</td></tr>}} }}}}{{#if:{{{header6|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header6}}}</th></tr>| {{#if:{{{label6|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label6}}}</th><td style="{{{datastyle|}}}">{{{data6|}}}</td></tr>| {{#if:{{{data6|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data6|}}}</td></tr>}} }}}}{{#if:{{{header7|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header7}}}</th></tr>| {{#if:{{{label7|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label7}}}</th><td style="{{{datastyle|}}}">{{{data7|}}}</td></tr>| {{#if:{{{data7|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data7|}}}</td></tr>}} }}}}{{#if:{{{header8|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header8}}}</th></tr>| {{#if:{{{label8|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label8}}}</th><td style="{{{datastyle|}}}">{{{data8|}}}</td></tr>| {{#if:{{{data8|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data8|}}}</td></tr>}} }}}}{{#if:{{{header9|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header9}}}</th></tr>| {{#if:{{{label9|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label9}}}</th><td style="{{{datastyle|}}}">{{{data9|}}}</td></tr>| {{#if:{{{data9|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data9|}}}</td></tr>}} }}}}{{#if:{{{header10|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header10}}}</th></tr>| {{#if:{{{label10|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label10}}}</th><td style="{{{datastyle|300px}}}">{{{data10| ]]}}}</td><br/tr>| {{#if:{{{data10|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{captiondata10|}}}</td></tr>}} }}}}{{#if:{{{header11|}}}|<tr><th colspan="2" style="text- align:center; background:#ccf; {{{headerstyle|}}}">{{{header11}}}</th></tr>|! Data 1 {{#if:{{{label11|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label11}}}</th><td style="{{{datastyle|}}}">{{{data11|}}}</td></tr>| {{#if:{{{data11|}}}| <tr><td colspan="2" style="{{{data1datastyle|}}}">{{{data11|}}}</td></tr>}} }}}}{{#if:{{{header12|}}}|<tr><th colspan="2" style="text- align:center; background:#ccf; {{{headerstyle|}}}">{{{header12}}}</th></tr>|! Data {{#if:{{{label12|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label12}}}</th><td style="{{{datastyle|}}}">{{{data12|}}}</td></tr>| {{#if:{{{data12|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data12|}}}</td></tr>}} }}}}{{#if:{{{header13|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header13}}}</th></tr>| {{#if:{{{label13|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label13}}}</th><td style="{{{datastyle|}}}">{{{data13|}}}</td></tr>| {{#if:{{{data13|}}}|<tr><td colspan="2" style="{{{datastyle| }}}">{{{data2data13|}}}</td></tr>}} }}}}{{#if:{{{header14|}}}|''this <tr><th colspan="2" style="text displayed -align:center; background:#ccf; {{{headerstyle|}}}">{{{header14}}}</th></tr>| {{#if:{{{label14|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label14}}}</th><td style="{{{datastyle|}}}">{{{data14|}}}</td></tr>| {{#if data2 not defined'':{{{data14|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data14|}}}</td></tr>}} }}}}{{#if:{{{header15|}}}|<tr><th colspan="2" style="text- align:center; background:#ccf; {{{headerstyle|}}}">{{{header15}}}</th></tr>|! Data 3 (data hidden {{#if data3 empty or not defined):{{{label15|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label15}}}</th><td style="{{{datastyle|}}}">{{{data15|}}}</td></tr>| {{#if:{{{data15|}}}|<tr><td colspan="2" style="{{{datastyle| }}}">{{{data3data15|}}}</td></tr>}} }}}}{{#if:{{{header16|}}}|<tr><th colspan="2" style="text- align:center; background:#ccf; {{{headerstyle|}}}">{{{header16}}}</th></tr>| {{#if:{{{label16|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label16}}}</th><td style="{{{datastyle| }}}">{{{data16|}}}</td></tr>| {{#if:{{{data16|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data16|}}}</td></tr>}} }}}}{{#if:{{{header17|}}}|<tr><th colspan="2" style="fonttext-sizealign:center; background:#ccf; {{{headerstyle|}}}">{{{header17}}}</th></tr>| {{#if:{{{label17|}}}|<tr><th style="background: smaller#ddf;{{{labelstyle|}}}" >{{{label17}}}</th><td style="{{{datastyle| }}}">{{{footnotesdata17|}}}</td></tr>| {{#if:{{{data17|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data17|}}}</td></tr>}} }}}}{{#if:{{{header18|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header18}}}</th></tr>| {{#if:{{{label18|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label18}}}</th><td style="{{{datastyle|}}}">{{{data18|}}}</td></tr>| {{#if:{{{data18|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data18|}}}<noinclude/td></tr>}} }}}}{{#if:{{{header19|}}}|<tr><!th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header19}}}</th></tr>| {{#if:{{{label19|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label19}}}</th><td style="{{{datastyle|}}}">{{{data19|}}}</td></tr>| {{#if:{{{data19|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data19|}}}</td></tr>}} }}}}{{#if:{{{header20|}}}|<tr><th colspan="2" style="text- TO MAKE A NEW TEMPLATEalign:center; background: copy the source up to, but not including, the #ccf; {{{headerstyle|}}}"noinclude>{{{header20}}}</th></tr>| {{#if:{{{label20|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label20}}}</th><td style="{{{datastyle|}}}">{{{data20|}}}</td></tr>| {{#if:{{{data20|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data20|}}}</td></tr>}} }}}}{{#if:{{{below|}}}|<tr><td colspan="2" style=" line into a new page. background:#ddf; text-align:center; font-size:small; font-style:italic; {{{belowstyle|}}}">{{{below|}}}</td></tr>}}</table><noinclude>
<br style="clear:both" />== Usage ==Copy the source of this {{template (available from the '''view source''' link) and paste it into a new blank page. Only the part up to, but not including, the tag<code>&lt;noinclude></code> is necessary.  ==See also==*[[Wikipedia:Infobox]] [[Category:infobox templates| ]][[ar:قالب:قالب معلومات]][[fa:الگو:دادان]][[fr:Modèle:Infobox]][[sl:Predloga:Infopolje]][[zh:Template:Infobox]][[ia:Patrono:Infobox]]doc}}
</noinclude>
Anonimowy użytkownik

Menu nawigacyjne