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").
Bug:Headings inside of a {{{desc}}} will sometimes be centered, instead of left-aligned.
Example:
Counter-Strike [todo tested in ?]
Note:Additional potential non-essential features:
(Added Steam Workshop and Mod DB) |
mNo edit summary |
||
Line 158: | Line 158: | ||
| <div style="display:flex; flex-direction:column; background-image:linear-gradient(90deg, {{#if:{{{workshop|}}}|rgb(45 70 150), rgb(50 60 120)|rgb(165 35 35), rgb(140 35 35)}}); box-sizing:border-box; box-shadow:inset 0 0 2px rgb(0 0 0 / 80%); border-radius:6px; overflow:hidden; position:relative"> | | <div style="display:flex; flex-direction:column; background-image:linear-gradient(90deg, {{#if:{{{workshop|}}}|rgb(45 70 150), rgb(50 60 120)|rgb(165 35 35), rgb(140 35 35)}}); box-sizing:border-box; box-shadow:inset 0 0 2px rgb(0 0 0 / 80%); border-radius:6px; overflow:hidden; position:relative"> | ||
<div style="display:flex; align-items:center; padding:10px"><!-- | <div style="display:flex; align-items:center; padding:10px"><!-- | ||
-->[{{#if:{{{workshop|}}}|https://steamcommunity.com/sharedfiles/filedetails/{{{workshop}}}|http://www.moddb.com{{{moddb}}}}} <span style="width:100%; height:100%; position:absolute; top:0; left:0"></span>] | -->[{{#if:{{{workshop|}}}|https://steamcommunity.com/sharedfiles/filedetails/{{{workshop}}}|http://www.moddb.com/{{{moddb}}}}} <span style="width:100%; height:100%; position:absolute; top:0; left:0"></span>] | ||
<div style="opacity:{{#if:{{{workshop|}}}|.2|.1}}; user-select:none; pointer-events:none; position:absolute; left:{{#if:{{{workshop|}}}|0|.3em}}"><!-- | <div style="opacity:{{#if:{{{workshop|}}}|.2|.1}}; user-select:none; pointer-events:none; position:absolute; left:{{#if:{{{workshop|}}}|0|.3em}}"><!-- | ||
-->{{#if:{{{workshop|}}} | -->{{#if:{{{workshop|}}} | ||
Line 171: | Line 171: | ||
| <div style="background-image:linear-gradient(90deg, rgb(0 0 0 / 35%), rgb(0 0 0 / 20%)); position:relative; z-index:10; padding:2px 10px"><!-- | | <div style="background-image:linear-gradient(90deg, rgb(0 0 0 / 35%), rgb(0 0 0 / 20%)); position:relative; z-index:10; padding:2px 10px"><!-- | ||
--><span style="color:#C7C9CE; margin-right:.3em">{{Software page/strings|Also in}}:</span><!-- | --><span style="color:#C7C9CE; margin-right:.3em">{{Software page/strings|Also in}}:</span><!-- | ||
-->{{#if:{{{moddb|}}}|<span style="white-space: nowrap; background-color:rgb(0 0 0 / 25%); border-radius:4px; font-weight:bold; padding:2px 3px"><span style="user-select:none; position:relative; bottom:.1em">[[File:Moddb-32px.png|16px|link=http://www.moddb.com/{{{moddb}}}]]</span> [http://www.moddb.com{{{moddb}}} ModDB]</span></span>|}} | -->{{#if:{{{moddb|}}}|<span style="white-space: nowrap; background-color:rgb(0 0 0 / 25%); border-radius:4px; font-weight:bold; padding:2px 3px"><span style="user-select:none; position:relative; bottom:.1em">[[File:Moddb-32px.png|16px|link=http://www.moddb.com/{{{moddb}}}]]</span> [http://www.moddb.com/{{{moddb}}} ModDB]</span></span>|}} | ||
</div> | </div> | ||
|}} | |}} |
Revision as of 08:13, 28 June 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: Steam Workshop will only be used on the pages of the software that is part of it. Steam Community will be used for everything else.
Tip:Set | workshop = false for software on Steam that does not have a Workshop page. This currently hides the Workshop link, and will eventually display a Community link instead.

Todo: Add an option to hide "available on Steam" for games that doesn't have it (experimental mode).
Example:
Counter-Strike Online.
Example:


Example:


- Support indefinite number of screenshots, instead of capping at 12.
- Option to scale background to page width, rather than manually setting pixel size (different users have different resolution viewports).
- Fields for links to Wikipedia and PCGamingWiki pages? [confirm] Was it done?
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.