Template:Event/doc: Difference between revisions

creating doc page
 
m EdwardNWM moved page Template:Poster/doc to Template:Event/doc over redirect: simplification
 
(9 intermediate revisions by the same user not shown)
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. Automatically placed on the Upcoming Events page.",
  "params": {
"params": {
    "name": {
"name": {
      "label": "Event name",
"label": "Event name",
      "type": "string",
"type": "string",
      "required": true
"required": true
    },
},
    "description": {
"organizers": {
      "label": "Description",
"label": "Organizers",
      "type": "string",
"type": "string",
      "required": false
"description": "All organizer(s), whether they're individuals, orgs, departments, etc. Wikilink if possible. ",
    },
"example": "[[Vastards]]",
    "organizers": {
"suggested": true
      "label": "Organizers",
},
      "type": "string",
"place": {
      "required": false
"label": "Place",
    },
"type": "string",
    "datetime": {
"required": false,
      "label": "Date and time",
"description": "Location of the event, wikilinked if possible",
      "type": "string",
"example": "Rocky 300"
      "required": false
},
    },
"image": {
    "place": {
"label": "Image",
      "label": "Place",
"description": "Image filename, without the File: prefix.",
      "type": "string",
"type": "wiki-file-name",
      "required": false
"required": false,
    },
"example": "Flyer.png"
    "image": {
},
      "label": "Image",
"date": {
      "description": "Image filename (e.g. Flyer.png), without the File: prefix.",
"label": "Date",
      "type": "wiki-file-name",
"type": "date",
      "required": false
"required": true,
    }
"description": "Date in YYYY-MM-DD format",
  }
"example": "2027-01-30"
},
"time": {
"label": "Time",
"type": "string",
"suggested": true
},
"description": {
"description": "very brief description or extra info (anything substantial should go on a page!)",
"type": "string"
}
},
"paramOrder": [
"name",
"organizers",
"date",
"time",
"place",
"image",
"description"
]
}
}
</templatedata>
</templatedata>
Line 40: Line 60:
== Example ==
== Example ==
<pre>
<pre>
{{Event
{{Poster
| name       = Best Event Ever
| name = Best Event Ever
| description = Come to this event, which will be the best.
| organizers = VassarWiki
| organizers  = VassarWiki
| date = 2027-01-01
| datetime    = January 1 at 1 pm
| time = 1 pm
| place       = Rocky 300
| place = Rocky 300
| image       = wompwomp.png
| image = wompwomp.png
}}
}}
</pre>
</pre>


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