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:
mNo edit summary |
mNo edit summary |
||
Line 154: | Line 154: | ||
<div style="max-width:1080px; width:100%; margin-top:20px; z-index:1"> | <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"> | <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><!-- | | <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}}}}<!-- | -->{{Software page/strings|Mode{{#if:{{{mode 2|}}}|s|}}}}:</span> {{Software page/strings|ModeSwitcher|{{{mode}}}|{{#switch:{{{type|}}}|Mod = Mods|Games}}}}<!-- | ||
Line 162: | Line 162: | ||
-->{{#if:{{{mode 4|}}}|, {{Software page/strings|ModeSwitcher|{{{mode 4}}}|{{#switch:{{{type|}}}|Mod = Mods|Games}}}}|}} | -->{{#if:{{{mode 4|}}}|, {{Software page/strings|ModeSwitcher|{{{mode 4}}}|{{#switch:{{{type|}}}|Mod = Mods|Games}}}}|}} | ||
</div> | </div> | ||
|}} | |}}<!-- | ||
--> {{#if:{{{genre|}}} | |||
| <div style="overflow:hidden; -webkit-line-clamp: 2; text-overflow:ellipsis"><span style=opacity:.6><!-- | | <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}}}}}<!-- | -->{{Software page/strings|Genre{{#if:{{{genre 2|}}}|s|}}}}:</span> {{Software page/strings|GenreSwitcher|{{{genre}}}}}<!-- | ||
Line 172: | Line 172: | ||
-->{{#if:{{{genre 6|}}}|, {{Software page/strings|GenreSwitcher|{{{genre 6}}}}}|}} | -->{{#if:{{{genre 6|}}}|, {{Software page/strings|GenreSwitcher|{{{genre 6}}}}}|}} | ||
</div> | </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> <!-- | | <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}}}}<!-- | -->{{Software page/strings|PlatformSwitcher|{{{platform|}}}|{{#switch:{{{type|}}}|Mod = mods|Tool = tools|games}}}}<!-- | ||
Line 182: | Line 182: | ||
-->{{#if:{{{platform 6|}}}|, {{Software page/strings|PlatformSwitcher|{{{platform 6|}}}|{{#switch:{{{type|}}}|Mod = mods|Tool = tools|games}}}}|}} | -->{{#if:{{{platform 6|}}}|, {{Software page/strings|PlatformSwitcher|{{{platform 6|}}}|{{#switch:{{{type|}}}|Mod = mods|Tool = tools|games}}}}|}} | ||
</div> | </div> | ||
|}} | |}}<!-- | ||
--> {{#if:{{{website|}}}{{{blog|}}}{{{appid|}}}{{{wiki|}}}{{{wikipedia|}}}{{{pcgw|}}} | |||
| <div style="display:flex; flex-direction:column; gap:.5em"><!-- | | <div style="display:flex; flex-direction:column; gap:.5em"><!-- | ||
-->{{#if:{{{website|}}}| {{Software page/components|Link|{{{website}}}|name={{Software page/strings|Website}}}} |}}<!-- | -->{{#if:{{{website|}}}| {{Software page/components|Link|{{{website}}}|name={{Software page/strings|Website}}}} |}}<!-- |
Revision as of 06:12, 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.