Jump to content

Template:Event/doc: Difference between revisions

From VassarWiki
creating doc page
 
changed template data
Line 1: Line 1:
<templatedata>
<templatedata>
{
{
  "description": "Displays a compact event card for use on club pages and the Main Page.",
"description": "Displays a compact event card for use on club pages and the Main Page.",
  "params": {
"params": {
    "name": {
"name": {
      "label": "Event name",
"label": "Event name",
      "type": "string",
"type": "string",
      "required": true
"required": true
    },
},
    "description": {
"description": {
      "label": "Description",
"label": "Description",
      "type": "string",
"type": "string",
      "required": false
"required": false
    },
},
    "organizers": {
"organizers": {
      "label": "Organizers",
"label": "Organizers",
      "type": "string",
"type": "string",
      "required": false
"required": false,
    },
"description": "The organizer, whether it's an individual, org, or department. Wikilink if possible. "
    "datetime": {
},
      "label": "Date and time",
"place": {
      "type": "string",
"label": "Place",
      "required": false
"type": "string",
    },
"required": false,
    "place": {
"description": "Location of the event, wikilinked if possible",
      "label": "Place",
"example": "[[Rocky]] 300"
      "type": "string",
},
      "required": false
"image": {
    },
"label": "Image",
    "image": {
"description": "Image filename (e.g. Flyer.png), without the File: prefix.",
      "label": "Image",
"type": "wiki-file-name",
      "description": "Image filename (e.g. Flyer.png), without the File: prefix.",
"required": false
      "type": "wiki-file-name",
},
      "required": false
"date": {
    }
"label": "Date",
  }
"type": "date",
"required": true
},
"time": {
"label": "Time",
"type": "string"
}
},
"paramOrder": [
"name",
"description",
"organizers",
"date",
"time",
"place",
"image"
]
}
}
</templatedata>
</templatedata>

Revision as of 18:06, 7 April 2026

Displays a compact event card for use on club pages and the Main Page.

Template parameters

ParameterDescriptionTypeStatus
Event namename

no description

Stringrequired
Descriptiondescription

no description

Stringoptional
Organizersorganizers

The organizer, whether it's an individual, org, or department. Wikilink if possible.

Stringoptional
Datedate

no description

Daterequired
Timetime

no description

Stringoptional
Placeplace

Location of the event, wikilinked if possible

Example
[[Rocky]] 300
Stringoptional
Imageimage

Image filename (e.g. Flyer.png), without the File: prefix.

Fileoptional

Example

{{Event
| name        = Best Event Ever
| description = Come to this event, which will be the best.
| organizers  = VassarWiki
| datetime    = January 1 at 1 pm
| place       = Rocky 300
| image       = wompwomp.png
}}
Best Event Ever
👥VassarWiki📍Rocky 300
Come to this event, which will be the best.