Template:Software page/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{ModernNote|There was some activity in the direction of translating this template. Use the strings subpage for this.}} {{ModernTodo|The ability to link to the tr...")
 
mNo edit summary
Line 23: Line 23:
* {{Param|desc}}
* {{Param|desc}}


== Test ==
== Preview ==
{{Software page
{{Software page
| name = Half-Life: Alyx
| name = Half-Life: Alyx
Line 40: Line 40:
| desc = {{lorem ipsum}}
| desc = {{lorem ipsum}}
}}
}}
<includeonly><onlyinclude>
<div class="plainlinks" style="display:flex; justify-content:center; gap:10px; background:#202020; border:1px solid #323232; text-transform:uppercase; padding:5px 0"><!--
-->[[{{{name|{{FULLPAGENAME}}}}}|<font style="color:#FFF">{{Software page/strings|Summary}}</font>]]<!--
-->{{#if:{{{docs|}}}||<font style="user-select:none; pointer-events:none; color:rgba(255,255,255,.1)">&#124;</font><!--
-->[[{{{tools|{{{name|{{FULLPAGENAME}}}}}/Docs}}}|<font style="color:rgba(255,255,255,.4)">{{Software page/strings|ForDevs}}</font>]]}}<!--
-->{{#if:{{{workshop|}}}||<font style="user-select:none; pointer-events:none; color:rgba(255,255,255,.1)">&#124;</font><!--
-->[https://steamcommunity.com/app/{{{appid|}}}/workshop <font style="color:rgba(255,255,255,.4)">{{Software page/strings|Workshop}}</font>]}}<!--
-->{{#if:{{{wiki|}}}|<font style="user-select:none; pointer-events:none; color:rgba(255,255,255,.1)">&#124;</font><!--
-->[{{{wiki|}}} <font style="color:rgba(255,255,255,.4)">{{Software page/strings|Wiki}}</font>]|}}
</div>
<div class="plainlinks" style="display:flex; flex-direction:column; align-items:center; width:100%; margin-bottom:40px">
<!-- Background -->
<div style="display:flex; justify-content:center; align-items:start; width:100%; height:100%; max-height:640px; overflow:hidden; position:absolute; z-index:-1">
<div style="opacity:.1; user-select:none; pointer-events:none; position:absolute">{{{background|{{#if:{{PROTECTIONEXPIRY:edit|File:{{{shortname|{{{name|}}}}}} - Background.png}}|[[File:{{{shortname|{{{name|}}}}}} - Background.png]]|{{#if:{{PROTECTIONEXPIRY:edit|File:{{{shortname|{{{name|}}}}}} - Background.jpg}}|[[File:{{{shortname|{{{name|}}}}}} - Background.jpg]]|}}}}}}}</div>
<div style="width:100%; height:200px; background-image:linear-gradient(0deg, #262626 2%, transparent); position:relative; margin-top:auto"></div>
</div>
<!-- Screenshots & Infobox -->
<div style="display:flex; max-width:1000px; margin-top:40px; z-index:1; gap:20px; {{Dir|rtl=flex-direction:row-reverse;}}">
<div style="display:flex; flex-direction:column; width:656px; user-select:none; border-radius:6px; overflow:hidden">
<div style="width:100%; height:369px; background:#202020; border-radius:6px; overflow:hidden">{{#if:{{PROTECTIONEXPIRY:edit|File:{{{shortname|{{{name|}}}}}} - Screenshot 1.png}}|[[File:{{{shortname|{{{name|}}}}}} - Screenshot 1.png|656px]]|{{#if:{{PROTECTIONEXPIRY:edit|File:{{{shortname|{{{name|}}}}}} - Screenshot 1.jpg}}|[[File:{{{shortname|{{{name|}}}}}} - Screenshot 1.jpg|656px]]|}}}}</div>
<div style="display:flex; gap:10px; width:100%; {{#if:{{PROTECTIONEXPIRY:edit|File:{{{shortname|{{{name|}}}}}} - Screenshot 6.png}}|height:100px;|{{#if:{{PROTECTIONEXPIRY:edit|File:{{{shortname|{{{name|}}}}}} - Screenshot 6.jpg}}|height:100px;|}}}} border-radius:6px; overflow-x:auto; margin-top:10px"><!--
-->{{Software page/include|Screenshot|2|{{{shortname|{{{name|}}}}}}}}<!--
-->{{Software page/include|Screenshot|3|{{{shortname|{{{name|}}}}}}}}<!--
-->{{Software page/include|Screenshot|4|{{{shortname|{{{name|}}}}}}}}<!--
-->{{Software page/include|Screenshot|5|{{{shortname|{{{name|}}}}}}}}<!--
-->{{Software page/include|Screenshot|6|{{{shortname|{{{name|}}}}}}}}<!--
-->{{Software page/include|Screenshot|7|{{{shortname|{{{name|}}}}}}}}<!--
-->{{Software page/include|Screenshot|8|{{{shortname|{{{name|}}}}}}}}<!--
-->{{Software page/include|Screenshot|9|{{{shortname|{{{name|}}}}}}}}<!--
-->{{Software page/include|Screenshot|10|{{{shortname|{{{name|}}}}}}}}<!--
-->{{Software page/include|Screenshot|11|{{{shortname|{{{name|}}}}}}}}<!--
-->{{Software page/include|Screenshot|12|{{{shortname|{{{name|}}}}}}}}
</div>
</div>
<div style="display:flex; flex-direction:column; gap:10px; width:324px; background:rgba(0,0,0,.1); border-radius:6px; padding-bottom:10px">
<div style="width:100%; height:151px; background:#202020; border-radius:6px; overflow:hidden; user-select:none">{{#if:{{PROTECTIONEXPIRY:edit|File:GameCover-{{{shortname|{{{name|}}}}}}.png}}|[[File:GameCover-{{{shortname|{{{name|}}}}}}.png|324px|link=]]|{{#if:{{PROTECTIONEXPIRY:edit|File:GameCover-{{{shortname|{{{name|}}}}}}.jpg}}|[[File:GameCover-{{{shortname|{{{name|}}}}}}.jpg|324px|link=]]|}}}}</div>
<div style="display:-webkit-box; -webkit-line-clamp: 6; -webkit-box-orient:vertical; overflow: hidden; padding:0 10px">{{{shortdesc|}}}</div><!--
-->{{#if:{{{release|}}}|<div style="padding:0 10px"><span style=opacity:.6>{{Software page/strings|ReleaseDate}}:</span> {{Software page/strings|ReleaseDateSwitcher|{{{release|}}}}}</div>|}}<!--
-->{{#if:{{{mode|}}}|<div style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis; padding:0 10px"><span style=opacity:.6>{{Software page/strings|Mode{{#if:{{{mode2|}}}|s|}}}}:</span> {{Software page/strings|ModeSwitcher|{{{mode|}}}}}{{#if:{{{mode2|}}}|, {{Software page/strings|ModeSwitcher|{{{mode2|}}}}}|}}</div>|}}<!--
-->{{#if:{{{genre|}}}|<div style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis; padding:0 10px"><span style=opacity:.6>{{Software page/strings|Genre{{#if:{{{genre2|}}}|s|}}}}:</span> {{Software page/strings|GenreSwitcher|{{{genre|}}}}}{{#if:{{{genre2|}}}|, {{Software page/strings|GenreSwitcher|{{{genre2|}}}}}|}}</div>|}}<!--
-->{{#if:{{{engine|}}}|<div style="padding:0 10px"><span style=opacity:.6>{{Software page/strings|Engine}}:</span> {{{{#switch:{{{engine|}}}|1=source|2=source2|gldsrc}}|4}}</div>|}}<!--
-->{{#if:{{{developer|}}}|<div style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis; padding:0 10px"><span style=opacity:.6>{{Software page/strings|Developer{{#if:{{{dev2|}}}{{{dev3|}}}{{{dev4|}}}|s|}}}}:</span> {{Software page/strings|CompanySwitcher|{{{developer|}}}}}{{#if:{{{dev2|}}}|, {{Software page/strings|CompanySwitcher|{{{dev2|}}}}}|}}{{#if:{{{dev3|}}}|, {{Software page/strings|CompanySwitcher|{{{dev3|}}}}}|}}{{#if:{{{dev4|}}}|, {{Software page/strings|CompanySwitcher|{{{dev4|}}}}}|}}</div>|}}<!--
-->{{#if:{{{publisher|}}}|<div style="overflow:hidden; white-space:nowrap; text-overflow:ellipsis; padding:0 10px"><span style=opacity:.6>{{Software page/strings|Publisher{{#if:{{{pub2|}}}{{{pub3|}}}{{{pub4|}}}|s|}}}}:</span> {{Software page/strings|CompanySwitcher|{{{publisher|}}}}}{{#if:{{{pub2|}}}|, {{Software page/strings|CompanySwitcher|{{{pub2|}}}}}|}}{{#if:{{{pub3|}}}|, {{Software page/strings|CompanySwitcher|{{{pub3|}}}}}|}}{{#if:{{{pub4|}}}|, {{Software page/strings|CompanySwitcher|{{{pub4|}}}}}|}}</div>|}}
</div>
</div>
<!-- Description -->
<div style="max-width:1000px; margin-top:30px; z-index:1">{{{desc|}}}</div>
</div></onlyinclude></includeonly>

Revision as of 05:57, 25 February 2023

Template:ModernNote Template:ModernTodo

Parameters

  • {{{name}}} - Full name.
  • {{{shortname}}} - A short name in case files cannot use the full name due to system restrictions.
  • {{{appid}}} - Steam AppID
  • {{{tools}}} - A link to the tools inside this wiki. The parameter is created for Half-Life:Alyx Workshop Tools and others.
  • {{{workshop}}} - Disables the block with the link of the same name. The value can be any, but it is preferable to specify "false".
  • {{{wiki}}} - Link to the wiki of the current software.
  • {{{background}}} - Adds a background. By default, the template searches for [[File:{{{shortname|{{{name|}}} - Background.png]] (jpg is also supported, but not prioritized).
  • {{{release}}} - Release date. The value "Soon" indicates "Coming soon"
  • {{{mode}}}
  • {{{mode2}}}
  • {{{genre}}}
  • {{{genre2}}}
  • {{{engine}}}
  • {{{developer}}}
  • {{{dev2}}}, {{{dev3}}}, {{{dev4}}}
  • {{{publisher}}}
  • {{{pub2}}}, {{{pub3}}}, {{{pub4}}}
  • {{{shortdesc}}}
  • {{{desc}}}

Preview

Used the archived template {{Software page}}.
Please remove it from the page if you know how.