Difference between revisions of "Template: Infobox"

From A Wiki of Ice and Fire
Jump to: navigation, search
m
m (remove unnecessary line breaks)
Line 12: Line 12:
 
--Image1  
 
--Image1  
 
-->{{#if:{{{image|{{{image1|}}}}}}|{{Infobox/row   
 
-->{{#if:{{{image|{{{image1|}}}}}}|{{Infobox/row   
  |data={{{image|{{{image1}}} }}}{{#if:{{{caption|{{{caption1|}}}}}}|<br /><span style="{{{captionstyle|}}}">{{{caption|{{{caption1}}}}}}</span>}}   
+
  |data={{{image|{{{image1}}} }}}{{#if:{{{caption|{{{caption1|}}}}}}|<span style="{{{captionstyle|}}}">{{{caption|{{{caption1}}}}}}</span>}}   
 
  |datastyle={{{imagestyle|}}}   
 
  |datastyle={{{imagestyle|}}}   
 
  |class={{{imageclass|}}}   
 
  |class={{{imageclass|}}}   
Line 19: Line 19:
 
--Image2  
 
--Image2  
 
-->{{#if:{{{image2|}}}|{{Infobox/row   
 
-->{{#if:{{{image2|}}}|{{Infobox/row   
  |data={{{image2}}}{{#if:{{{caption2|}}}|<br /><span style="{{{captionstyle|}}}">{{{caption2}}}</span>}}   
+
  |data={{{image2}}}{{#if:{{{caption2|}}}|<span style="{{{captionstyle|}}}">{{{caption2}}}</span>}}   
 
  |datastyle={{{imagestyle|}}}   
 
  |datastyle={{{imagestyle|}}}   
 
  |class={{{imageclass|}}}   
 
  |class={{{imageclass|}}}   

Revision as of 01:41, 28 August 2011

This page uses content from the English Wikipedia. The original content was at Template:Infobox.
The list of authors can be seen in the page history of Template:Infobox.
As with A Wiki of Ice and Fire, the content of Wikipedia is available under the GNU Free Documentation License.


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


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}}}
}}
Caption over top of the table
No image.jpg
Name {{{name}}}
Family Name {{{family name}}}
Significant Dates
Date of Death {{{date of death}}}

To make fields optional use {{{variable|}}}, like {{{date of birth|}}} in the example above. In each row you can use either a label# data# or a header# , # numbers ranging from 1 to 26 (if needed additional rows will be added, right now only the monarch maxed it out somehow)


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).