Template:Infobox: Difference between revisions

The Emma M. Lion Wiki
added example
No edit summary
 
(3 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}}}
Line 12: 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 31: Line 37:
{{IBR|Age|21}}}
{{IBR|Age|21}}}
{{IBR|Profession|Infobox Writer}}
{{IBR|Profession|Infobox Writer}}
|title=Example}}
|title=Example|type=character}}
</pre>
</pre>
{{Infobox|
{{Infobox|
{{IBR|Age|21}}
{{IBR|Age|21}}
{{IBR|Profession|Infobox Writer}}
{{IBR|Profession|Infobox Writer}}
|title=Example}}
|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