Template:Software page: Difference between revisions
Jump to navigation
Jump to search
Note:This template is a work-in-progress, with development currently on hiatus.
It works well enough for widespread usage, however, and should be used on game pages when practical (given game or mod should have screenshots and a 460x215 "cover").
Note:Additional potential non-essential features:
mNo edit summary |
m (Automatic background switcher for metacritic score has been added. The {{{metacritic}}} parameter is also no longer experimental as it has all the currently intended features.) |
||
Line 9: | Line 9: | ||
{{Todo|If {{param|type}} was marked as {{code|package}}, SteamDB and ProtonDB links should use "sub/(appid)" (for Packages) or "bundle/(appid)" (for Bundles) instead of "app".}} | {{Todo|If {{param|type}} was marked as {{code|package}}, SteamDB and ProtonDB links should use "sub/(appid)" (for Packages) or "bundle/(appid)" (for Bundles) instead of "app".}} | ||
{{Note|Additional potential non-essential features: | {{Note|Additional potential non-essential features: | ||
Line 227: | Line 225: | ||
<!-- Metacritic infopanel (experimental) --> | <!-- Metacritic infopanel (experimental) --> | ||
{{#if:{{{metacritic|}}}|<div style="align-items:center; background-color:rgba(0,0,0,.1); box-shadow:inset 0 0 2px rgba(0, 0, 0, 0.1); box-sizing:border-box; border-radius:6px; display:flex; gap:65px; padding:10px; width:100%;"> | |||
<div style="color:white; font-size:20px; font-family:Arial, Helvetica, sans-serif; font-weight:bold; border-radius:3px; padding:16px; width:30px; text-align:center; background: {{#switch:{{{metacritic}}} | <div style="color:white; font-size:20px; font-family:Arial, Helvetica, sans-serif; font-weight:bold; border-radius:3px; padding:16px; width:30px; text-align:center; background: {{#switch:{{{metacritic}}} | ||
| n/a | N/A = #303030; | | n/a | N/A = #303030; | ||
Line 233: | Line 231: | ||
}};">{{{metacritic}}}</div> | }};">{{{metacritic}}}</div> | ||
<div>[[File:Logo-metacritic-text.png|175px]]{{#if:{{{metacritic link|}}}|<div style="text-align: right;">[https://www.metacritic.com/game/{{{metacritic link}}} Read critic reviews]</div>|}} | <div>[[File:Logo-metacritic-text.png|175px]]{{#if:{{{metacritic link|}}}|<div style="text-align: right;">[https://www.metacritic.com/game/{{{metacritic link}}} Read critic reviews]</div>|}} | ||
</div></div> | </div></div>|}} | ||
</div> | </div> | ||
<div>{{{desc|}}}</div> | <div>{{{desc|}}}</div> |
Revision as of 04:34, 27 July 2023

It works well enough for widespread usage, however, and should be used on game pages when practical (given game or mod should have screenshots and a 460x215 "cover").
Todo: Restore workshop links from older versions, using {{{has workshop}}} to enable.
If {{{appid}}} is present, but {{{has workshop}}} is not, link to Steam Community page instead.
If {{{appid}}} is present, but {{{has workshop}}} is not, link to Steam Community page instead.
Todo: Add an option to hide "available on Steam" and "SteamDB & ProtonDB" links for games that doesn't have it, or for games sold in different stores/DRMs (experimental mode).
Example:
Counter-Strike Online,
Portal Companion Collection.
Example:


Todo: If {{{type}}} was marked as package, SteamDB and ProtonDB links should use "sub/(appid)" (for Packages) or "bundle/(appid)" (for Bundles) instead of "app".

- Option to scale background to page width, rather than manually setting pixel size (different users have different resolution viewports).
- Parameters for specifying system requirements for each major operating system (e.g.: {{{winram}}}, {{{macram}}} and {{{linuxram}}} for specifying ram requirements for Windows, macOS and Linux)
The above documentation is transcluded from Template:Software page/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.