Difference between revisions of "Development:Video"
From PCGamingWiki, the wiki about fixing PC games
m (fix for empty hdr parameters) |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 25: | Line 25: | ||
<tr class="template-infotable-body table-settings-video-body-row"> | <tr class="template-infotable-body table-settings-video-body-row"> | ||
<th scope="row" class="table-settings-video-body-parameter">[[Glossary:Widescreen resolution|Widescreen resolution]]</th> | <th scope="row" class="table-settings-video-body-parameter">[[Glossary:Widescreen resolution|Widescreen resolution]]</th> | ||
− | <td class="table-settings-video-body-rating">{{Tickcross-a|{{{widescreen resolution}}}||{{{widescreen resolution notes| | + | <td class="table-settings-video-body-rating">{{Tickcross-a|{{{widescreen resolution}}}||{{{widescreen resolution notes|}}}}}</td> |
{{#if: {{{wsgf link|}}} | <td class="table-settings-video-body-rating-WSGF">{{WSGF|ws-{{{widescreen wsgf award|}}}|{{{wsgf link|}}}|Widescreen WSGF award}}</td> }} | {{#if: {{{wsgf link|}}} | <td class="table-settings-video-body-rating-WSGF">{{WSGF|ws-{{{widescreen wsgf award|}}}|{{{wsgf link|}}}|Widescreen WSGF award}}</td> }} | ||
{{#if: {{{wsgf link|}}} | <td class="table-settings-video-body-notes"> | <td colspan="2" class="table-settings-video-body-notes"> }} {{{widescreen resolution notes|}}}</td> | {{#if: {{{wsgf link|}}} | <td class="table-settings-video-body-notes"> | <td colspan="2" class="table-settings-video-body-notes"> }} {{{widescreen resolution notes|}}}</td> | ||
Line 135: | Line 135: | ||
</tr> | </tr> | ||
}} | }} | ||
+ | <!-- HDR support --> | ||
{{#switch: {{#var:VR}},{{{hdr|}}}{{{hdr notes|}}} | true, | true,false | true,unknown = | #default= | {{#switch: {{#var:VR}},{{{hdr|}}}{{{hdr notes|}}} | true, | true,false | true,unknown = | #default= | ||
− | + | {{#if: {{#cargo_query:tables=API|where= | |
+ | (_pageID = {{PAGEID}} AND OpenGL_versions HOLDS LIKE '%') OR | ||
+ | (_pageID = {{PAGEID}} AND Direct3D_versions HOLDS LIKE '9%') OR | ||
+ | (_pageID = {{PAGEID}} AND Direct3D_versions HOLDS LIKE '10%') OR | ||
+ | (_pageID = {{PAGEID}} AND Direct3D_versions HOLDS LIKE '11%') OR | ||
+ | (_pageID = {{PAGEID}} AND Direct3D_versions HOLDS LIKE '12%') | ||
+ | |fields=Direct3D_versions|no html|default=}} | ||
+ | | {{#vardefine:show HDR|true}}{{#vardefine:retrofit HDR|true}} }} | ||
{{#ifeq: {{{hdr|}}}{{{hdr notes|}}}{{#var:show HDR}} | unknown || | {{#ifeq: {{{hdr|}}}{{{hdr notes|}}}{{#var:show HDR}} | unknown || | ||
<tr class="template-infotable-body table-settings-video-body-row"> | <tr class="template-infotable-body table-settings-video-body-row"> | ||
<th scope="row" class="table-settings-video-body-parameter">[[Glossary:High dynamic range (HDR)|<abbr title="Game supports expanded color space on HDR-compatible displays">High dynamic range display (HDR)</abbr>]]</th> | <th scope="row" class="table-settings-video-body-parameter">[[Glossary:High dynamic range (HDR)|<abbr title="Game supports expanded color space on HDR-compatible displays">High dynamic range display (HDR)</abbr>]]</th> | ||
− | <td class="table-settings-video-body-rating">{{Tickcross-a|{{{hdr|}}}||{{{hdr notes|}}}}}</td> | + | <td class="table-settings-video-body-rating">{{Tickcross-a|{{#if: {{{hdr|}}} | {{{hdr|}}} | unknown }}||{{{hdr notes|}}}}}</td> |
− | <td colspan="2" class="table-settings-video-body-notes">{{{hdr notes|}}}</td> | + | <td colspan="2" class="table-settings-video-body-notes">{{#if: {{{hdr notes|}}} | {{{hdr notes|}}} | {{#switch: {{{hdr|}}} | limited | true | always on | hackable = | #default = {{#if: {{#var:retrofit HDR}} | ''See the [[Glossary:High dynamic range (HDR)#Enable HDR output in unsupported games|glossary page]] for potential alternatives.'' }} }}}}</td> |
</tr> | </tr> | ||
}} | }} | ||
Line 166: | Line 174: | ||
-->{{#if:{{#var:screenshots}}|{{#vardefine:Video settings screenshots|true}}{{#vardefine:screenshots|}}}}<!-- | -->{{#if:{{#var:screenshots}}|{{#vardefine:Video settings screenshots|true}}{{#vardefine:screenshots|}}}}<!-- | ||
--></table></div>{{#arraymap: {{#var:engines}} | , | €€€€€ | {{#switch: {{lc:€€€€€}} | --></table></div>{{#arraymap: {{#var:engines}} | , | €€€€€ | {{#switch: {{lc:€€€€€}} | ||
− | | engine:unreal engine 4 = {{mm}} The game engine may allow for manual configuration of the game via its variables. See the [[Engine:Unreal Engine 4|Unreal Engine 4]] page for more details. | + | | engine:unreal engine 4 = {{#ifeq:{{#var:ue4videonote|false}}|false|{{mm}} The game engine may allow for manual configuration of the game via its variables. See the [[Engine:Unreal Engine 4|Unreal Engine 4]] page for more details.{{#vardefine:ue4videonote|true}}}} |
}}}}</includeonly><!-- | }}}}</includeonly><!-- | ||
--><noinclude>{{#cargo_declare: | --><noinclude>{{#cargo_declare: |
Latest revision as of 08:35, 23 May 2022
Error: #cargo_declare must be called from a template page.
Documentation for the above template (sometimes hidden from view).
Visit Development:Video/Documentation to edit this text. (How does this work?)