Template:Infobox: Difference between revisions
The Emma M. Lion Wiki
OrangeJedi (talk | contribs) No edit summary |
OrangeJedi (talk | contribs) No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><table class="infobox side"> | <includeonly><table class="infobox side"> | ||
<tr align="center"> | <tr align="center" style="border: none;"> | ||
<th class="title" colspan="2">{{{title}}}</th> | <th class="title {{{type|misc}}}" colspan="2">{{{title}}}</th> | ||
</tr> | </tr> | ||
{{{1}}} | {{{1}}} | ||
</table></includeonly> | </table></includeonly><noinclude> | ||
<noinclude> | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 13: | Line 12: | ||
"label": "Title", | "label": "Title", | ||
"description": "The title of the infobox.", | "description": "The title of the infobox.", | ||
"type": "string", | |||
"required": true | |||
}, | |||
"type": { | |||
"label": "Type", | |||
"description": "The type of infobox; use for the header color.", | |||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
Line 25: | Line 30: | ||
} | } | ||
</templatedata> | </templatedata> | ||
'''Example''' | |||
<pre> | |||
{{Infobox| | |||
{{IBR|Age|21}}} | |||
{{IBR|Profession|Infobox Writer}} | |||
|title=Example|type=character}} | |||
</pre> | |||
{{Infobox| | |||
{{IBR|Age|21}} | |||
{{IBR|Profession|Infobox Writer}} | |||
|title=Example|type=character}} | |||
</noinclude> | </noinclude> |
Latest revision as of 21:02, 6 February 2025
A base infobox, used in all other info boxes.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | The title of the infobox. | String | required |
Type | type | The type of infobox; use for the header color. | String | required |
Content | 1 | The content of the infobox. | String | required |
Example
{{Infobox| {{IBR|Age|21}}} {{IBR|Profession|Infobox Writer}} |title=Example|type=character}}
Example | |
---|---|
Age | 21 |
Profession | Infobox Writer |