Jump to content

๐Ÿ“ข Important Notice ๐Ÿ“ข

Dear users, Starting 02 December 2024, all users will be required to have a confirmed email address to edit pages on this site. This change is being implemented to enhance security and ensure better communication within the community.

To prepare for this change:

1. Go to your Preferences.

2. Add and confirm your email address if you haven't already.


Thank you for your understanding and cooperation!

If you have any questions or issues, please create a Wiki Ticket
or contact the Wiki administrators, Djinnet or Nelas.

Template:Infobox: Difference between revisions

replacing with a functioning meta-template I prototyped at User:Bryan Derksen/Template sandbox.
m (+iw: sl)
(replacing with a functioning meta-template I prototyped at User:Bryan Derksen/Template sandbox.)
Line 1: Line 1:
{| class="infobox bordered" style="width: 25em; text-align: left; font-size: 90%;"
<table class="infobox bordered" style="width: 25em; text-align: left; font-size: 90%; {{{bodystyle|}}}">
|-
<tr>
| colspan="2" style="text-align:center; font-size: large;" | '''{{{name}}}'''
<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>
| colspan="2" style="text-align:center;" | [[Image:{{{image}}}|300px| ]]<br>{{{caption}}}
{{#if:{{{image|}}}|<tr>
|- ย 
<td colspan="2" style="text-align:center; {{{imagestyle|}}}"> {{{image}}} {{#if:{{{caption|}}}|<br><span style="{{{captionstyle|}}}">{{{caption}}} }}</span></td>
! Data 1:
</tr>}}
| {{{data1}}}
{{#if:{{{header1|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header1}}}</th></tr>|
|- ย 
{{#if:{{{label1|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label1}}}</th><td style="{{{datastyle|}}}">{{{data1|}}}</td></tr>|
! Data 2:
ย  {{#if:{{{data1|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data1|}}}</td></tr>}}
| {{{data2|''this text displayed if data2 not defined''}}}
}}
|- ย 
}}
! Data 3 (data hidden if data3 empty or not defined):
{{#if:{{{header2|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header2}}}</th></tr>|
| {{{data3|}}}
{{#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>}}
| colspan="2" style="font-size: smaller;" | {{{footnotes|}}}
}}
|}
}}
<noinclude>
{{#if:{{{header3|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header3}}}</th></tr>|
<!-- TO MAKE A NEW TEMPLATE: copy the source up to, but not including, the "noinclude" line into a new page. -->
{{#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|}}}">{{{data10|}}}</td></tr>|
ย  {{#if:{{{data10|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data10|}}}</td></tr>}}
}}
}}
{{#if:{{{header11|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header11}}}</th></tr>|
{{#if:{{{label11|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label11}}}</th><td style="{{{datastyle|}}}">{{{data11|}}}</td></tr>|
ย  {{#if:{{{data11|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data11|}}}</td></tr>}}
}}
}}
{{#if:{{{header12|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header12}}}</th></tr>|
{{#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|}}}">{{{data13|}}}</td></tr>}}
}}
}}
{{#if:{{{header14|}}}|<tr><th colspan="2" style="text-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:{{{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>|
{{#if:{{{label15|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label15}}}</th><td style="{{{datastyle|}}}">{{{data15|}}}</td></tr>|
ย  {{#if:{{{data15|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data15|}}}</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="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header17}}}</th></tr>|
{{#if:{{{label17|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label17}}}</th><td style="{{{datastyle|}}}">{{{data17|}}}</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|}}}</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-align:center; background:#ccf; {{{headerstyle|}}}">{{{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="background:#ddf; text-align:center; font-size:small; font-style:italic; {{{belowstyle|}}}">{{{below|}}}</td></tr>}}
</table><noinclude>


<br style="clear:both" />
{{template doc}}
== 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]]
</noinclude>
</noinclude>