×
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

(Infobox created with infobox builder.)
m (1 revision imported: templates)
 
(5 intermediate revisions by 3 users 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>
<templatedata>
{
"description": "An infobox for events.",
"params": {
"title": {
"label": "title",
"description": "What the event was called.",
"type": "string",
"required": true,
"default": "{{PAGENAME}}"
},
"imageDesc": {
"label": "imageDesc",
"description": "Description of the image displayed.",
"type": "string",
"required": false,
"default": "nil"
},
"image": {
"label": "image",
"description": "Image of said event.",
"type": "wiki-file-name",
"required": false,
"default": "Temp.png"
},
"Time": {
"label": "Time",
"description": "The date the event happened",
"type": "string",
"required": false,
"default": "nil"
},
"Cause": {
"label": "Cause",
"description": "Cause of the event.",
"type": "string",
"required": false,
"default": "nil"
},
"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>
</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