Difference between revisions of "Template:Infobox"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
|  (Added fields) | m | ||
| Line 1: | Line 1: | ||
| <onlyinclude><includeonly><div style="float: right; border: 1px solid grey; min-width: 250px; max-width: 350px; margin-left: 10px;"> | <onlyinclude><includeonly><div style="float: right; border: 1px solid grey; min-width: 250px; max-width: 350px; margin-left: 10px;"> | ||
| {| style="width: 100%; border-spacing: 0;" | {| style="width: 100%; border-spacing: 0;" | ||
| − | |colspan="2" style="background-color: #ecf0f1; text-align: center; padding: 5px; font-size: 120%;"| '''{{{name|{{PAGENAME}}}}}''' | + | |colspan="2" style="background-color: #{{{headercolor|ecf0f1}}}; text-align: center; padding: 5px; font-size: 120%;"| '''{{{name|{{PAGENAME}}}}}''' | 
| |- | |- | ||
| {{#if: {{{image|}}} | {{!}} colspan="2" style="text-align: center; padding: 5px;"{{!}} [[File:{{{image}}}|{{{imgwidth|200px}}}|{{#if: {{{imgalt|}}} | {{{imgalt}}}|}}]] | }} | {{#if: {{{image|}}} | {{!}} colspan="2" style="text-align: center; padding: 5px;"{{!}} [[File:{{{image}}}|{{{imgwidth|200px}}}|{{#if: {{{imgalt|}}} | {{{imgalt}}}|}}]] | }} | ||
Revision as of 19:49, 20 January 2021
This template generates infoboxes.
Example:
{{Infobox|name=Test|label1=Foo|data1=Data 1|label2=Bar|data2=Data 2|label3=Baz|data3=Data 3}}generates:
| Test | |
| Foo | Data 1 | 
| Bar | Data 2 | 
| Baz | Data 3 |