Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
(40 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <!------------------------------------ > | ||
|Please do not edit without discussion!| | |||
| This is a very complex template! | | |||
<--------------------------------------> | |||
<includeonly><div class="quotebox {{{class|}}}" style=" | |||
{{#switch: {{lc:{{{align|}}}}} | {{#switch: {{lc:{{{align|}}}}} | ||
| center = margin: auto; | | center = margin: auto; | ||
Line 6: | Line 10: | ||
| float: right; clear: right; margin: 0.5em 0 0.8em 1.4em; | | float: right; clear: right; margin: 0.5em 0 0.8em 1.4em; | ||
}} | }} | ||
{{#if:{{{width| | {{#if:{{{width|1}}} | width: {{{width|22em}}};}} | ||
padding: 6px; | padding: 6px; | ||
border: {{#if: {{{border|}}}|{{{border}}}|1px}} solid #aaa; | border: {{#if: {{{border|}}}|{{{border}}}|1px}} solid #aaa; | ||
Line 19: | Line 23: | ||
font-size: larger; | font-size: larger; | ||
font-weight: bold; | font-weight: bold; | ||
{{{tstyle|}}}">{{{title|< | {{{tstyle|}}}">{{{title|Title}}}</div><div style="text-align: center;">{{#if:{{{image|{{{image1|<noinclude>[[File:Information_orange.png]]</noinclude>}}}}}}|{{{image|{{{image1|<noinclude>[[File:Information_orange.png]]</noinclude>}}}}}}{{#if:{{{caption|{{{caption1|}}}}}}|<br /><span style="{{{captionstyle|font-size: normal; font-weight: normal; font-style: italic;}}}">{{{caption|{{{caption1|}}}}}}</span>}}}}</div> | ||
{{#if:{{{image|{{{image1|<noinclude>[[File: | <center>{{{hat|}}}</center><table width=100% style="border-collapse:collapse;">{{#if: {{{header1|}}}|<tr style="text-align:center"><td colspan=2><b> | ||
{{{header1|<noinclude>Header 1</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data1|<noinclude>$</noinclude>}}}|<tr><td width=36% style="vertical-align:top;"><b>{{{content1|<noinclude>Content 1</noinclude>}}}</b></td><td>{{{data1|<noinclude>Data 1</noinclude>}}}</td></tr>}}{{#if: {{{header2|}}}|<tr style="text-align:center"><td colspan=2><b> | |||
{{{header2|<noinclude>Header 2</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data2|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content2|<noinclude>Content 2</noinclude>}}}</b></td><td>{{{data2|<noinclude>Data 2</noinclude>}}}</td></tr>}}{{#if: {{{header3|}}}|<tr style="text-align:center"><td colspan=2><b> | |||
{{{header3|<noinclude>Header 3</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data3|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content3|<noinclude>Content 3</noinclude>}}}</b></td><td>{{{data3|<noinclude>Data 3</noinclude>}}}</td></tr>}}{{#if: {{{header4|}}}|<tr style="text-align:center"><td colspan=2><b> | |||
{{{header4|<noinclude>Header 4</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data4|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content4|<noinclude>Content 4</noinclude>}}}</b></td><td>{{{data4|<noinclude>Data 4</noinclude>}}}</td></tr>}}{{#if: {{{header5|}}}| | |||
<tr style="text-align:center"><td colspan=2><b> | |||
{{{header5|<noinclude>Header 5</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data5|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content5|<noinclude>Content 5</noinclude>}}}</b></td><td>{{{data5|<noinclude>Data 5</noinclude>}}}</td></tr>}}{{#if: {{{header6|}}}| | |||
<tr style="text-align:center"><td colspan=2><b> | |||
{{{header6|<noinclude>Header 6</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data6|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content6|<noinclude>Content 6</noinclude>}}}</b></td><td>{{{data6|<noinclude>Data 6</noinclude>}}}</td></tr>}}{{#if: {{{header7|}}}| | |||
<tr style="text-align:center"><td colspan=2><b> | |||
{{{header7|<noinclude>Header 7</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data7|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content7|<noinclude>Content 7</noinclude>}}}</b></td><td>{{{data7|<noinclude>Data 7</noinclude>}}}</td></tr>}}{{#if: {{{header8|}}}| | |||
<tr style="text-align:center"><td colspan=2><b> | |||
{{{header8|<noinclude>Header 8</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data8|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content8|<noinclude>Content 8</noinclude>}}}</b></td><td>{{{data8|<noinclude>Data 8</noinclude>}}}</td></tr>}}{{#if: {{{header9|}}}| | |||
<tr style="text-align:center"><td colspan=2><b> | |||
{{{header9|<noinclude>Header 9</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data9|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content9|<noinclude>Content 9</noinclude>}}}</b></td><td>{{{data9|<noinclude>Data 9</noinclude>}}}</td></tr>}}{{#if: {{{header10|}}}|<tr style="text-align:center"><td colspan=2><b> | |||
{{{header10|<noinclude>Header 10</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data10|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content10|<noinclude>Content 10</noinclude>}}}</b></td><td>{{{data10|<noinclude>Data 10</noinclude>}}}</td></tr>}}{{#if: {{{header11|}}}|<tr style="text-align:center"><td colspan=2><b> | |||
{{{header11|<noinclude>Header 11</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data11|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content11|<noinclude>Content 11</noinclude>}}}</b></td><td>{{{data11|<noinclude>Data 11</noinclude>}}}</td></tr>}}{{#if: {{{header12|}}}| | |||
<tr style="text-align:center"><td colspan=2><b> | |||
{{{header12|<noinclude>Header 12</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data12|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content12|<noinclude>Content 12</noinclude>}}}</b></td><td>{{{data12|<noinclude>Data 12</noinclude>}}}</td></tr>}}{{#if: {{{header13|}}}| | |||
<tr style="text-align:center"><td colspan=2><b> | |||
{{{header13|<noinclude>Header 13</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data13|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content13|<noinclude>Content 13</noinclude>}}}</b></td><td>{{{data13|<noinclude>Data 13</noinclude>}}}</td></tr>}}{{#if: {{{header14|}}}| | |||
<tr style="text-align:center"><td colspan=2><b> | |||
{{{header14|<noinclude>Header 14</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data14|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content14|<noinclude>Content 14</noinclude>}}}</b></td><td>{{{data14|<noinclude>Data 14</noinclude>}}}</td></tr>}}{{#if: {{{header15|}}}| | |||
<tr style="text-align:center"><td colspan=2><b> | |||
{{{header15|<noinclude>Header 15</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data15|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content15|<noinclude>Content 15</noinclude>}}}</b></td><td>{{{data15|<noinclude>Data 15</noinclude>}}}</td></tr>}}{{#if: {{{header16|}}}| | |||
<tr style="text-align:center"><td colspan=2><b> | |||
{{{header16|<noinclude>Header 16</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data16|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content16|<noinclude>Content 16</noinclude>}}}</b></td><td>{{{data16|<noinclude>Data 16</noinclude>}}}</td></tr>}}{{#if: {{{header17|}}}|<tr style="text-align:center"><td colspan=2><b> | |||
{{{header17|<noinclude>Header 17</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data17|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content17|<noinclude>Content 17</noinclude>}}}</b></td><td>{{{data17|<noinclude>Data 17</noinclude>}}}</td></tr>}}{{#if: {{{header18|}}}|<tr style="text-align:center"><td colspan=2><b> | |||
{{{header18|<noinclude>Header 18</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data18|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content18|<noinclude>Content 18</noinclude>}}}</b></td><td>{{{data18|<noinclude>Data 18</noinclude>}}}</td></tr>}}{{#if: {{{header19|}}}| | |||
<tr style="text-align:center"><td colspan=2><b> | |||
{{{header19|<noinclude>Header 19</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data19|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content19|<noinclude>Content 19</noinclude>}}}</b></td><td>{{{data19|<noinclude>Data 19</noinclude>}}}</td></tr>}}{{#if: {{{header20|}}}| | |||
<tr style="text-align:center"><td colspan=2><b> | |||
{{{header20|<noinclude>Header 6</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data20|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content20|<noinclude>Content 20</noinclude>}}}</b></td><td>{{{data20|<noinclude>Data 20</noinclude>}}}</td></tr>}}{{#if: {{{header21|}}}| | |||
<tr style="text-align:center"><td colspan=2><b> | |||
{{{header21|<noinclude>Header 7</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data21|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content21|<noinclude>Content 21</noinclude>}}}</b></td><td>{{{data21|<noinclude>Data 21</noinclude>}}}</td></tr>}}{{#if: {{{header22|}}}| | |||
<tr style="text-align:center"><td colspan=2><b> | |||
{{{header22|<noinclude>Header 8</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data22|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content22|<noinclude>Content 22</noinclude>}}}</b></td><td>{{{data22|<noinclude>Data 22</noinclude>}}}</td></tr>}}{{#if: {{{header23|}}}| | |||
<tr style="text-align:center"><td colspan=2><b> | |||
{{{header23|<noinclude>Header 9</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data23|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content23|<noinclude>Content 23</noinclude>}}}</b></td><td>{{{data23|<noinclude>Data 23</noinclude>}}}</td></tr>}}{{#if: {{{header24|}}}| | |||
<tr style="text-align:center"><td colspan=2><b> | |||
{{{header24|<noinclude>Header 10</noinclude>}}} | |||
</b></td></tr>}}{{#if: {{{data24|<noinclude>$</noinclude>}}}|<tr><td style="vertical-align:top;"><b>{{{content24|<noinclude>Content 24</noinclude>}}}</b></td><td>{{{data24|<noinclude>Data 24</noinclude>}}}</td></tr>}} | |||
}}</table> | |||
<center>{{{foot|}}}</center> | |||
</div> | |||
</includeonly><noinclude>{{doc begin}}{{HighTraffic|100}} | |||
This template should not be used on content pages; only on templates. If you're looking for a specific infobox, check [https://en.bitcoin.it/w/index.php?title=Special%3AWhatLinksHere&target=Template%3AInfobox&namespace=10 here]. | |||
==Arguments== | |||
*title=<i>text</i> - Required - Definition of title. Lack thereof destroys the render. | |||
*image1=<i>path</i> - Places an image found from the given path. | |||
*header<i>n</i>=<i>text</i> - Where n is the location of the header, 1 being directly under the icon or n being directly under content ID n-1, place a header with text. Current maximum of 24. | |||
*content<i>n</i>=<i>text</i> - Insert a row of data with text for a title at position n. Current maximum of 24. | |||
*data<i>n</i>=<i>text</i> - Insert text corresponding to content at same position. Ignored when respective content ID is undefined. | |||
There are many more arguments that I recommend using sparingly. If you want them, check the source. | |||
Doc last revised by: [[User:Taras|Taras]] ([[User talk:Taras|talk]]) 22:00, 13 August 2014 (UTC) | |||
{{end}}{{p-template}}</noinclude> | |||
</noinclude> |
Latest revision as of 22:00, 2 August 2015
Documentation for Infobox
This template appears on 100+ pages.
Please discuss any major changes on the talk page.
This template should not be used on content pages; only on templates. If you're looking for a specific infobox, check here.
Arguments
- title=text - Required - Definition of title. Lack thereof destroys the render.
- image1=path - Places an image found from the given path.
- headern=text - Where n is the location of the header, 1 being directly under the icon or n being directly under content ID n-1, place a header with text. Current maximum of 24.
- contentn=text - Insert a row of data with text for a title at position n. Current maximum of 24.
- datan=text - Insert text corresponding to content at same position. Ignored when respective content ID is undefined.
There are many more arguments that I recommend using sparingly. If you want them, check the source.
Doc last revised by: Taras (talk) 22:00, 13 August 2014 (UTC)