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:Categorization of
,
,
, and
branch games is currently broken. The branch names will still appear as intended on the game page, however. [todo tested in ?]
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:
mNo edit summary |
(→Screenshots: From now on, screenshots will not be detected automatically. Instead, use {{{screenshot <1-20>}}}.) |
||
Line 1: | Line 1: | ||
{{note|This template is a work-in-progress, with development currently on hiatus.<br>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|This template is a work-in-progress, with development currently on hiatus.<br>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. | {{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 {{code| {{!}} 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.}} | {{tip|Set {{code| {{!}} 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.}} | ||
Line 100: | Line 99: | ||
{{#if:{{{trailer|}}} | {{#if:{{{trailer|}}} | ||
| <div style="display:flex; justify-content:center; align-items:center; width:100%; height:100%; background:radial-gradient(ellipse at top, rgba(245,5,5,.05), transparent), radial-gradient(ellipse at bottom, rgba(255,230,255,.14), transparent); box-shadow:inset 0 0 2px rgb(0,0,0,.4), inset 0 0 80px rgb(0,0,0,.2); border-radius:6px;">{{#if:{{{trailer preview|}}}|<div style="opacity:.4; pointer-events:none; position:absolute">[[File:{{{filename|{{{name|}}}}}} - Trailer Preview.{{{trailer preview|}}}|736px|link=]]</div>|}}[{{{trailer|}}} <span style="border:1px solid #FFF; border-radius:4px; font-size:1.1em; font-weight:800; color:#FFF; position:relative; z-index:10; padding:8px 16px">{{Software page/strings|WatchTrailer}}</span>]</div> | | <div style="display:flex; justify-content:center; align-items:center; width:100%; height:100%; background:radial-gradient(ellipse at top, rgba(245,5,5,.05), transparent), radial-gradient(ellipse at bottom, rgba(255,230,255,.14), transparent); box-shadow:inset 0 0 2px rgb(0,0,0,.4), inset 0 0 80px rgb(0,0,0,.2); border-radius:6px;">{{#if:{{{trailer preview|}}}|<div style="opacity:.4; pointer-events:none; position:absolute">[[File:{{{filename|{{{name|}}}}}} - Trailer Preview.{{{trailer preview|}}}|736px|link=]]</div>|}}[{{{trailer|}}} <span style="border:1px solid #FFF; border-radius:4px; font-size:1.1em; font-weight:800; color:#FFF; position:relative; z-index:10; padding:8px 16px">{{Software page/strings|WatchTrailer}}</span>]</div> | ||
| | | {{Software page/include|New L Screenshot|{{{screenshot 1|}}}|{{{filename|{{{name|}}}}}}|1|{{{screenshot 1 desc|Screenshot 1}}}|{{{screenshot 1 lang|}}}}} | ||
}} | }} | ||
</div> | </div> | ||
<div style="display:flex; gap:10px; {{#if:{{PROTECTIONEXPIRY:edit|File:{{{filename|{{{name|}}}}}} - Screenshot {{#if:{{{trailer|}}}|6|7}}.png}}|height:100px;|{{#if:{{PROTECTIONEXPIRY:edit|File:{{{filename|{{{name|}}}}}} - Screenshot {{#if:{{{trailer|}}}|6|7}}.jpg}}|height:100px;|}}}}{{#if:{{{experimental|}}}|{{#if:{{{screenshot {{#if:{{{trailer|}}}|6|7}}|}}}|height:100px;|}}|}} border-radius:6px; overflow:hidden; margin-top:10px"> | <div style="display:flex; gap:10px; {{#if:{{PROTECTIONEXPIRY:edit|File:{{{filename|{{{name|}}}}}} - Screenshot {{#if:{{{trailer|}}}|6|7}}.png}}|height:100px;|{{#if:{{PROTECTIONEXPIRY:edit|File:{{{filename|{{{name|}}}}}} - Screenshot {{#if:{{{trailer|}}}|6|7}}.jpg}}|height:100px;|}}}}{{#if:{{{experimental|}}}|{{#if:{{{screenshot {{#if:{{{trailer|}}}|6|7}}|}}}|height:100px;|}}|}} border-radius:6px; overflow:hidden; margin-top:10px"> | ||
<div style="display:flex; gap:10px; overflow-x:auto; overflow-y:hidden"> | <div style="display:flex; gap:10px; overflow-x:auto; overflow-y:hidden"><!-- | ||
-->{{#if:{{{trailer|}}}|{{Software page/include|New Screenshot|{{{screenshot 1|}}}|{{{filename|{{{name|}}}}}}|1|{{{screenshot 1 desc|Screenshot 1}}}|{{{screenshot 1 lang|}}}}}|}}<!-- | -->{{#if:{{{trailer|}}}|{{Software page/include|New Screenshot|{{{screenshot 1|}}}|{{{filename|{{{name|}}}}}}|1|{{{screenshot 1 desc|Screenshot 1}}}|{{{screenshot 1 lang|}}}}}|}}<!-- | ||
-->{{Software page/include|New Screenshot|{{{screenshot 2|}}}|{{{filename|{{{name|}}}}}}|2|{{{screenshot 2 desc|Screenshot 2}}}|{{{screenshot 2 lang|}}}}}<!-- | -->{{Software page/include|New Screenshot|{{{screenshot 2|}}}|{{{filename|{{{name|}}}}}}|2|{{{screenshot 2 desc|Screenshot 2}}}|{{{screenshot 2 lang|}}}}}<!-- | ||
Line 128: | Line 124: | ||
-->{{Software page/include|New Screenshot|{{{screenshot 19|}}}|{{{filename|{{{name|}}}}}}|19|{{{screenshot 19 desc|Screenshot 19}}}|{{{screenshot 19 lang|}}}}}<!-- | -->{{Software page/include|New Screenshot|{{{screenshot 19|}}}|{{{filename|{{{name|}}}}}}|19|{{{screenshot 19 desc|Screenshot 19}}}|{{{screenshot 19 lang|}}}}}<!-- | ||
-->{{Software page/include|New Screenshot|{{{screenshot 20|}}}|{{{filename|{{{name|}}}}}}|20|{{{screenshot 20 desc|Screenshot 20}}}|{{{screenshot 20 lang|}}}}} | -->{{Software page/include|New Screenshot|{{{screenshot 20|}}}|{{{filename|{{{name|}}}}}}|20|{{{screenshot 20 desc|Screenshot 20}}}|{{{screenshot 20 lang|}}}}} | ||
</div> | </div> | ||
</div> | </div> |
Revision as of 22:28, 16 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?
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.