Template:GameInfobox: Difference between revisions
No edit summary |
No edit summary |
||
(48 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{Infobox | <includeonly>{{Infobox | ||
| bodystyle = border-spacing: 2px 5px; | | bodystyle = border-spacing: 2px 5px; | ||
| above = {{{name|{{PAGENAME}}}}} | | above = {{{name|{{PAGENAME}}}}} | ||
| abovestyle = background-color: var(--background-color-backdrop-dark); color: var(--color-inverted); | | abovestyle = background-color: var(--background-color-backdrop-dark); color: var(--color-inverted); | ||
| headerstyle = background-color: var(--background-color-backdrop-dark); color: var(--color-inverted); | | headerstyle = background-color: var(--background-color-backdrop-dark); color: var(--color-inverted); | ||
| name = {{{name|{{PAGENAME}}}}} | | name = {{{name|{{PAGENAME}}}}} | ||
| image = {{#if:{{{box_art|}}}|[[File:{{{box_art|}}}|frameless|center]]}} | | image = {{#if:{{{box_art|}}}|[[File:{{{box_art|}}}|frameless|center]]}} | ||
| label1 = About | | label1 = About | ||
| data1 = {{hlist|[{{{igdb_link|}}} IGDB]}} | | data1 = {{hlist|[{{{igdb_link|}}} IGDB]}} | ||
| label2 = Series | | label2 = Series | ||
| data2 = {{#if:{{{series|}}}|[[:Category:{{{series}}}|{{{series}}}]]}} | | data2 = {{#if:{{{series|}}}|[[:Category:{{{series}}}|{{{series}}}]]}} | ||
| header3 = Joe's Playthrough | | header3 = Joe's Playthrough | ||
| label4 = State | | label4 = State | ||
| data4 = {{{play_state|}}} | | data4 = {{{play_state|}}} | ||
| label5 = | | label5 = Number of Streams | ||
| data5 = {{# | | data5 = {{#ask: [[Stream Game::{{{name|{{PAGENAME}}}}}]]|format=count}} | ||
| label6 = | | label6 = Started | ||
| data6 = {{# | | data6 = {{Date|{{{started|}}}}}{{#if:{{{started|}}}|{{#set: Streamed starting={{{started}}}}}|}} | ||
| label7 = | | label7 = Finished | ||
| data7 = {{# | | data7 = {{Date|{{{finished|}}}}}{{#if:{{{finished|}}}|{{#set: Finished on={{{finished}}}}}|}} | ||
| | | label8 = Dropped | ||
| | | data8 = {{Date|{{{dropped|}}}}} | ||
| label9 = Watch | |||
| data9 = {{#if:{{{playlist|}}}|{{JoeYT2PlaylistCite|{{{playlist}}}|title={{{name|{{PAGENAME}}}}}}}}} | |||
| | | label10 = Joe Ecosystem | ||
| data10 = | | data10 = {{#if:{{{jasb|}}}|[https://bets.jads.stream/games/{{{jasb}}} Bets]}} | ||
{{#if:{{{ | | data11 = <div style="padding: 0.5em 0; border-top: 1px dashed #ccc; display: grid; text-align: center; align-items: center; justify-items: center; grid-template-columns: 1fr auto auto auto 1fr; gap: 0.5em;">{{#if:{{{series|}}}|{{#if:{{{previous_in_series|}}}|<span style="justify-self: end">{{{previous_in_series}}}</span><span>←</span>|<span></span><span></span>}}[[:Category:{{{series}}}|In Series]]{{#if:{{{next_in_series|}}}|<span>→</span><span style="justify-self: start">{{{next_in_series}}}</span>|<span></span><span></span>}}}}{{#if:{{{previous_played|}}}|<span style="justify-self: end">{{{previous_played}}}</span><span>←</span>|<span></span><span></span>}}[[:Category:Games|All Games]]{{#if:{{{next_played|}}}|<span>→</span><span style="justify-self: start">{{{next_played}}}</span>|<span></span><span></span>}}</div> | ||
| data11 = <div style="padding | |||
| header12 = Related Pages | |||
{{#if:{{{series|}}}|{{#if:{{{previous_in_series|}}}| | | data13 = <div style="text-align: center;">{{hlist|[[:Category:{{{name|{{PAGENAME}}}}}|Game]]|{{#if:{{{series|}}}|[[:Category:{{{series}}}|Series]]}}}} | ||
{{#if:{{{previous_played|}}}| | }}[[Category:Games]][[Category:{{{name|{{PAGENAME}}}}}]]{{#if:{{{series|}}}|* [[Category:{{{series}}}|Series]]}}</div> | ||
}}[[Category:Games]]{{#if:{{{series|}}}|* [[Category:{{{series}}}|Series]]}} | </includeonly><noinclude> | ||
<noinclude> | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 68: | Line 69: | ||
"started": { | "started": { | ||
"label": "Started", | "label": "Started", | ||
"description": "When Joe started playing the game.", | "description": "When Joe started playing the game. Give this in ISO 8601 format (YYYY-MM-DD).", | ||
"type": "date" | "type": "date" | ||
}, | }, | ||
"finished": { | "finished": { | ||
"label": "Finished", | "label": "Finished", | ||
"description": "When Joe finished playing the game, note this means completing the game, if he stopped playing before that, use dropped instead.", | "description": "When Joe finished playing the game, note this means completing the game, if he stopped playing before that, use dropped instead. Give this in ISO 8601 format (YYYY-MM-DD).", | ||
"type": "date" | "type": "date" | ||
}, | }, | ||
"dropped": { | "dropped": { | ||
"label": "Dropped", | "label": "Dropped", | ||
"description": "When Joe stopped playing the game, note this means not completing the game, if he stopped playing after finishing it, use finished instead.", | "description": "When Joe stopped playing the game, note this means not completing the game, if he stopped playing after finishing it, use finished instead. Give this in ISO 8601 format (YYYY-MM-DD).", | ||
"type": "date" | "type": "date" | ||
}, | }, | ||
Line 94: | Line 95: | ||
"previous_in_series": { | "previous_in_series": { | ||
"label": "Previous Game Joe Played In Series", | "label": "Previous Game Joe Played In Series", | ||
"description": "The previous game Joe played in the series, if there was one.", | "description": "The previous game Joe played in the series, if there was one. This should be a link.", | ||
"type": " | "type": "content" | ||
}, | }, | ||
"next_in_series": { | "next_in_series": { | ||
"label": "Next Game Joe Played In Series", | "label": "Next Game Joe Played In Series", | ||
"description": "The next game Joe played in the series, if there is one.", | "description": "The next game Joe played in the series, if there is one. This should be a link.", | ||
"type": " | "type": "content" | ||
}, | }, | ||
"previous_played": { | "previous_played": { | ||
"label": "Previous Game Joe Played", | "label": "Previous Game Joe Played", | ||
"description": "The previous game Joe played before this one.", | "description": "The previous game Joe played before this one. This should be a link.", | ||
"type": " | "type": "content" | ||
}, | }, | ||
"next_played": { | "next_played": { | ||
"label": "Next Game Joe Played", | "label": "Next Game Joe Played", | ||
"description": "The game Joe played after this one.", | "description": "The game Joe played after this one. This should be a link.", | ||
"type": " | "type": "content" | ||
}, | |||
"jasb": { | |||
"label": "JASB Bets Slug", | |||
"description": "The slug (part of the URL) for JASB bets for the game.", | |||
"type": "string" | |||
} | } | ||
}, | }, | ||
Line 128: | Line 134: | ||
"next_in_series", | "next_in_series", | ||
"previous_played", | "previous_played", | ||
"next_played" | "next_played", | ||
"jasb" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 23:41, 27 February 2025
An infobox for a game.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The name of the game. | String | required |
Box Art | box_art | The box art for the game. | File | suggested |
Series | series | The name of the series the game is in. | String | optional |
IGDB Link | igdb_link | A link to the page about the game on IGDB. | URL | required |
Play State | play_state | If Joe has played the game.
| String | required |
Started | started | When Joe started playing the game. Give this in ISO 8601 format (YYYY-MM-DD). | Date | optional |
Finished | finished | When Joe finished playing the game, note this means completing the game, if he stopped playing before that, use dropped instead. Give this in ISO 8601 format (YYYY-MM-DD). | Date | optional |
Dropped | dropped | When Joe stopped playing the game, note this means not completing the game, if he stopped playing after finishing it, use finished instead. Give this in ISO 8601 format (YYYY-MM-DD). | Date | optional |
Playlist | playlist | The YouTube playlist code from the URL for the playlist of Joe playing the game on his second channel. If only unofficial options are available, please add those as additional content instead. | String | optional |
Previous Game Joe Played In Series | previous_in_series | The previous game Joe played in the series, if there was one. This should be a link. | Content | optional |
Next Game Joe Played In Series | next_in_series | The next game Joe played in the series, if there is one. This should be a link. | Content | optional |
Previous Game Joe Played | previous_played | The previous game Joe played before this one. This should be a link. | Content | optional |
Next Game Joe Played | next_played | The game Joe played after this one. This should be a link. | Content | optional |
JASB Bets Slug | jasb | The slug (part of the URL) for JASB bets for the game. | String | optional |