Template:GameInfobox: Difference between revisions

No edit summary
No edit summary
 
(55 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 = Started
  | label5 = Number of Streams
| data5 = {{#dateformat:{{{started|}}}}}
  | data5 = {{#ask: [[Stream Game::{{{name|{{PAGENAME}}}}}]]|format=count}}
| label6 = Finished
  | label6 = Started
| data6 = {{#dateformat:{{{finished|}}}}}
  | data6 = {{Date|{{{started|}}}}}{{#if:{{{started|}}}|{{#set: Streamed starting={{{started}}}}}|}}
| label7 = Dropped
  | label7 = Finished
| data7 = {{#dateformat:{{{dropped|}}}}}
  | data7 = {{Date|{{{finished|}}}}}{{#if:{{{finished|}}}|{{#set: Finished on={{{finished}}}}}|}}
| label8 = Watch
  | label8 = Dropped
| data8 = {{#if:{{{playlist|}}}|{{JoeYT2PlaylistCite|{{{playlist}}}|title={{{name|{{PAGENAME}}}}}}}}}
  | data8 = {{Date|{{{dropped|}}}}}
  | label9 = Watch
  | data9 = {{#if:{{{playlist|}}}|{{JoeYT2PlaylistCite|{{{playlist}}}|title={{{name|{{PAGENAME}}}}}}}}}


| header9 = Related Pages
  | label10 = Joe Ecosystem
| data10 = {{flatlist|
  | data10 = {{#if:{{{jasb|}}}|[https://bets.jads.stream/games/{{{jasb}}} Bets]}}
* [[:Category:{{{name|{{PAGENAME}}}}}|Game]]
 
{{#if:{{{series|}}}|* [[:Category:{{{series}}}|Series]]}}
  | 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>
}}[[Category:Games]]{{#if:{{{series|}}}|* [[Category:{{{series}}}|Series]]}}}}</includeonly>
 
<noinclude>
  | header12 = Related Pages
  | data13 = <div style="text-align: center;">{{hlist|[[:Category:{{{name|{{PAGENAME}}}}}|Game]]|{{#if:{{{series|}}}|[[:Category:{{{series}}}|Series]]}}}}
}}[[Category:Games]][[Category:{{{name|{{PAGENAME}}}}}]]{{#if:{{{series|}}}|* [[Category:{{{series}}}|Series]]}}</div>
</includeonly><noinclude>
<templatedata>
<templatedata>
{
{
Line 64: 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 87: Line 92:
"type": "url",
"type": "url",
"required": true
"required": true
},
"previous_in_series": {
"label": "Previous Game Joe Played In Series",
"description": "The previous game Joe played in the series, if there was one. This should be a link.",
"type": "content"
},
"next_in_series": {
"label": "Next Game Joe Played In Series",
"description": "The next game Joe played in the series, if there is one. This should be a link.",
"type": "content"
},
"previous_played": {
"label": "Previous Game Joe Played",
"description": "The previous game Joe played before this one. This should be a link.",
"type": "content"
},
"next_played": {
"label": "Next Game Joe Played",
"description": "The game Joe played after this one. This should be a link.",
"type": "content"
},
"jasb": {
"label": "JASB Bets Slug",
"description": "The slug (part of the URL) for JASB bets for the game.",
"type": "string"
}
}
},
},
Line 100: Line 130:
"finished",
"finished",
"dropped",
"dropped",
"playlist"
"playlist",
"previous_in_series",
"next_in_series",
"previous_played",
"next_played",
"jasb"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>