Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
| This is a very complex template! | | | 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 23: | Line 23: | ||
font-size: larger; | font-size: larger; | ||
font-weight: bold; | font-weight: bold; | ||
{{{tstyle|}}}">{{{title|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:Information_orange.png]]</noinclude>}}}}}}| | |||
<center>{{{hat|}}}</center><table width=100% style="border-collapse:collapse;">{{#if: {{{header1|}}}|<tr style="text-align:center"><td colspan=2><b> | <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>}}} | {{{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> | </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>}}} | {{{header2|<noinclude>Header 2</noinclude>}}} | ||
</b></td></tr>}}{{#if: {{{data2| | </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>}}} | {{{header3|<noinclude>Header 3</noinclude>}}} | ||
</b></td></tr>}}{{#if: {{{data3| | </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>}}} | {{{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|}}}| | </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|}}}| | ||
Line 93: | Line 92: | ||
<center>{{{foot|}}}</center> | <center>{{{foot|}}}</center> | ||
</div> | </div> | ||
<noinclude>{{doc begin}} | </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== | ==Arguments== | ||
*title=<i>text</i> - Required - Definition of title. Lack thereof destroys the render. | *title=<i>text</i> - Required - Definition of title. Lack thereof destroys the render. | ||
Line 102: | Line 102: | ||
There are many more arguments that I recommend using sparingly. If you want them, check the source. | 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) | Doc last revised by: [[User:Taras|Taras]] ([[User talk:Taras|talk]]) 22:00, 13 August 2014 (UTC) | ||
{{end}} | {{end}}{{p-template}}</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)