Template:Software page: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Added review functionality. If {{{compact reviews}}} is specified, it will combine and shorten the reviews onto one line. This is just what I think it should look like, if anyone would like to change this or remove it entirely, be my guest.) |
||
Line 2: | Line 2: | ||
{{ModernTodo|Automatic image search will be replaced by manually entering the image format in {{Param|screenshot <2-20>}}. This will allow you to specify any images from this wiki, as well as use a semi-automatic image search.}} | {{ModernTodo|Automatic image search will be replaced by manually entering the image format in {{Param|screenshot <2-20>}}. This will allow you to specify any images from this wiki, as well as use a semi-automatic image search.}} | ||
{{ModernTodo|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.}} | {{ModernTodo|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.}} | ||
<!-- | <!-- | ||
{{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.}}--> | {{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.}}--> | ||
<!-- | <!-- | ||
This is here so that we | 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 | ||
--> | |||
<!-- | |||
<noinclude>{{Template:Software page/sandbox}}</noinclude> | <noinclude>{{Template:Software page/sandbox}}</noinclude> | ||
--> | --> | ||
<includeonly><onlyinclude>{{#if:{{{shortname|}}}|{{ModernWarning|Parameter {{Param|shortname}} was used. Must be {{Param|filename}} }} |}}</onlyinclude></includeonly> | <includeonly><onlyinclude>{{#if:{{{shortname|}}}|{{ModernWarning|Parameter {{Param|shortname}} was used. Must be {{Param|filename}} }} |}}</onlyinclude></includeonly> | ||
Line 220: | Line 224: | ||
<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"><!-- | ||
-->{{#if:{{{demo|}}}|<div style="width:100%; background-image:linear-gradient(60deg, rgb(62,86,23,.7) 5%,rgba(88,138,27,.6) 95%); box-sizing:border-box; box-shadow:inset 0 0 2px rgb(0,0,0,.4); border-radius:6px; overflow:hidden; padding:5px 10px">{{Software page/strings|Released on Steam as a Demo|{{#switch:{{{type|}}}|Mod=mod|Tool=tool|game}}|{{{demo}}}}}</div>|}}<!-- | -->{{#if:{{{demo|}}}|<div style="width:100%; background-image:linear-gradient(60deg, rgb(62,86,23,.7) 5%,rgba(88,138,27,.6) 95%); box-sizing:border-box; box-shadow:inset 0 0 2px rgb(0,0,0,.4); border-radius:6px; overflow:hidden; padding:5px 10px">{{Software page/strings|Released on Steam as a Demo|{{#switch:{{{type|}}}|Mod=mod|Tool=tool|game}}|{{{demo}}}}}</div>|}}<!-- | ||
++Alternate method for Metacritic score, likely not going to be used but code is still here in case it finds more favor++ | |||
{{#if:{{{metacritic|}}}|<div style="width:100%; background-image:linear-gradient(60deg, rgb({{metacritic score color|{{{metacritic}}}|rgb}},.3) 5%,rgba({{metacritic score color|{{{metacritic}}}|rgb}},.6) 95%); box-sizing:border-box; box-shadow:inset 0 0 2px rgb(0,0,0,.4); border-radius:6px; overflow:hidden; padding:5px 10px">[[File:Metacritic-32px.png|32px]] <span style=font-size:15px>This game received a score of <big>{{{metacritic}}}</big> on [https://metacritic.com/ Metacritic]. </span></div>|}} | {{#if:{{{metacritic|}}}|<div style="width:100%; background-image:linear-gradient(60deg, rgb({{metacritic score color|{{{metacritic}}}|rgb}},.3) 5%,rgba({{metacritic score color|{{{metacritic}}}|rgb}},.6) 95%); box-sizing:border-box; box-shadow:inset 0 0 2px rgb(0,0,0,.4); border-radius:6px; overflow:hidden; padding:5px 10px">[[File:Metacritic-32px.png|32px]] <span style=font-size:15px>This game received a score of <big>{{{metacritic}}}</big> on [https://metacritic.com/ Metacritic]. </span></div>|}} | ||
Line 236: | Line 242: | ||
</div> | </div> | ||
</div> | </div> | ||
{{#if:{{{moddb|}}}|<div style="background-color:rgba(0,0,0,.2); padding:5px 10px">{{Software page/strings|Also in}}: <span style="background:rgb(0,0,0,.16); border-radius:4px; white-space: nowrap; font-weight:bold; padding:2px">{{#if:{{{moddb|}}}|<span style="user-select:none; position:relative; bottom:.1em">[[File:Moddb-32px.png|16px|link=]]</span> [http://www.moddb.com/{{{moddb}}} ModDB]</span>|}}</div>|}} | {{#if:{{{moddb|}}}|<div style="background-color:rgba(0,0,0,.2); padding:5px 10px">{{Software page/strings|Also in}}: <span style="background:rgb(0,0,0,.16); border-radius:4px; white-space: nowrap; font-weight:bold; padding:2px">{{#if:{{{moddb|}}}|<span style="user-select:none; position:relative; bottom:.1em">[[File:Moddb-32px.png|16px|link=]]</span> [http://www.moddb.com/{{{moddb}}} ModDB]</span>|}}</div>|}}<!-- | ||
|}}<!-- | -->{{#if:{{{compact reviews}}} | ||
|<div style="background-color:rgba(0,0,0,.2); padding:5px 10px">Reviews:<!-- | |||
-->{{#if:{{{metacritic score|}}} | |||
|<span style="background:black; border-radius:4px; cursor:pointer; padding:2px 4px" title="This game received a score of {{{metacritic score}}} on Metacritic"><span style="pointer-events:none; user-select:none; position:relative; top:-1px">[[File:Metacritic.png|14px|link=]]</span><span style="color:#66CC33; margin-left:4px">{{{metacritic score}}}</span></span> | |||
|}}<!-- | |||
-->{{#if:{{{steam score|}}} | |||
|<span style="background:black; border-radius:4px; cursor:help; padding:2px 4px" title="{{{steam score}}}% of players recommend this game on Steam"><span style="pointer-events:none; user-select:none; position:relative; top:-1px">[[File:Steam logo.png|14px|link=]]</span><span style="color:{{metacritic score color|{{{steam score}}}}}; margin-left:4px">{{{steam score}}}%</span></span> | |||
|}} | |||
</div> | |||
|{{#if:{{{metacritic score|}}}|<div style="background-color:rgba({{metacritic score color|{{{metacritic score}}}|rgb}},.2); padding:5px 10px">This game has received a score of <span style="background:black; border-radius:4px; padding:2px 4px"><span style="pointer-events:none; user-select:none; position:relative; top:-1px">[[File:Metacritic.png|14px|link=]]</span><span style="color:{{metacritic score color|{{{metacritic score}}}}}; margin-left:4px">{{{metacritic score}}}</span></span> on Metacritic. [https://metacritic.com/{{{metacritc}}} Learn more]</div>|}}<!-- | |||
-->{{#if:{{{steam score|}}}|<div style="background-color:rgba(27,40,56,.2); padding:5px 10px"><span style="background:black; border-radius:4px; padding:2px 4px"><span style="pointer-events:none; user-select:none; position:relative; top:-1px">[[File:Steam logo.png|14px|link=]]</span><span style="color:{{metacritic score color|{{{steam score}}}}}; margin-left:4px">{{{steam score}}}%</span></span> of players recommend this game on Steam</div>|}} | |||
}} | |||
</div> | |||
|}}<!-- | |||
-->{{#if:{{{genre|}}} | -->{{#if:{{{genre|}}} | ||
| <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:5px 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:5px 10px"> |
Revision as of 17:36, 3 May 2023
Template:ModernNote Template:ModernTodo Template:ModernTodo
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.