Mudanças entre as edições de "Predefinição:Infobox character"
Ir para navegação
Ir para pesquisar
Linha 1: | Linha 1: | ||
− | {{Infobox | + | <includeonly>{{#ifeq:{{{child|}}}|yes||<table class="infobox {{{bodyclass|infobox-body}}}" cellspacing="5" style="width:23em;<!-- CSS INFO |
− | | | + | -->text-align: left; font-size: 95%; font-family:sans-serif; {{{bodystyle|}}}"><!-- |
+ | --Caption | ||
+ | -->{{#if:{{{title|}}}|<caption class="{{{titleclass|infobox-title}}}" style="{{{titlestyle|}}}">{{{title}}}</caption>}}<!-- | ||
+ | --Header | ||
+ | -->{{#if:{{{above|}}}|<tr><th colspan=2 class="{{{aboveclass|infobox-above}}}" style="text-align:center; font-size:125%; font-weight:bold; {{{abovestyle|}}}">{{{above}}}</th></tr>}}}}{{#ifeq:{{{child|}}}|yes|{{#if:{{{title|}}}|'''{{{title}}}'''}}}}<!-- | ||
+ | --Subheader1 | ||
+ | -->{{#if:{{{subheader|{{{subheader1|}}}}}}|{{Infobox/row | ||
+ | |data={{{subheader|{{{subheader1|}}}}}} | ||
+ | |datastyle={{{subheaderstyle|{{{subheaderstyle1|}}}}}} | ||
+ | |class={{{subheaderclass|}}} | ||
+ | |rowclass={{{subheaderrowclass|{{{subheaderrowclass1|}}}}}} }} }}<!-- | ||
+ | --Subheader2 | ||
+ | -->{{#if:{{{subheader2|}}}|{{Infobox/row | ||
+ | |data={{{subheader2}}} | ||
+ | |datastyle={{{subheaderstyle|{{{subheaderstyle2|}}}}}} | ||
+ | |class={{{subheaderclass|}}} | ||
+ | |rowclass={{{subheaderrowclass2|}}} }} }}<!-- | ||
+ | --Image1 | ||
+ | -->{{#if:{{{image|{{{image1|}}}}}}|{{Infobox/row | ||
+ | |data={{{image|{{{image1}}} }}}{{#if:{{{caption|{{{caption1|}}}}}}|<br /><span style="{{{captionstyle|}}}">{{{caption|{{{caption1}}}}}}</span>}} | ||
+ | |datastyle={{{imagestyle|}}} | ||
+ | |class={{{imageclass|infobox-image}}} | ||
+ | |rowclass={{{imagerowclass1|}}} | ||
+ | }} }}<!-- | ||
+ | --Image2 | ||
+ | -->{{#if:{{{image2|}}}|{{Infobox/row | ||
+ | |data={{{image2}}}{{#if:{{{caption2|}}}|<br /><span style="{{{captionstyle|}}}">{{{caption2}}}</span>}} | ||
+ | |datastyle={{{imagestyle|}}} | ||
+ | |class={{{imageclass|infobox-image}}} | ||
+ | |rowclass={{{imagerowclass2|}}} | ||
+ | }} }}<!-- | ||
+ | -->{{Infobox/row | ||
+ | |header={{{header1|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label1|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data1|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class1|}}} |rowclass={{{rowclass1|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header2|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label2|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data2|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class2|}}} |rowclass={{{rowclass2|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header3|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label3|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data3|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class3|}}} |rowclass={{{rowclass3|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header4|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label4|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data4|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class4|}}} |rowclass={{{rowclass4|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header5|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label5|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data5|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class5|}}} |rowclass={{{rowclass5|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header6|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label6|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data6|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class6|}}} |rowclass={{{rowclass6|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header7|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label7|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data7|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class7|}}} |rowclass={{{rowclass7|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header8|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label8|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data8|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class8|}}} |rowclass={{{rowclass8|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header9|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label9|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data9|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class9|}}} |rowclass={{{rowclass9|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header10|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label10|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data10|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class10|}}} |rowclass={{{rowclass10|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header11|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label11|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data11|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class11|}}} |rowclass={{{rowclass11|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header12|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label12|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data12|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class12|}}} |rowclass={{{rowclass12|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header13|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label13|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data13|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class13|}}} |rowclass={{{rowclass13|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header14|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label14|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data14|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class14|}}} |rowclass={{{rowclass14|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header15|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label15|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data15|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class15|}}} |rowclass={{{rowclass15|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header16|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label16|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data16|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class16|}}} |rowclass={{{rowclass16|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header17|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label17|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data17|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class17|}}} |rowclass={{{rowclass17|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header18|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label18|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data18|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class18|}}} |rowclass={{{rowclass18|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header19|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label19|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data19|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class19|}}} |rowclass={{{rowclass19|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header20|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label20|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data20|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class20|}}} |rowclass={{{rowclass20|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header21|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label21|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data21|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class21|}}} |rowclass={{{rowclass21|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header22|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label22|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data22|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class22|}}} |rowclass={{{rowclass22|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header23|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label23|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data23|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class23|}}} |rowclass={{{rowclass23|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header24|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label24|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data24|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class24|}}} |rowclass={{{rowclass24|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header25|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label25|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data25|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class25|}}} |rowclass={{{rowclass25|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header26|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label26|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data26|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class26|}}} |rowclass={{{rowclass26|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header27|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label27|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data27|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class27|}}} |rowclass={{{rowclass27|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header28|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label28|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data28|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class28|}}} |rowclass={{{rowclass28|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header29|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label29|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data29|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class29|}}} |rowclass={{{rowclass29|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header30|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label30|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data30|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class30|}}} |rowclass={{{rowclass30|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header31|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label31|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data31|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class31|}}} |rowclass={{{rowclass31|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header32|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label32|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data32|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class32|}}} |rowclass={{{rowclass31|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header33|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label33|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data33|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class33|}}} |rowclass={{{rowclass33|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header34|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label34|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data34|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class34|}}} |rowclass={{{rowclass34|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header35|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label35|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data35|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class35|}}} |rowclass={{{rowclass35|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header36|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label36|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data36|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class36|}}} |rowclass={{{rowclass36|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header37|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label37|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data37|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class37|}}} |rowclass={{{rowclass37|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header38|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label38|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data38|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class38|}}} |rowclass={{{rowclass38|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header39|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label39|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data39|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class39|}}} |rowclass={{{rowclass39|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header40|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label40|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data40|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class40|}}} |rowclass={{{rowclass40|}}} | ||
+ | }}<!-- | ||
− | + | --Below | |
− | + | -->{{#if:{{{below|}}}|<tr><td colspan=2 class="{{{belowclass|}}}" style="text-align:center; {{{belowstyle|}}}">{{{below}}}</td></tr>}}<!-- | |
+ | -->{{#ifeq:{{{child|}}}|yes||</table>}}</includeonly><noinclude> | ||
− | + | {{Template:Infobox/doc}} | |
− | + | [[Category:Infobox templates|!]] | |
− | + | [[fr:Modèle:Infobox]]</noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </noinclude> |
Edição das 23h29min de 19 de julho de 2012
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 wikipedia
Usage Example
Basic Usage example (for more practical example see Template:Infobox character):
{{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}}} }} |
|
- 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
{{{variable|}}}
in the data# field, for example{{{date of birth|}}}
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{{{variable}}}
for example{{{date of death|}}}
as show above.
- To insert an image somewhere other than at the top of the infobox, provide full image syntax for example
[[File:COA|200px]]
.
- For Advanced options, CSS styling and HTML classes (which will make those tables look good) see the wikipedia documneation of the original template (Note: not all options have been ported and some adjustments has been made).</noinclude>