Template:Infobox (AL): Difference between revisions
From Exiled Kingdoms Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly><table class="wikitable | <onlyinclude><includeonly><table class="wikitable float-right toptextcells" style=" width:280px; text-align:center; margin:0 0 1em 0.5em;">{{#if:{{{Surtitle|}}}| | ||
<tr><th style="background-color: | <tr><th style="background-color:#00a66a; border-color:#00a66a; color:#000; font-size:1.2em;">{{{Surtitle|}}}</th></tr>}} | ||
<tr><th style="background-color: | <tr><th style="background-color:#007c4f; border-color:#007c4f; color:#fff; font-size:1.5em;">{{{Title|}}}</th></tr>{{#if:{{{Subtitle|}}}| | ||
<tr><th style="background-color: | <tr><th style="background-color:#00a66a; border-color:#00a66a; color:#000; font-size:1.2em;">{{{Subtitle|}}}</th></tr>}}{{#if:{{{Content0|}}}| | ||
<tr><td style={{{Style0|}}}>{{{Content0|}}}</td></tr>}}{{#if:{{{Header1|}}}| | <tr><td style={{{Style0|}}}>{{{Content0|}}}</td></tr>}}{{#if:{{{Header1|}}}| | ||
<tr><th style="background-color: | <tr><th style="background-color:#ffb300; border-color:#ffb300; color:#000; font-size:1em;">{{{Header1|}}}</th></tr> | ||
<tr><td style={{{Style1|}}}>{{{Content1|}}}</td></tr>}}{{#if:{{{Header2|}}}| | <tr><td style={{{Style1|}}}>{{{Content1|}}}</td></tr>}}{{#if:{{{Header2|}}}| | ||
<tr><th style="background-color: | <tr><th style="background-color:#ffb300; border-color:#ffb300; color:#000; font-size:1em;">{{{Header2|}}}</th></tr> | ||
<tr><td style={{{Style2|}}}>{{{Content2|}}}</td></tr>}}{{#if:{{{Header3|}}}| | <tr><td style={{{Style2|}}}>{{{Content2|}}}</td></tr>}}{{#if:{{{Header3|}}}| | ||
<tr><th style="background-color: | <tr><th style="background-color:#ffb300; border-color:#ffb300; color:#000; font-size:1em;">{{{Header3|}}}</th></tr> | ||
<tr><td style={{{Style3|}}}>{{{Content3|}}}</td></tr>}}{{#if:{{{Header4|}}}| | <tr><td style={{{Style3|}}}>{{{Content3|}}}</td></tr>}}{{#if:{{{Header4|}}}| | ||
<tr><th style="background-color: | <tr><th style="background-color:#ffb300; border-color:#ffb300; color:#000; font-size:1em;">{{{Header4|}}}</th></tr> | ||
<tr><td style={{{Style4|}}}>{{{Content4|}}}</td></tr>}}{{#if:{{{Header5|}}}| | <tr><td style={{{Style4|}}}>{{{Content4|}}}</td></tr>}}{{#if:{{{Header5|}}}| | ||
<tr><th style="background-color: | <tr><th style="background-color:#ffb300; border-color:#ffb300; color:#000; font-size:1em;">{{{Header5|}}}</th></tr> | ||
<tr><td style={{{Style5|}}}>{{{Content5|}}}</td></tr>}}{{#if:{{{Header6|}}}| | <tr><td style={{{Style5|}}}>{{{Content5|}}}</td></tr>}}{{#if:{{{Header6|}}}| | ||
<tr><th style="background-color: | <tr><th style="background-color:#ffb300; border-color:#ffb300; color:#000; font-size:1em;">{{{Header6|}}}</th></tr> | ||
<tr><td style={{{Style6|}}}>{{{Content6|}}}</td></tr>}}{{#if:{{{Header7|}}}| | <tr><td style={{{Style6|}}}>{{{Content6|}}}</td></tr>}}{{#if:{{{Header7|}}}| | ||
<tr><th style="background-color: | <tr><th style="background-color:#ffb300; border-color:#ffb300; color:#000; font-size:1em;">{{{Header7|}}}</th></tr> | ||
<tr><td style={{{Style7|}}}>{{{Content7|}}}</td></tr>}}{{#if:{{{Header8|}}}| | <tr><td style={{{Style7|}}}>{{{Content7|}}}</td></tr>}}{{#if:{{{Header8|}}}| | ||
<tr><th style="background-color: | <tr><th style="background-color:#ffb300; border-color:#ffb300; color:#000; font-size:1em;">{{{Header8|}}}</th></tr> | ||
<tr><td style={{{Style8|}}}>{{{Content8|}}}</td></tr>}}{{#if:{{{Header9|}}}| | <tr><td style={{{Style8|}}}>{{{Content8|}}}</td></tr>}}{{#if:{{{Header9|}}}| | ||
<tr><th style="background-color: | <tr><th style="background-color:#ffb300; border-color:#ffb300; color:#000; font-size:1em;">{{{Header9|}}}</th></tr> | ||
<tr><td style={{{Style9|}}}>{{{Content9|}}}</td></tr>}} | <tr><td style={{{Style9|}}}>{{{Content9|}}}</td></tr>}} | ||
</table></includeonly></onlyinclude> | </table></includeonly></onlyinclude> | ||
{{Documentation (AL)}} | {{Documentation (AL)}} | ||
[[Category:AL Templates]] | [[Category:AL Templates]] |
Revision as of 12:00, 3 March 2020
Description
This is a base template for infoboxes. It is not meant to be directly called from within Wiki pages, but for implementing customized infoboxes in other templates.
Usage
{{Infobox |Title = |Surtitle = |Subtitle = |Content0 = |Style0 = |Header1 = |Content1 = |Style1 = <!-- ...up to 9... --> |Header9 = |Content9 = |Style9 = }}
Parameters
Name | Required | Description | Values |
---|---|---|---|
Title | Yes | The title of the infobox. | arbitrary text |
Surtitle | No | Text to be displayed directly above the title. | arbitrary text |
Subtitle | No | Text to be displayed directly below the title. | arbitrary text |
Content0 | No | The content of the cell below the title. | arbitrary text / image |
Style0 | No | Inline CSS styles for formatting Content0. | "inline CSS style" (in quotation marks) |
Header1...Header9 | No | The different headers of the infobox. Up to 9 are possible. Empty headers will not be displayed. | arbitrary text |
Content1...Content9 | No | The content of the cells below Header1...Header9, respectively. Will only display if the corresponding Header is not empty. | arbitrary text or image |
Style1...Style9 | No | Inline CSS styles for formatting Content1...Content9, respectively. | "inline CSS style" (in quotation marks) |
View/Edit documentation page