Mudanças

Ir para navegação Ir para pesquisar

 

2 500 bytes adicionados ,  23h10min de 19 de julho de 2012
m
uma edição
<noinclude>{{note|This is a documentation subpage for [[Template:Infobox]]}}<hr></noinclude>
=Template documentation=
This template is intended as a meta-template: a template used for constructing other templates. It is not meant for use directly in an article, but can be used on a one-off basis if required. for more info see [http://en.wikipedia.org/wiki/Template:Infobox wikipedia]

==Usage Example==
{| width=100%
|Basic Usage example (for more practical example see [[Template:Infobox character]]):
<pre>{{Infobox
| title = Caption over top of the table.
| image = your image
| label1 = Name
| data1 = {{{name}}}
| label2 = Family Name
| data2 = {{{family name}}}

| header3 = Significant Dates
| label4 = Date of Birth
| data4 = {{{date of birth|}}}

| label5 = Date of Death
| data5 = {{{date of death}}}
}}</pre>
|{{Infobox
| title = Caption over top of the table
| image = [[Image:No_image.jpg|200px]]
| label1 = Name
| data1 = {{{name}}}
| label2 = Family Name
| data2 = {{{family name}}}
| header3 = Significant Dates
| label4 = date of birth
| data4 = {{{date of birth|}}}
| label5 = Date of Death
| data5 = {{{date of death}}}
}}
|}

* Each row on the table can contain either a header#, or a label#/data# pair, or just a data# cell (where # is a numbers ranging from 1 to 40). These are mutually exclusive states so if you define a row with both a header and a label/data pair, the label/data pair is ignored.

* Which means that you cannot define a label only row, thus to create optional fields, use <code><nowiki>{{{variable|}}}</nowiki></code> in the data# field, for example <code><nowiki>{{{date of birth|}}}</nowiki></code> as show above, this way if no value is given to 'date of birth' the row wont show, and if you want to make the field permanent that must be provided use the <code><nowiki>{{{variable}}}</nowiki></code> for example <code><nowiki>{{{date of death|}}}</nowiki></code> as show above.

* To insert an image somewhere other than at the top of the infobox, provide full image syntax for example <code><nowiki>[[File:COA|200px]]</nowiki></code>.

* For Advanced options, CSS styling and HTML classes (which will make those tables look good) see the [[wikipedia:Template:Infobox#Optional_CSS_styling|wikipedia documneation]] of the original template (Note: not all options have been ported and some adjustments has been made).

<noinclude>
==References==
{{EnWP|Template:Infobox|small=yes}}
[[Category:Infobox templates|!]]
</noinclude>

Menu de navegação