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
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Main other|{{Short description|Fictional character|noreplace|pagetype=Articles}}}}
{{Main other|{{Short description|Roleplay Season|noreplace|pagetype=Articles}}}}
{{Infobox
{{Infobox
| bodyclass    = ib-character
| templatestyles = Infobox servant/styles.css


| above        = {{If empty |{{{name|}}} |<includeonly>{{PAGENAMEBASE}}</includeonly> }}
| above        = {{If empty |{{{season_name|}}} |<includeonly>{{PAGENAMEBASE}}</includeonly> }}
| aboveclass  = notheme
| headerclass = notheme


| subheader    = <div style="text-align:center">{{#switch: {{{class|}}}
| image        = [[File:{{{image|}}}|{{{image_size|50px}}}]]
  | Saber = [[File:Icon_class_saber.webp|30px]]
| caption      = {{{image_caption|}}}
  | Archer = [[File:Icon_class_archer.webp|30px]]
  | Lancer = [[File:Icon_class_lancer.webp|30px]]
  | Rider = [[File:Icon_class_rider.webp|30px]]
  | Caster = [[File:Icon_class_caster.webp|30px]]
  | Assassin = [[File:Icon_class_assassin.webp|30px]]
  | Berserker = [[File:Icon_class_berserker.webp|30px]]
}}</div>


| label1      = Location
| data1        = {{{location|}}}


| image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}}}
| label2      = Season Host
| data2        = {{{season_host|}}}


| label1       = Artist Credit
| label3       = Start Date
| data1       = {{{artist|}}}
| data3       = {{#if: {{{start_date|}}} | {{#time: F j, Y | {{{start_date}}} }} | Not specified }}


| label2       = Class
| label4       = End Date
| data2       = {{#switch: {{{class|}}}
| data4       = {{#if: {{{end_date|}}} | {{#time: F j, Y | {{{end_date}}} }} | Not specified }}
  | Saber
 
  | Archer
| label5      = Status
   | Lancer
| data5        = {{#switch: {{{status|}}}
   | Rider
   | Active
   | Caster
   | Completed
   | Assassin
   | Cancelled
   | Berserker = {{{class|}}}
   | On Hold
   | #default = <span style="color:red">Invalid class value. Must be a valid Servant class</span>
   | Planning = {{{status|}}}
   | #default = <span style="color:red">Invalid status value. Must be Active, Completed, Cancelled, On Hold, or Planning</span>
}}
}}


| label3      = Alias
| data3        = {{{alias|}}}
| label4      = Gender
| data4        = {{{gender|}}}
| label5      = Born
| data5        = {{{born|}}}
| label6      = Died
| data6        = {{{died|}}}
| label7      = Height
| data7        = {{{height|}}}
| label8      = Weight
| data8        = {{{weight|}}}
| label9      = Nationality
| data9        = {{{nationality|}}}
| label10      = Alignment
| data10      = {{#switch: {{{alignment|}}}
  | Lawful Good
  | Lawful Neutral
  | Lawful Evil
  | Neutral Good
  | True Neutral
  | Neutral Evil
  | Chaotic Good
  | Chaotic Neutral
  | Chaotic Evil = {{{alignment|}}}
  | #default = <span style="color:red">Invalid alignment value. Must be one of the nine D&D alignments</span>
}}
}}
 
<noinclude>
| label11      = Weapon
| data11      = {{{weapon|}}}
 
| label12      = Likes
| data12      = {{{likes|}}}
 
| label13      = Dislikes
| data13      = {{{dislikes|}}}
 
| header20      = Parameters
 
| data21      =
<div style="text-align:center">
{{{!}} class="infobox-table" style="width:100%; border-collapse:collapse; text-align:center;"
{{!}} style="font-weight:bold; text-align:center;" {{!}} Strength {{!}}{{!}} style="font-weight:bold; text-align:center;" {{!}} Endurance {{!}}{{!}} style="font-weight:bold; text-align:center;" {{!}} Agility
{{!}}-
{{!}} style="text-align:center;" {{!}} {{{param-strength|}}} {{!}}{{!}} style="text-align:center;" {{!}} {{{param-endurance|}}} {{!}}{{!}} style="text-align:center;" {{!}} {{{param-agility|}}}
{{!}}-
{{!}} style="font-weight:bold; text-align:center;" {{!}} Mana {{!}}{{!}} style="font-weight:bold; text-align:center;" {{!}} Luck {{!}}{{!}} style="font-weight:bold; text-align:center;" {{!}} NP
{{!}}-
{{!}} style="text-align:center;" {{!}} {{{param-mana|}}} {{!}}{{!}} style="text-align:center;" {{!}} {{{param-luck|}}} {{!}}{{!}} style="text-align:center;" {{!}} {{{param-np|}}}
{{!}}}
</div>
 
}}<!-- Start tracking
--><noinclude>
{{Documentation}}
{{Documentation}}
<!-- Add categories to the /doc subpage, not here! -->
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"name": {
"season_name": {
"description": "Servant's name",
"label": "Season Name",
"description": "Name of the roleplay season",
"type": "string",
"type": "string",
"required": true
"required": true
},
},
"image": {
"image": {
"label": "Image",
"description": "Filename of the image to display",
"description": "Filename of the image to display",
"type": "string"
},
"image_size": {
"label": "Image Size",
"description": "Size of the image in pixels (e.g., 50px)",
"type": "string",
"type": "string",
"default": "Please name your images using the following format: \n\nimg_svt_{Class}_{ServantName}_{FreeSpace}.{extension}\n\nExample: \"img_svt_Saber_ArtoriaPendragon_Portrait.png\""
"default": "250px"
},
},
"image_size": {
"image_caption": {
"description": "Size of the image in pixels (e.g., 200px)",
"label": "Image Caption",
"description": "Caption for the image",
"type": "string"
},
"location": {
"label": "Location",
"description": "Where the season takes place",
"type": "string"
"type": "string"
},
},
"artist": {},
"season_host": {
"class": {
"label": "Season Host",
"description": "Servant's class",
"description": "Who is hosting the season",
"type": "string",
"type": "string",
"suggestedvalues": [
"Saber",
"Archer",
"Lancer",
"Rider",
"Caster",
"Assassin",
"Berserker"
],
"required": true
"required": true
},
},
"alias": {},
"start_date": {
"gender": {},
"label": "Start Date",
"born": {},
"description": "When the season started (YYYY-MM-DD format)",
"died": {},
"type": "string"
"height": {},
},
"weight": {},
"end_date": {
"nationality": {},
"label": "End Date",
"alignment": {
"description": "When the season ended (YYYY-MM-DD format)",
"description": "Servant's alignment",
"type": "string"
},
"status": {
"label": "Status",
"description": "Current status of the season",
"type": "string",
"type": "string",
"suggestedvalues": [
"suggestedvalues": [
"Lawful Good",
"Active",
"Lawful Neutral",
"Completed",
"Lawful Evil",
"Cancelled",
"Neutral Good",
"On Hold",
"True Neutral",
"Planning"
"Neutral Evil",
"Chaotic Good",
"Chaotic Neutral",
"Chaotic Evil"
],
],
"required": true
"required": true
},
}
"weapon": {},
"likes": {},
"dislikes": {},
"param-strength": {},
"param-endurance": {},
"param-agility": {},
"param-mana": {},
"param-luck": {},
"param-np": {}
}
}
}
}
</templatedata></noinclude>
</templatedata>
</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