Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "Template:Seriesbox"

From PCGamingWiki, the wiki about fixing PC games
(Created page with "<includeonly>{| class="vertical-navbox" cellspacing="1" cellpadding="0" style="float: right; clear: right; color: black; background: #f9f9f9; border: 1px solid #aaa; width: 26...")
 
m (escape double quotes (", html entity: ") in the query using a backslash (\))
 
(57 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{| class="vertical-navbox" cellspacing="1" cellpadding="0" style="float: right; clear: right; color: black; background: #f9f9f9; border: 1px solid #aaa; width: 268px; margin:0 0 1.0em 1.0em; padding: 0.2em; border-spacing: 1em 0.1em 0.1em 0.1em; text-align: center; line-height: 1.4em; font-size: 93%;"
+
<includeonly>{{#vardefine:series autohide|10}}{{#vardefine:series total|0}}{{{entries|{{{1}}}}}}<table class="pcgwikitable template-seriesbox {{#if:{{NAMESPACE}}||{{#ifexpr:{{#var:series total}} > {{#var:series autohide}} | mw-collapsible mw-collapsed}}}}" id="seriesbox" data-expandtext="{{#if:{{{title|}}}|{{{title}}}|{{#var:Series}}}}" data-collapsetext="{{#if:{{{title|}}}|{{{title}}}|{{#var:Series}}}}">{{#ifeq:{{NAMESPACE}}|Series|{{#vardefine:Series|{{PAGENAME}}}}}}
|+ style="padding-bottom: 2px; font-size: 125%; line-height: 1.2em; font-weight: bold;" |{{{title|{{PAGENAME}}}}}
+
<tr><th colspan="2" class="template-seriesbox-title">{{#if:{{NAMESPACE}}{{#ifexpr:{{#var:series total}} <= {{#var:series autohide}} | true}}|[[{{#if:{{{link|}}}|{{{link}}}|Series:{{#var:Series}}}}|{{#if:{{{title|}}}|{{{title}}}|{{#var:Series}}}}]]}}</th></tr><!--
|-
+
-->{{#if:{{NAMESPACE}}||{{#ifexpr:{{#var:series total}} > {{#var:series autohide}} | <tr><td colspan="2" class="template-seriesbox-series-link">⤏ [[{{#if:{{{link|}}}|{{{link}}}|Series:{{#var:Series}}}}|Go to series page]]</td></tr>}}}}
{{#if:{{{cover|}}}|
+
{{#var:series rendered|}}
{{!}} colspan="2" style="font-size: 110%; align: center; padding-top:5px; padding-bottom:5px" {{!}} [[File:{{{cover}}}{{!}}250px]]
+
</table>{{#ifeq:{{NAMESPACE}}|Series|{{#vardefine:pageName|{{#arraymap:{{PAGENAME}}|\s|€€€€€|€€€€€|_}}}}{{#vardefine:pageName|{{#arraymap:{{#var:pageName}}|&#34;|€€€€€|€€€€€|\"}}}}{{#vardefine:series query|Series HOLDS LIKE "{{#arraymap:{{#var:pageName}}|,|€€€€€|€€€€€|&#44;}}" OR Series HOLDS LIKE "{{#arraymap:{{#var:pageName}}|,|€€€€€|€€€€€|&#44;\s}}"}}{{#cargo_query:
}}
+
tables=Infobox_game
|-
+
|where={{#var:series query}}
{{Infobox/row|Developer(s)|{{{developer|}}}}}
+
|fields=Cover,_pageName,Developers,Publishers,Released,Available_on
{{Infobox/row|Publisher(s)|{{{publisher|}}}}}
+
|format=template
{{Infobox/row|Engine|{{{engine|}}}}}
+
|named args=yes
{{Infobox/row|Release date(s)|{{{release dates|}}}}}
+
|limit=500
|}</includeonly>
+
|intro={{Series/ti}}
 +
|template=Series/row
 +
|outro=</table></div>
 +
}}[[Category:Series]]}}{{#vardefine:series rendered|}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 00:56, 29 November 2021

Documentation for the above template (sometimes hidden from view).

The {{Seriesbox}} template is used on the appropriate series page below the Series: namespace. Creating a Series:Name page is the same process as creating a game article, simply type in Series:Name of the series in the search field and hit Enter, and select to create a new page. Then follow the instructions that appears with the help of the below documentation.

Syntax

{{Seriesbox|entries=
{{Seriesbox/parent|My Little Parent Series|}}
{{Seriesbox/row|[[The Game]]|2000}}
{{Seriesbox/row|[[Game 2: Electric Boogaloo]]|2004}}
{{Seriesbox/row|[[Game 3: Not Game 2]]|2014}}
{{Seriesbox/child|The Electric Boogaloo Spin-off}}
}}


Example

See Series:Game, Series:Halo, Series:Lego, or Series:Lego Batman.

The table is where the actual information is stored. It consists of two or more parts:

  • The header. Besides holding the table together, the title of the sidebar resides here:
    {{Seriesbox|entries=
    (content goes here)
    }}
    
  • Main game row. A row meant for full game releases in the series:
    {{Seriesbox/row|[[The Game]]|2000}}
    
  • Child series row. Defines a child series of the current series, such as a spin-off series or subseries that connects specific titles:
    {{Seriesbox/child|Name of the child series}}
    
  • Parent series row. Defines a parent series of the current series:
    {{Seriesbox/parent|Name of the parent series}}
    


General rules

  • Games should be ordered on first PC release date (oldest to newest).
  • If an expansion is standalone (i.e. does not require the base game to function), it should be considered a separate game and listed as a full title.
  • Use the full title of the game when adding it to the list.
  • Some franchises are too large to fit onto one table (ex. Star Wars). Narrow in on what sub-series a collection of games follow.
  • A new game in a series should only be added in if it has been confirmed that it will be released on the PC (either Windows, OS X, or Linux).
  • While not common, fan games and major mods for a series can be added in if it is worth mentioning. Ask a mod before editing it in.


Common issues

  • Issue: Cover thumbnail is listed as text in the series table.
  • Solution: Refresh the cache for the series page (More -> Purge cache).
  • Description: This is caused by PCGW not having generated and cached the thumbnail of the cover yet, which might take a couple of minutes. A refresh of the cache might help.
  • Issue: Game includes a cover that isn't listed as a thumbnail nor as text in the series table.
  • Solution: Refresh the cache for the game page (More -> Purge cache), and then the cache for the series page.
  • Description: This is caused by the game page not having updated its cached in a while, so the series list can't retrieve the thumbnail.