×
Create a new article
Write your page title here:
We currently have 107 articles on Tophiachu Wiki. Type your article name above or click on one of the titles below and start writing!



Tophiachu Wiki
107Articles

Template:Event: Difference between revisions

m (1 revision imported: importing from fandom)
m (1 revision imported: templates)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<infobox>
<div class="infobox" style="float:right; min-width: 22em; max-width: {{{maxwidth|280px}}}; font-size: 88%; line-height: 1.5em; margin: 5px; text-align: left; border: 1px solid #aaa; background-color: #f9f9f9;">
<title source="title">
    <div style="font-size: 110%; font-weight: bold; background-color: #ccc; text-align: center; padding: 5px 0;">{{{infoboxHeader|{{PAGENAME}}}}}</div>
<default>{{PAGENAME}}</default>
    <div style="margin: 0 5px 5px;>
</title>
        {{#if: {{{image|}}} |
<image source="image">
            <div style="margin: 5px 0 0; text-align: center;">[[File:{{{image}}}|270px]]</div>
<default>Temp.png</default>
        }}
</image>
        <div style="{{#if: {{{imageDesc|}}} | | display: none; }}">
<data source="Time">
            <small><div style="margin: 5px 0 0; padding: 0 2px 0; text-align: center; max-width:270px">''{{{imageDesc}}}''</div></small>
<label>Date</label>
        </div>
</data>
        <div style="{{#if: {{{title|}}} | | display: none; }}">
<data source="Cause">
            <div style="margin: 5px 0 0; padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Title</b>: {{{title}}}</div>
<label>Cause</label>
        </div>
</data>
        <div style="{{#if: {{{Time|}}} | | display: none; }}">
<data source="Effect">
            <div style="margin: 5px 0 0; padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Time</b>: {{{Time}}}</div>
<label>Effect</label>
        </div>
</data>
        <div style="{{#if: {{{Cause|}}} | | display: none; }}">
<data source="Involved">
            <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>Cause</b>: {{{Cause}}}</div>
<label>People involved</label>
        </div>
</data>
        <div style="{{#if: {{{Effect|}}} | | display: none; }}">
</infobox>
            <div style="margin: 5px 0 0; text-align: center; border-top: 1px solid #aaa;">'''Effect''': {{{Effect}}}</div>
        </div>
        <div style="{{#if: {{{People involved|}}} | | display: none; }}">
            <div style="padding: 0 3px 0; border-top: 1px solid #aaa;"><b>People involved</b>: {{{People involved}}}</div>
        </div>
    </div>
</div>
<noinclude>
<noinclude>
<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",
"imageDesc": {
            "description": "Image of said event.",
"label": "imageDesc",
            "type": "wiki-file-name",
"description": "Description of the image displayed.",
            "required": false
"type": "string",
        },
"required": false,
        "Time": {
"default": "nil"
            "label": "Time",
},
            "description": "The date the event happened",
"image": {
            "type": "string",
"label": "image",
            "required": false
"description": "Image of said event.",
        },
"type": "wiki-file-name",
        "Cause": {
"required": false,
            "label": "Cause",
"default": "Temp.png"
            "description": "Cause of the event.",
},
            "type": "string",
"Time": {
            "required": false
"label": "Time",
        },
"description": "The date the event happened",
        "Effect": {
"type": "string",
            "label": "Effect",
"required": false,
            "description": "The aftermath of the event.",
"default": "nil"
            "type": "string",
},
            "required": false
"Cause": {
        },
"label": "Cause",
        "Involved": {
"description": "Cause of the event.",
            "label": "People involved",
"type": "string",
            "description": "People involved with the event.",
"required": false,
            "type": "string",
"default": "nil"
            "required": false
},
        }
"Effect": {
    }
"label": "Effect",
"description": "The aftermath of the event.",
"type": "string",
"required": false,
"default": "nil"
},
"Involved": {
"label": "People involved",
"description": "People involved with the event.",
"type": "string",
"required": false,
"default": "nil"
}
}
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 15:31, 29 December 2024

Event
{{{imageDesc}}}
Title: {{{title}}}
Time: {{{Time}}}
Cause: {{{Cause}}}
Effect: {{{Effect}}}
People involved: {{{People involved}}}

An infobox for events.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
titletitle

What the event was called.

Default
{{PAGENAME}}
Stringrequired
imageDescimageDesc

Description of the image displayed.

Default
nil
Stringoptional
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