Template:Infobox: Difference between revisions

From Bitcoin Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
|  This is a very complex template!  |
|  This is a very complex template!  |
<-------------------------------------->
<-------------------------------------->
<noinclude></noinclude><div class="quotebox {{{class|}}}" style="
<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>}}}}}}|<br/>{{{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>
<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>}}}
Line 93: Line 92:
<center>{{{foot|}}}</center>
<center>{{{foot|}}}</center>
</div>
</div>
<noinclude>{{doc begin}}{{HighTraffic|100}}
</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 103: Line 103:


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}}</noinclude>
{{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)