Template:Infoboxtest: Difference between revisions
From Grimhaven Wiki
(Created page with "{{Infoboxtest | title = {{{title|{{PAGENAME}}}}} | image = [[File:{{{image|placeholder.png}}}|210px]] | caption = {{{caption|}}} | label1 = Field1 | data1 = {{{data1|}}} | label2 = Field2 | data2 = {{{data2|}}} | label3 = Field3 | data3 = {{{data3|}}} | label4 = Field4 | data4 = {{{data4|}}} <!-- Add more fields as necessary --> }}") |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><table class="infobox" style="width: 22em; font-size: 90%; text-align: left; border-spacing: 2px; background-color: #f9f9f9; color: black; margin: 0 0 1em 1em; float: right; border: 1px solid #888; box-shadow: 3px 3px 2px #888;"> | |||
<tr><th colspan="2" style="text-align: center; background-color: #ccf;">{{{title|{{PAGENAME}}}}}</th></tr> | |||
| | {{#if: {{{image|}}}|<tr><td colspan="2" style="text-align: center;">[[File:{{{image}}}|210px]]</td></tr>}} | ||
| | {{#if: {{{caption|}}}|<tr><td colspan="2" style="text-align: center;">{{{caption}}}</td></tr>}} | ||
| | {{#if: {{{label1|}}}|<tr><th style="background-color: #f2f2f2;">{{{label1}}}</th><td>{{{data1}}}</td></tr>}} | ||
| | {{#if: {{{label2|}}}|<tr><th style="background-color: #f2f2f2;">{{{label2}}}</th><td>{{{data2}}}</td></tr>}} | ||
| | {{#if: {{{label3|}}}|<tr><th style="background-color: #f2f2f2;">{{{label3}}}</th><td>{{{data3}}}</td></tr>}} | ||
| | {{#if: {{{label4|}}}|<tr><th style="background-color: #f2f2f2;">{{{label4}}}</th><td>{{{data4}}}</td></tr>}} | ||
| | |||
| | |||
| | |||
| | |||
<!-- Add more fields as necessary --> | <!-- Add more fields as necessary --> | ||
</table></includeonly> |