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:
Tag: Undo |
(Added a link to PCGamingWiki and changed the position of some elements. Also, all experimental features have been temporarily removed) |
||
Line 1: | Line 1: | ||
{{ | {{ModernWarning|Don't use or purging any page with this template while this notification is here. At the moment, changes are being made that break a lot. Once the edit is over, an editor can put a [[w:WP:COMMENT|hidden comment]] to hide this message.}} | ||
{{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. | |||
{{ | {{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. | |||
{{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.}} | |||
}} | }} | ||
{{Todo|Add an option to hide "available on Steam" for games that doesn't have it (experimental mode).<br> Example: {{cso|4}}.}} | {{Todo|Add an option to hide "available on Steam" for games that doesn't have it (experimental mode).<br> Example: {{cso|4}}.}} | ||
{{ | {{Bug|Headings inside of a {{param|desc}} will sometimes be centered, instead of left-aligned.<br>Example: {{cs|4}}}} | ||
{{ | |||
{{Note|Additional potential non-essential features: | |||
* Support indefinite number of screenshots, instead of capping at 12. | * 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). | * 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? | * Fields for links to Wikipedia and PCGamingWiki pages? | ||
}} | }} | ||
<!-- | <!-- | ||
This is here so that we don't have to save and check the sandbox for every edit. We can just add our experimental parameters to the sandbox beforehand and then just keep previewing edits to view changes. Please remember to comment this out after you finalize your changes! | This is here so that we don't have to save and check the sandbox for every edit. We can just add our experimental parameters to the sandbox beforehand and then just keep previewing edits to view changes. Please remember to comment this out after you finalize your changes! | ||
--> | --> | ||
<!-- | <!-- | ||
{{Template:Software page/sandbox}} | |||
--> | --> | ||
{{Doc}} | {{Doc}} | ||
<includeonly> | <includeonly> | ||
<onlyinclude>{{#if:{{{shortname|}}}| {{ModernWarning|Parameter {{Param|shortname}} was used. Must be {{Param|filename}}.}} |}}</onlyinclude> | |||
<onlyinclude>{{DISPLAYTITLE:''{{{name|<!---->{{PAGENAME}}<!---->}}}''}}<!-- | |||
--><div class="plainlinks" style="display:flex; justify-content:center; gap:10px; background:#202020; border:1px solid #323232; text-transform:uppercase; padding:5px 0"><!-- | |||
--><span style="color:#FFF"> {{Software page/strings|Summary}} </span><!-- | |||
-->{{#if:{{{ | -->{{#if:{{{docs|}}}|<span style="user-select:none; pointer-events:none; color:rgba(255,255,255,.1)">|</span><!-- | ||
-->[ | -->[[{{#switch:{{{docs|}}}|standard={{{name|{{FULLPAGENAME}}}}}/Docs|{{{docs|}}}}}|<span style="color:rgba(255,255,255,.4)"> {{Software page/strings|ForDevs}} </span>]]|}}<!-- | ||
-->{{Software page/components| Management | {{{name|}}} | {{{filename|}}} }} | -->{{Software page/components| Management | {{{name|}}} | {{{filename|}}} }} | ||
Line 78: | Line 61: | ||
<!-- | <!-- | ||
- Screenshots, Movies and | - Screenshots, Movies and Infopanels - | ||
--> | --> | ||
Line 89: | Line 72: | ||
}} | }} | ||
</div> | </div> | ||
<div style="display:flex; gap:10px; {{#if:{{ | <div style="display:flex; gap:10px; {{#if:{{{screenshot 6|}}}{{{screenshot 7|}}}|height:100px;|}} border-radius:6px; overflow:hidden; {{#if:{{{trailer|}}}{{{screenshot 2|}}}|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/components|Screenshot|{{{screenshot 1|}}}|{{{filename|{{{name|}}}}}}|1|{{{screenshot 1 desc|Screenshot 1}}}|{{{screenshot 1 lang|}}}}}|}}<!-- | -->{{#if:{{{trailer|}}}|{{Software page/components|Screenshot|{{{screenshot 1|}}}|{{{filename|{{{name|}}}}}}|1|{{{screenshot 1 desc|Screenshot 1}}}|{{{screenshot 1 lang|}}}}}|}}<!-- | ||
Line 141: | Line 124: | ||
-->{{#if:{{{release|}}}||{{#if:{{{release planned|}}}|<div style="padding:0 10px"><span style="opacity:.6">{{Software page/strings|ReleaseDatePlanned}}:</span> [[:Category:Upcoming Releases|<span style="color:#b9b7b5">{{#time:{{Autolang|j xg Y|zh=Y 年 n 月 j 日}}|{{{2|}}}|{{uselang}}}}</span>]]</div>|}}}}<!-- | -->{{#if:{{{release|}}}||{{#if:{{{release planned|}}}|<div style="padding:0 10px"><span style="opacity:.6">{{Software page/strings|ReleaseDatePlanned}}:</span> [[:Category:Upcoming Releases|<span style="color:#b9b7b5">{{#time:{{Autolang|j xg Y|zh=Y 年 n 月 j 日}}|{{{2|}}}|{{uselang}}}}</span>]]</div>|}}}}<!-- | ||
-->{{#if:{{{engine|}}}|<div style="padding:0 10px"><span style="opacity:.6">{{Software page/strings|Engine}}:</span> <!-- | -->{{#if:{{{engine|}}}|<div style="padding:0 10px"><span style="opacity:.6">{{Software page/strings|Engine}}:</span> <!-- | ||
Line 185: | Line 148: | ||
<!-- | <!-- | ||
- Description - | - The Second Infopanel & Description - | ||
--> | --> | ||
{{# | {{#if:{{{mode|}}}{{{genre|}}}{{{platform|}}}| | ||
<div style="max-width:1080px; width:100%; margin-top:20px; z-index:1"> | |||
<div style="display:flex; flex-direction:column; gap:10px; min-width:324px; max-width:324px; float:right; margin: 0 0 20px 20px">< | <div style="display:flex; flex-direction:column; gap:10px; min-width:324px; max-width:324px; float:right; margin: 0 0 20px 20px"> | ||
<div style="display:flex; flex-direction:column; gap:10px; width:100%; background-color:rgba(0,0,0,.1); box-sizing:border-box; box-shadow:inset 0 0 2px rgb(0,0,0,.4); border-radius:6px; padding:{{#if:{{{mode|}}}{{{genre|}}}{{{platform|}}}|8px|10px}} 10px 10px 10px"> | |||
{{#if:{{{mode|}}} | |||
| <div style="overflow:hidden; -webkit-line-clamp: 2; text-overflow:ellipsis"><span style=opacity:.6><!-- | |||
-->{{Software page/strings|Mode{{#if:{{{mode 2|}}}|s|}}}}:</span> {{Software page/strings|ModeSwitcher|{{{mode}}}|{{#switch:{{{type|}}}|Mod = Mods|Games}}}}<!-- | |||
-->{{#if:{{{mode 2|}}}|, {{Software page/strings|ModeSwitcher|{{{mode 2}}}|{{#switch:{{{type|}}}|Mod = Mods|Games}}}}|}}<!-- | |||
-->{{#if:{{{mode 3|}}}|, {{Software page/strings|ModeSwitcher|{{{mode 3}}}|{{#switch:{{{type|}}}|Mod = Mods|Games}}}}|}}<!-- | |||
-->{{#if:{{{mode 4|}}}|, {{Software page/strings|ModeSwitcher|{{{mode 4}}}|{{#switch:{{{type|}}}|Mod = Mods|Games}}}}|}} | |||
</div> | |||
|}} | |||
{{#if:{{{genre|}}} | |||
| <div style="overflow:hidden; -webkit-line-clamp: 2; text-overflow:ellipsis"><span style=opacity:.6><!-- | |||
-->{{Software page/strings|Genre{{#if:{{{genre 2|}}}|s|}}}}:</span> {{Software page/strings|GenreSwitcher|{{{genre}}}}}<!-- | |||
-->{{#if:{{{genre 2|}}}|, {{Software page/strings|GenreSwitcher|{{{genre 2}}}}}|}}<!-- | |||
-->{{#if:{{{genre 3|}}}|, {{Software page/strings|GenreSwitcher|{{{genre 3}}}}}|}}<!-- | |||
-->{{#if:{{{genre 4|}}}|, {{Software page/strings|GenreSwitcher|{{{genre 4}}}}}|}}<!-- | |||
-->{{#if:{{{genre 5|}}}|, {{Software page/strings|GenreSwitcher|{{{genre 5}}}}}|}}<!-- | |||
-->{{#if:{{{genre 6|}}}|, {{Software page/strings|GenreSwitcher|{{{genre 6}}}}}|}} | |||
</div> | |||
|}} | |||
{{#if:{{{platform|}}} | |||
| <div style="overflow:hidden; -webkit-line-clamp: 2; text-overflow:ellipsis"><span style="opacity:.6">{{Software page/strings|Platform{{#if:{{{platform 2|}}}{{{platform 3|}}}{{{platform 4|}}}|s|}}}}:</span> <!-- | |||
-->{{Software page/strings|PlatformSwitcher|{{{platform|}}}|{{#switch:{{{type|}}}|Mod = mods|Tool = tools|games}}}}<!-- | |||
-->{{#if:{{{platform 2|}}}|, {{Software page/strings|PlatformSwitcher|{{{platform 2|}}}|{{#switch:{{{type|}}}|Mod = mods|Tool = tools|games}}}}|}}<!-- | |||
-->{{#if:{{{platform 3|}}}|, {{Software page/strings|PlatformSwitcher|{{{platform 3|}}}|{{#switch:{{{type|}}}|Mod = mods|Tool = tools|games}}}}|}}<!-- | |||
-->{{#if:{{{platform 4|}}}|, {{Software page/strings|PlatformSwitcher|{{{platform 4|}}}|{{#switch:{{{type|}}}|Mod = mods|Tool = tools|games}}}}|}}<!-- | |||
-->{{#if:{{{platform 5|}}}|, {{Software page/strings|PlatformSwitcher|{{{platform 5|}}}|{{#switch:{{{type|}}}|Mod = mods|Tool = tools|games}}}}|}}<!-- | |||
-->{{#if:{{{platform 6|}}}|, {{Software page/strings|PlatformSwitcher|{{{platform 6|}}}|{{#switch:{{{type|}}}|Mod = mods|Tool = tools|games}}}}|}} | |||
</div> | |||
|}} | |||
{{#if:{{{website|}}}{{{blog|}}}{{{appid|}}}{{{wiki|}}}{{{wikipedia|}}}{{{pcgw|}}} | |||
| <div style="display:flex; flex-direction:column; gap:.5em"><!-- | |||
-->{{#if:{{{website|}}}| {{Software page/components|Link|{{{website}}}|name={{Software page/strings|Website}}}} |}}<!-- | |||
-->{{#if:{{{blog|}}}| {{Software page/components|Link|{{{blog}}}|name={{Software page/strings|Blog}}}} |}}<!-- | |||
-->{{#if:{{{wiki|}}}| {{Software page/components|Link|{{{wiki}}}|name={{Software page/strings|Wiki}}}} |}}<!-- | |||
-->{{#if:{{{appid|}}}| {{Software page/components|Link|https://steamdb.info/app/{{{appid}}}|name=SteamDB}} |}}<!-- | |||
-->{{#if:{{{wikipedia|}}}| {{Software page/components|Link|https://en.wikipedia.org/wiki|{{#switch:{{{wikipedia|}}}|true={{{name|{{FULLPAGENAME}}}}}|{{{wikipedia|}}}}}|name=Wikipedia|icon=Wikipedia icon small.png|icon size=16px|icon shift=1px}} |}}<!-- | |||
-->{{#if:{{{pcgw|}}}| {{Software page/components|Link|https://www.pcgamingwiki.com/wiki|{{#switch:{{{pcgw|}}}|true={{{name|{{FULLPAGENAME}}}}}|{{{pcgw|}}}}}|name=PCGamingWiki|icon=pcgw icon.png|icon size=16px}} |}} | |||
</div> | |||
|}} | |||
</div> | </div> | ||
</div> | </div> | ||
<div>{{{desc|}}}</div></div> | <div>{{{desc|}}}</div> | ||
| | </div> | ||
|}} | |||
</div> | |||
<!-- | <!-- | ||
Revision as of 08:13, 27 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.