Template:Infobox: Difference between revisions

The Emma M. Lion Wiki
created base infobox
 
No edit summary
 
(5 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;">
   <td class="title" colspan="2">{{{Title}}}</td>
   <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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Titletitle

The title of the infobox.

Stringrequired
Typetype

The type of infobox; use for the header color.

Stringrequired
Content1

The content of the infobox.

Stringrequired

Example

{{Infobox|
{{IBR|Age|21}}}
{{IBR|Profession|Infobox Writer}}
|title=Example|type=character}}
Example
Age 21
Profession Infobox Writer