Difference between revisions of "Template: Infobox"
m |
|||
Line 124: | Line 124: | ||
|data={{{data20|}}} |datastyle={{{datastyle|}}} | |data={{{data20|}}} |datastyle={{{datastyle|}}} | ||
|class={{{class20|}}} |rowclass={{{rowclass20|}}} | |class={{{class20|}}} |rowclass={{{rowclass20|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header21|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label21|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data21|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class21|}}} |rowclass={{{rowclass20|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header22|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label22|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data22|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class22|}}} |rowclass={{{rowclass20|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header23|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label23|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data23|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class23|}}} |rowclass={{{rowclass20|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header24|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label24|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data24|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class24|}}} |rowclass={{{rowclass20|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header25|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label25|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data25|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class25|}}} |rowclass={{{rowclass20|}}} | ||
+ | }}{{Infobox/row | ||
+ | |header={{{header26|}}} |headerstyle={{{headerstyle|}}} | ||
+ | |label={{{label26|}}} |labelstyle={{{labelstyle|}}} | ||
+ | |data={{{data26|}}} |datastyle={{{datastyle|}}} | ||
+ | |class={{{class26|}}} |rowclass={{{rowclass20|}}} | ||
}} | }} | ||
</table></includeonly><noinclude> | </table></includeonly><noinclude> | ||
+ | {{Template:EnWP|Template:Infobox}} | ||
+ | |||
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] | 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] | ||
Line 132: | Line 164: | ||
=== Usage === | === Usage === | ||
+ | Basic: | ||
+ | {| | ||
+ | |<pre>{{Infobox | ||
+ | | title = Caption over top of the table. | ||
+ | | 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 | ||
+ | | 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}}} | ||
+ | }} | ||
+ | |} | ||
+ | to make fields optional use <nowiki>{{{variable|}}}, like {{{date of birth|}}}</nowiki> 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:Template:Infobox#Optional_CSS_styling|wikipedia documneation]] of the original template (note not all options have been ported and some adjustments has been made). | ||
− | |||
[[fr:Modèle:Infobox]] | [[fr:Modèle:Infobox]] | ||
[[Category:Infobox templates|!]]</noinclude> | [[Category:Infobox templates|!]]</noinclude> |
Revision as of 16:59, 19 August 2011
This page uses content from the English Wikipedia. The original content was at Template:Infobox. |
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
Basic:
{{Infobox | title = Caption over top of the table. | 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}}} }} |
|
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).