Template:Infobox season: Difference between revisions

From ServantPedia™, the paid (but reliable) encyclopedia
Jump to navigation Jump to search
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
{{Main other|{{Short description|Roleplay Season|noreplace|pagetype=Articles}}}}
This is the '''Season''' infobox template. It should be used for articles about roleplay Seasons.
{{Infobox
 
| above        = {{If empty |{{{season_name|}}} |<includeonly>{{PAGENAMEBASE}}</includeonly> }}
 
| image        = [[File:{{{image|}}}|{{{image_size|50px}}}]]
| caption      = {{{image_caption|}}}
 
| label1      = Location
| data1        = {{{location|}}}
 
| label2      = Season Host
| data2        = {{{season_host|}}}
 
| label3      = Start Date
| data3        = {{#if: {{{start_date|}}} | {{#time: F j, Y | {{{start_date}}} }} | Not specified }}
 
| label4      = End Date
| data4        = {{#if: {{{end_date|}}} | {{#time: F j, Y | {{{end_date}}} }} | Not specified }}


== Usage ==
| label5       = Status
Copy the following code into your article and fill in the parameters:
| data5        = {{#switch: {{{status|}}}
<pre>
  | Active
{{Infobox season
  | Completed
| season_name    =
  | Cancelled
| image  =
  | On Hold
| image_size    =
  | Planning = {{{status|}}}
| image_caption  =
  | #default = <span style="color:red">Invalid status value. Must be Active, Completed, Cancelled, On Hold, or Planning</span>
| location       =  
| start_date    =  
| end_date      =
| status        =
| season_host    =
}}
</pre>
</noinclude>
<includeonly>
{| class="infobox" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em"
! colspan="2" class="infobox-title" style="text-align:center; font-size:125%; font-weight:bold;" | {{{season_name|{{{title|{{PAGENAME}}}}}}}}
|-
{{#if: {{{image|}}} |
| colspan="2" style="text-align:center;" | {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|250px}}}}}
{{#if: {{{image_caption|}}} |
| colspan="2" style="text-align:center; font-size:85%;" | {{{image_caption}}}
}}
}}
}}
}}
|-
! Location
| {{{location|}}}
|-
! Start Date
| {{{start_date|}}}
|-
! End Date
| {{{end_date|}}}
|-
! Status
| {{{status|}}}
|-
! Season Host
| {{{season_host|}}}
|}
</includeonly>
<noinclude>
<noinclude>
{{Documentation}}
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"season_name": {},
"season_name": {
"image": {},
"label": "Season Name",
"description": "Name of the roleplay season",
"type": "string",
"required": true
},
"image": {
"label": "Image",
"description": "Filename of the image to display",
"type": "string"
},
"image_size": {
"image_size": {
"default": "250px",
"label": "Image Size",
"description": "Size of the image (optional, defaults to 250px)"
"description": "Size of the image in pixels (e.g., 50px)",
"type": "string",
"default": "250px"
},
"image_caption": {
"label": "Image Caption",
"description": "Caption for the image",
"type": "string"
},
"location": {
"label": "Location",
"description": "Where the season takes place",
"type": "string"
},
"season_host": {
"label": "Season Host",
"description": "Who is hosting the season",
"type": "string",
"required": true
},
"start_date": {
"label": "Start Date",
"description": "When the season started (YYYY-MM-DD format)",
"type": "string"
},
"end_date": {
"label": "End Date",
"description": "When the season ended (YYYY-MM-DD format)",
"type": "string"
},
},
"image_caption": {},
"status": {
"location": {},
"label": "Status",
"start_date": {},
"description": "Current status of the season",
"end_date": {},
"type": "string",
"status": {},
"suggestedvalues": [
"season_host": {}
"Active",
"Completed",
"Cancelled",
"On Hold",
"Planning"
],
"required": true
}
}
}
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 09:27, 10 April 2025

[[File:|50px]]
Start DateNot specified
End DateNot specified
StatusInvalid status value. Must be Active, Completed, Cancelled, On Hold, or Planning

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Season Nameseason_name

Name of the roleplay season

Stringrequired
Imageimage

Filename of the image to display

Stringoptional
Image Sizeimage_size

Size of the image in pixels (e.g., 50px)

Default
250px
Stringoptional
Image Captionimage_caption

Caption for the image

Stringoptional
Locationlocation

Where the season takes place

Stringoptional
Season Hostseason_host

Who is hosting the season

Stringrequired
Start Datestart_date

When the season started (YYYY-MM-DD format)

Stringoptional
End Dateend_date

When the season ended (YYYY-MM-DD format)

Stringoptional
Statusstatus

Current status of the season

Suggested values
Active Completed Cancelled On Hold Planning
Stringrequired