Difference between revisions of "Template:Infobox:Section"
m (Template:Infobox:Seccion moved to Template:Infobox:Section: Part of a translation process.) |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><table style="background-color: #F9F9F9; width:100%; text-align:left; font-size: 95%; margin:4px 0 0 0;" cellpadding="0px" border="0px" cellspacing="0px"><tr><th style="background-color:#{{if|test={{{color|}}}|then={{{color}}}|else=FFFFFF}}; text-align:center" colspan="2"><!-- | + | <includeonly><table style="background-color: #F9F9F9; width:100%; text-align:left; font-size: 95%; margin:4px 0 0 0;" cellpadding="0px" border="0px" cellspacing="0px"><tr><th style="background-color:#{{if|test={{{color|}}}|then={{{color}}}|else=FFFFFF}}; text-align:center" colspan="2"><!-- Title -->{{{title|SECTION TITLE ERROR}}}</th></tr><!-- Inclusion of information lines -->{{if|test={{{item0|}}}|then=<tr><td style="width:{{if|test={{{width|}}}|then={{{width}}}|else=80}}px; vertical-align:text-top;">'''{{{item0|ERROR ITEM 0}}}'''</td><td style="vertical-align:text-top;">{{{info0|ERROR INFO 0}}}</td></tr>|else=}}{{if|test={{{item1|}}}|then=<tr><td style="width:{{if|test={{{width|}}}|then={{{width}}}|else=80}}px; vertical-align:text-top;">'''{{{item1|ERROR ITEM 1}}}'''</td><td style="vertical-align:text-top;">{{{info1|ERROR INFO 1}}}</td></tr>|else=}}{{if|test={{{item2|}}}|then=<tr><td style="width:{{if|test={{{width|}}}|then={{{width}}}|else=80}}px; vertical-align:text-top;">'''{{{item2|ERROR ITEM 2}}}'''</td><td style="vertical-align:text-top;">{{{info2|ERROR INFO 2}}}</td></tr>|else=}}{{if|test={{{item3|}}}|then=<tr><td style="width:{{if|test={{{width|}}}|then={{{width}}}|else=80}}px; vertical-align:text-top;">'''{{{item3|ERROR ITEM 3}}}'''</td><td style="vertical-align:text-top;">{{{info3}}}</td></tr>|else=}}{{if|test={{{item4|}}}|then=<tr><td style="width:{{if|test={{{width|}}}|then={{{width}}}|else=80}}px; vertical-align:text-top;">'''{{{item4|ERROR ITEM 4}}}'''</td><td style="vertical-align:text-top;">{{{info4|ERROR INFO 4}}}</td></tr>|else=}}{{if|test={{{item5|}}}|then=<tr><td style="width:{{if|test={{{width|}}}|then={{{width}}}|else=80}}px; vertical-align:text-top;">'''{{{item5|ERROR ITEM 5}}}'''</td><td style="vertical-align:text-top;">{{{info5|ERROR INFO 5}}}</td></tr>|else=}}{{if|test={{{item6|}}}|then=<tr><td style="width:{{if|test={{{width|}}}|then={{{width}}}|else=80}}px; vertical-align:text-top;">'''{{{item6|ERROR ITEM 6}}}'''</td><td style="vertical-align:text-top;">{{{info6|ERROR INFO 6}}}</td></tr>|else=}}{{if|test={{{item7|}}}|then=<tr><td style="width:{{if|test={{{width|}}}|then={{{width}}}|else=80}}px; vertical-align:text-top;">'''{{{item7|ERROR ITEM 7}}}'''</td><td style="vertical-align:text-top;">{{{info7|ERROR INFO 7}}}</td></tr>|else=}}{{if|test={{{item8|}}}|then=<tr><td style="width:{{if|test={{{width|}}}|then={{{width}}}|else=80}}px; vertical-align:text-top;">'''{{{item8|ERROR ITEM 8}}}'''</td><td style="vertical-align:text-top;">{{{info8|ERROR INFO 8}}}</td></tr>|else=}}{{if|test={{{item9|}}}|then=<tr><td style="width:{{if|test={{{width|}}}|then={{{width}}}|else=80}}px; vertical-align:text-top;">'''{{{item9|ERROR ITEM 9}}}'''</td><td style="vertical-align:text-top;">{{{info9|ERROR INFO 9}}}</td></tr>|else=}}<!-- Inclusion of additional content -->{{if|test={{{content|}}}|then=<tr><td>{{{content|SECTION CONTENT ERROR}}}</td></tr>|else=}}</table></includeonly><noinclude>{{Doc}}[[Category:Meta-Templates|!{{PAGENAME}}]]</noinclude> |
Latest revision as of 11:01, 7 May 2010
{{Infobox:Section}} is a meta-template, ie a template for creating templates. This template is intended to be used in line with the template Template:Infobox:Base. With this template you can create a table containing a title and a maximum of ten items divided into two column. It can set the background color of the title and the width of the left column. ContentsUsagePut the following code in the template being designed. Complete the parameters you want, delete the unused. {{Infobox:Section | color = | title = | width = | item0 = | info0 = | item1 = | info1 = | item2 = | info2 = | item3 = | info3 = | item4 = | info4 = | item5 = | info5 = | item6 = | info6 = | item7 = | info7 = | item8 = | info8 = | item9 = | info9 = | content = }} Parameters
You can complete the parameter content including other templates, such as other Template:Infobox:Section and Template:Infobox:SectionList. But do not include other template Template:Infobox:Header in this parameter. That template is intended only to lead the table. ExamplesCopy and paste on a page to see the results. {{Infobox:Base | width = 200 | content = {{Infobox:Header | color = B8DB82 | width = 200 | title = Basil ''(Ocimum basilicum)'' | image = Albahaca basil.jpg | comment = | content = {{Infobox:Section | color = D6EAB7 | title = Scientific classification | width = 100 | item0 = Kingdom | info0 = Plantae | item1 = Order | info1 = Lamiales | item2 = Family | info2 = Lamiaceae | item3 = Genus | info3 = Ocimum | item4 = Species | info4 = O. basilicum | info5 = This won't show. Guess why. }}}}}} See also |