Template:Infobox season: Difference between revisions

From fattwiki
(Add TemplateData to make infobox work with visual editor)
Tag: 2017 source edit
mNo edit summary
Tag: 2017 source edit
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
   </title>
   </title>
   <image source="image">
   <image source="image">
     <caption source="caption1"/>
     <caption source="caption"/>
   </image>
   </image>
   <data source="episodes">
   <data source="episodes">
Line 20: Line 20:
   </data>
   </data>
</infobox><!--
</infobox><!--
-->{{#ifeq: {{NAMESPACENUMBER}} | 0 | {{#if: {{{color-theme|}}} || [[Category:Infoboxes with missing color theme]] }} | }}</onlyinclude>
-->{{#ifeq: {{NAMESPACENUMBER}} | 0 | {{#if: {{{color_theme|}}} || [[Category:Infoboxes with missing color theme]] }} | }}</onlyinclude><noinclude>
<noinclude>
<br style="clear:both;"/>
[[Category:Infoboxes]]
{{Documentation}}
<templatedata>
[[Category:Infoboxes]]</noinclude>
{
"params": {
"color_theme": {
"aliases": [
"color-theme"
],
"label": "Color Theme",
"description": "Name of color theme. See [[Fatt Wiki:Getting Started]] for valid names.",
"example": "cw",
"type": "string",
"default": "Default theme gold",
"suggested": true
},
"image": {
"label": "Image",
"description": "Image",
"example": "[[File:cwcover.jpg]]",
"type": "content"
},
"caption": {
"aliases": [
"caption1"
],
"label": "Caption",
"description": "Image caption",
"example": "Cover art by [https://twitter.com/shoddyrobot Craig Sheldon]",
"type": "content"
},
"episodes": {
"label": "Episodes",
"description": "Number of episodes in season",
"example": "43",
"type": "content",
"suggested": true
},
"soundtrack": {
"label": "Soundtrack",
"description": "The season's soundtrack",
"example": "[[The Long Way Around: Friends At The Table Soundtrack, Season Two]]",
"type": "content",
"suggested": true
},
"release": {
"aliases": [
"released",
"release_date"
],
"label": "Release Dates",
"description": "Start and end dates",
"example": "July 17, 2015 - June 10, 2016",
"type": "string",
"suggested": true
},
"title": {
"label": "Title",
"description": "Title at the top of the infobox",
"example": "Season 2: COUNTER/Weight",
"type": "content",
"default": "Uses the page title",
"required": true
}
},
"paramOrder": [
"color_theme",
"title",
"image",
"caption",
"episodes",
"soundtrack",
"release"
]
}
</templatedata></noinclude>

Latest revision as of 23:35, 16 November 2023


Usage[edit source]

Syntax[edit source]

{{Infobox season
| title = 
| color_theme = 
| image = 
| caption = 
| episodes = 
| soundtrack = 
| release = 
}}

Example[edit source]

{{Infobox season
| title = Season 2: COUNTER/Weight
| color_theme = cw
| image = [[File:cwcover.jpg]]
| caption = Cover art by [https://twitter.com/shoddyrobot Craig Sheldon]
| episodes = 43
| soundtrack = [[The Long Way Around: Friends At The Table Soundtrack, Season Two]]
| release = July 17, 2015 - June 10, 2016
}}

TemplateData[edit source]

This is the TemplateData for this template. It is used by the Visual Editor and other tools.

No description.

Template parameters

ParameterDescriptionTypeStatus
Color Themecolor_theme

Name of color theme. See [[Fatt Wiki:Getting Started]] for valid names.

Default
Default theme gold
Example
cw
Stringsuggested
Titletitle

Title at the top of the infobox

Default
Uses the page title
Example
Season 2: COUNTER/Weight
Contentrequired
Imageimage

Image

Example
[[File:cwcover.jpg]]
Contentoptional
Captioncaption

Image caption

Example
Cover art by [https://twitter.com/shoddyrobot Craig Sheldon]
Contentoptional
Episodesepisodes

Number of episodes in season

Example
43
Contentsuggested
Soundtracksoundtrack

The season's soundtrack

Example
[[The Long Way Around: Friends At The Table Soundtrack, Season Two]]
Contentsuggested
Release Datesrelease

Start and end dates

Example
July 17, 2015 - June 10, 2016
Stringsuggested