Template:Infobox (AL)/doc: Difference between revisions
From Exiled Kingdoms Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Description == | == Description == | ||
This is a | 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 == | == Usage == | ||
<pre> | <pre> | ||
{{Infobox | {{Infobox | ||
|Title = | |Title = | ||
|Surtitle = | |Surtitle = | ||
Line 27: | Line 27: | ||
<tr><td>Subtitle</td><td>No</td><td>Text to be displayed directly below the title.</td><td>arbitrary text</td></tr> | <tr><td>Subtitle</td><td>No</td><td>Text to be displayed directly below the title.</td><td>arbitrary text</td></tr> | ||
<tr><td>Content0</td><td>No</td><td>The content of the cell below the title.</td><td>arbitrary text / image</td></tr> | <tr><td>Content0</td><td>No</td><td>The content of the cell below the title.</td><td>arbitrary text / image</td></tr> | ||
<tr><td>Style0</td><td>No</td><td>Inline CSS | <tr><td>Style0</td><td>No</td><td>Inline CSS styles for formatting Content0.</td><td>"inline CSS style" (in quotation marks)</td></tr> | ||
<tr><td>Header1...Header9</td><td>No</td><td>The different headers of the infobox. Up to 9 are possible. Empty headers will not be displayed.</td><td>arbitrary text</td></tr> | <tr><td>Header1...Header9</td><td>No</td><td>The different headers of the infobox. Up to 9 are possible. Empty headers will not be displayed.</td><td>arbitrary text</td></tr> | ||
<tr><td>Content1...Content9</td><td>No</td><td>The content of the cells below Header1...Header9, respectively. Will only display if the corresponding Header is not empty.</td><td>arbitrary text | <tr><td>Content1...Content9</td><td>No</td><td>The content of the cells below Header1...Header9, respectively. Will only display if the corresponding Header is not empty.</td><td>arbitrary text or image</td></tr> | ||
<tr><td>Style1...Style9</td><td>No</td><td>Inline CSS | <tr><td>Style1...Style9</td><td>No</td><td>Inline CSS styles for formatting Content1...Content9, respectively.</td><td>"inline CSS style" (in quotation marks)</td></tr> | ||
</table> | </table> |
Latest revision as of 13:00, 14 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) |