Template:Event: Difference between revisions

From Nova Online Wiki
Jump to navigationJump to search
(Created page with "<infobox> <title source="title"> <default>{{PAGENAME}}</default> </title> <image source="image"> <default>Temp.png</default> </image> <data source="Time"> <label>Date</label> </data> <data source="Cause"> <label>Cause</label> </data> <data source="Effect"> <label>Effect</label> </data> <data source="Involved"> <label>People involved</label> </data> </infobox> <noinclude> <templatedata> { "description": "An infobox for events.", "params": {...")
 
No edit summary
 
Line 22: Line 22:
<templatedata>
<templatedata>
{
{
    "description": "An infobox for events.",
"description": "An infobox for events.",
    "params": {
"params": {
        "title": {
"title": {
            "label": "title",
"label": "title",
            "description": "What the event was called.",
"description": "What the event was called.",
            "type": "string",
"type": "string",
            "required": true
"required": true,
        },
"default": "{{PAGENAME}}"
        "image": {
},
            "label": "image",
"image": {
            "description": "Image of said event.",
"label": "image",
            "type": "wiki-file-name",
"description": "Image of said event.",
            "required": false
"type": "wiki-file-name",
        },
"required": false,
        "Time": {
"default": "Temp.png"
            "label": "Time",
},
            "description": "The date the event happened",
"Time": {
            "type": "string",
"label": "Time",
            "required": false
"description": "The date the event happened",
        },
"type": "string",
        "Cause": {
"required": false,
            "label": "Cause",
"default": "nil"
            "description": "Cause of the event.",
},
            "type": "string",
"Cause": {
            "required": false
"label": "Cause",
        },
"description": "Cause of the event.",
        "Effect": {
"type": "string",
            "label": "Effect",
"required": false,
            "description": "The aftermath of the event.",
"default": "nil"
            "type": "string",
},
            "required": false
"Effect": {
        },
"label": "Effect",
        "Involved": {
"description": "The aftermath of the event.",
            "label": "People involved",
"type": "string",
            "description": "People involved with the event.",
"required": false,
            "type": "string",
"default": "nil"
            "required": false
},
        }
"Involved": {
    }
"label": "People involved",
"description": "People involved with the event.",
"type": "string",
"required": false,
"default": "nil"
}
}
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 00:08, 13 April 2024

An infobox for events.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
titletitle

What the event was called.

Default
{{PAGENAME}}
Stringrequired
imageimage

Image of said event.

Default
Temp.png
Fileoptional
TimeTime

The date the event happened

Default
nil
Stringoptional
CauseCause

Cause of the event.

Default
nil
Stringoptional
EffectEffect

The aftermath of the event.

Default
nil
Stringoptional
People involvedInvolved

People involved with the event.

Default
nil
Stringoptional