Jump to content

Template:Infobox group/doc: Difference between revisions

From VassarWiki
more specific template; added description
fixed example code
 
(5 intermediate revisions by the same user not shown)
Line 11: Line 11:
"image": {
"image": {
"label": "Image",
"label": "Image",
"description": "File name of image uploaded to Wikimedia Commons",
"description": "File name of image uploaded to Wikimedia Commons (without File: prefix)",
"type": "wiki-file-name"
"type": "wiki-file-name",
"example": "Groundhog.jpg"
},
},
"caption": {
"caption": {
"label": "Caption",
"label": "Caption",
"description": "Caption to accompany the image",
"description": "Caption to accompany the image",
"type": "string"
},
"times": {
"label": "Meeting times",
"description": "Dates and times of public meetings",
"example": "7:00 pm on Tuesdays",
"type": "string"
},
"locations": {
"label": "Meeting locations",
"description": "Locations of public meetings",
"example": "[[Rocky]] 210",
"type": "string"
"type": "string"
},
},
Line 35: Line 24:
"description": "List of individuals in leadership (with roles)",
"description": "List of individuals in leadership (with roles)",
"example": "John Doe (President) ",
"example": "John Doe (President) ",
"type": "string"
"type": "string",
"aliases": [
"leader",
"leaders"
]
},
},
"email": {
"email": {
Line 44: Line 37:
"socials": {
"socials": {
"label": "Social media",
"label": "Social media",
"type": "url",
"aliases": [
"social",
"social media",
"social_media",
"socialmedia"
],
"description": "Link(s) to social media account(s). If numerous, make a section on the page with social media links, and then link to it here.",
"example": "[https://www.instagram.com/themiscnews/ Instagram], [https://x.com/themiscnews Twitter/X]"
},
"access": {
"label": "Access",
"description": "How open the group is",
"type": "string",
"suggestedvalues": [
"Audition-based",
"All students",
"All community members"
]
},
"time": {
"aliases": [
"times",
"meeting_time",
"meetingtime",
"meeting_times",
"meetingtimes",
"meeting time",
"meeting times"
],
"label": "Meeting time",
"description": "Date(s) and time(s) of regular meetings",
"example": "7:00 pm on Tuesdays",
"type": "string"
},
"location": {
"aliases": [
"locations",
"meeting_location",
"meetinglocation",
"meeting_locations",
"meetinglocations",
"meeting location",
"meeting locations"
],
"label": "Meeting location",
"description": "Location(s) of regular meetings",
"example": "[[Rocky]] 210",
"type": "string"
},
"website": {
"label": "Website",
"description": "The group's official website",
"example": "[https://miscellanynews.org/]",
"type": "url"
"type": "url"
}
}
Line 51: Line 98:
"image",
"image",
"caption",
"caption",
"times",
"access",
"locations",
"time",
"location",
"leadership",
"leadership",
"email",
"email",
"socials"
"socials",
"website"
],
],
"description": "Basic infobox template for a page about a group or student org."
"description": "Basic infobox template for a page about a group or student org."
}
}
</templatedata>
</templatedata>
Consider using a [[:Category:Infoboxes|more specific infobox template]].


== Example ==
== Example ==
Line 66: Line 114:
<pre>
<pre>
{{Infobox group
{{Infobox group
| name     = Vassar Clowning Club
| name = Vassar Groundhog Club
| times    = 7:00 pm on Tuesdays
| image = Groundhog.jpg
| locations = Rocky 300
| caption = A beautiful specimen
| email   = clowns@vassar.edu
| access = All community members
| time = 13:00 pm on Tuesdays
| location = Rocky 900
| email = groundhogs@vassar.edu
}}
}}
</pre>
</pre>
{{Infobox group
{{Infobox group
| name     = Vassar Clowning Club
| name = Vassar Groundhog Club
| times    = 7:00 pm on Tuesdays
| image = Groundhog.jpg
| locations = Rocky 300
| caption = A beautiful specimen
| email   = clowns@vassar.edu
| access = All community members
| time = 13:00 pm on Tuesdays
| location = Rocky 900
| email = groundhogs@vassar.edu
}}
}}

Latest revision as of 19:43, 27 April 2026

Basic infobox template for a page about a group or student org.

Template parameters

ParameterDescriptionTypeStatus
Namename

Name of the group

Default
{{PAGENAME}}
Example
Vastards
Stringoptional
Imageimage

File name of image uploaded to Wikimedia Commons (without File: prefix)

Example
Groundhog.jpg
Fileoptional
Captioncaption

Caption to accompany the image

Stringoptional
Accessaccess

How open the group is

Suggested values
Audition-based All students All community members
Stringoptional
Meeting timetime times meeting_time meetingtime meeting_times meetingtimes meeting time meeting times

Date(s) and time(s) of regular meetings

Example
7:00 pm on Tuesdays
Stringoptional
Meeting locationlocation locations meeting_location meetinglocation meeting_locations meetinglocations meeting location meeting locations

Location(s) of regular meetings

Example
[[Rocky]] 210
Stringoptional
Leadershipleadership leader leaders

List of individuals in leadership (with roles)

Example
John Doe (President)
Stringoptional
Email addressemail

no description

Example
vsa@vassar.edu
URLoptional
Social mediasocials social social media social_media socialmedia

Link(s) to social media account(s). If numerous, make a section on the page with social media links, and then link to it here.

Example
[https://www.instagram.com/themiscnews/ Instagram], [https://x.com/themiscnews Twitter/X]
URLoptional
Websitewebsite

The group's official website

Example
[https://miscellanynews.org/]
URLoptional

Example

{{Infobox group
| name = Vassar Groundhog Club
| image = Groundhog.jpg
| caption = A beautiful specimen
| access = All community members
| time = 13:00 pm on Tuesdays
| location = Rocky 900
| email = groundhogs@vassar.edu
}}
Vassar Groundhog Club
A beautiful specimen
Meetings
AccessAll community members
Time13:00 pm on Tuesdays
LocationRocky 900
Links
Emailgroundhogs@vassar.edu