Template:Infoboxtest: Difference between revisions

From Grimhaven Wiki
Jump to: navigation, search
(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:
{{Infoboxtest
<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;">
| title        = {{{title|{{PAGENAME}}}}}
<tr><th colspan="2" style="text-align: center; background-color: #ccf;">{{{title|{{PAGENAME}}}}}</th></tr>
| image        = [[File:{{{image|placeholder.png}}}|210px]]
{{#if: {{{image|}}}|<tr><td colspan="2" style="text-align: center;">[[File:{{{image}}}|210px]]</td></tr>}}
| caption      = {{{caption|}}}
{{#if: {{{caption|}}}|<tr><td colspan="2" style="text-align: center;">{{{caption}}}</td></tr>}}
| label1        = Field1
{{#if: {{{label1|}}}|<tr><th style="background-color: #f2f2f2;">{{{label1}}}</th><td>{{{data1}}}</td></tr>}}
| data1        = {{{data1|}}}
{{#if: {{{label2|}}}|<tr><th style="background-color: #f2f2f2;">{{{label2}}}</th><td>{{{data2}}}</td></tr>}}
| label2        = Field2
{{#if: {{{label3|}}}|<tr><th style="background-color: #f2f2f2;">{{{label3}}}</th><td>{{{data3}}}</td></tr>}}
| data2        = {{{data2|}}}
{{#if: {{{label4|}}}|<tr><th style="background-color: #f2f2f2;">{{{label4}}}</th><td>{{{data4}}}</td></tr>}}
| label3        = Field3
| data3        = {{{data3|}}}
| label4        = Field4
| data4        = {{{data4|}}}
<!-- Add more fields as necessary -->
<!-- Add more fields as necessary -->
}}
</table></includeonly>

Latest revision as of 14:03, 21 April 2024