Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.

Difference between revisions of "Template:Warnings"

From PCGamingWiki, the wiki about fixing PC games
(updated VR warning handling for Cargo)
(migrated to Cargo)
Line 1: Line 1:
 
<includeonly><p>'''Warnings'''<!--
 
<includeonly><p>'''Warnings'''<!--
-->{{#if:{{#var:VR}}|{{ii}} This game requires a virtual reality headset (see [[#VR support|VR support]] for details).}}<!--
+
-->{{#ifeq:{{#var:VR}}|true|{{ii}} This game requires a virtual reality headset (see [[#VR support|VR support]] for details).}}<!--
-->{{#if:{{#show: {{PAGENAME}} | ?Always online}}|{{ii}} This game requires a [[Digital rights management (DRM)#Always online|constant internet connection]] for all game modes.}}<!--
+
-->{{#if:{{#cargo_query:tables=Tags|where=_pageID = {{PAGEID}} AND Always_online IS NOT NULL|fields=Always_online|default=}}|{{ii}} This game requires a [[Digital rights management (DRM)#Always online|constant internet connection]] for all game modes.}}<!--
-->{{#arraymaptemplate:{{#var:DRM}}|Warnings/DRM|,|}}<!--
+
-->{{#cargo_query:tables=Availability|where=_pageID = {{PAGEID}} AND Uses_DRM HOLDS LIKE '%'|fields=Uses_DRM|no html|format=template|template=Warnings/DRM|default=}}<!--
-->{{#if:{{#show: {{PAGENAME}} | ?GameSpy}}|{{--}} [[GameSpy]] online services have been shut down (see [[#Network|Network]] for solutions).{{#vardefine:GameSpy|true}}}}<!--
+
-->{{#if:{{#cargo_query:tables=Tags|where=_pageID = {{PAGEID}} AND GameSpy IS NOT NULL|fields=GameSpy|default=}}|{{--}} [[GameSpy]] online services have been shut down (see [[#Network|Network]] for solutions).{{#vardefine:GameSpy|true}}}}<!--
-->{{#if:{{#show: {{PAGENAME}} | ?Supported language}}|{{#if: {{#show: {{PAGENAME}} | ?English status}}||{{ii}} This game is not playable in English (see [[#Localizations|Localizations]] for supported languages).}}}}<!--
+
-->{{#if:{{#cargo_query:tables=L10n|where=_pageID = {{PAGEID}} AND Language='English'|fields=Language|default=}}||{{ii}} This game is not playable in English (see [[#Localizations|Localizations]] for supported languages).}}<!--
-->{{#if:{{#show: {{PAGENAME}} | ?Mantle support}}|{{ii}} Mantle graphics API option requires an AMD video card with a driver version earlier than Radeon Software Adrenalin 2019 Edition 19.5.1.<ref name="Mantle support">{{Refsnip|url=https://www.amd.com/en/support/kb/release-notes/rn-rad-win-19-5-1|title=AMD - Radeon Software Adrenalin 2019 Edition 19.5.1 Highlights|date=2019-05-15|snippet=Support for AMD Mantle API Technology has been discontinued starting with Radeon Software Adrenalin 2019 Edition 19.5.1. Users who wish to continue to use AMD Mantle API Technology may do so with prior supported Radeon Software releases.}}</ref>}}<!--
+
-->{{#if:{{#cargo_query:tables=API|where=_pageID = {{PAGEID}} AND Mantle_support='true'|fields=Mantle_support|default=}}|{{ii}} Mantle graphics API option requires an AMD video card with a driver version earlier than Radeon Software Adrenalin 2019 Edition 19.5.1.<ref name="Mantle support">{{Refsnip|url=https://www.amd.com/en/support/kb/release-notes/rn-rad-win-19-5-1|title=AMD - Radeon Software Adrenalin 2019 Edition 19.5.1 Highlights|date=2019-05-15|snippet=Support for AMD Mantle API Technology has been discontinued starting with Radeon Software Adrenalin 2019 Edition 19.5.1. Users who wish to continue to use AMD Mantle API Technology may do so with prior supported Radeon Software releases.}}</ref>}}<!--
-->{{#if:{{#var:OS X}}|{{#switch:{{#show: {{PAGENAME}} | ?MacOS Intel 32-bit app}}{{#show: {{PAGENAME}} | ?MacOS Intel 64-bit app}}
+
-->{{#if:{{#var:OS X}}|{{#switch:{{#cargo_query:tables=API|where=_pageID = {{PAGEID}}|fields=macOS_Intel_32bit_app|no html|default=}}{{#cargo_query:tables=API|where=_pageID = {{PAGEID}}|fields=macOS_Intel_64bit_app|no html|default=}}
|falsefalse={{#if:{{#show: {{PAGENAME}} | ?Mac OS X PowerPC app}}|{{--}} The Mac OS X version of this game ''does not work'' on Mac OS X Lion (version 10.7) or later due to the removal of support for PowerPC apps.}}
+
|falsefalse={{#if:{{#cargo_query:tables=API|where=_pageID = {{PAGEID}} AND Mac_OS_X_PowerPC_app IS NOT NULL|fields=Mac_OS_X_PowerPC_app|default=}}|{{--}} The Mac OS X version of this game ''does not work'' on Mac OS X Lion (version 10.7) or later due to the removal of support for PowerPC apps.}}
 
|truefalse={{--}} The macOS (OS X) version of this game ''does not work'' on macOS Catalina (version 10.15) or later due to the removal of support for 32-bit-only apps.
 
|truefalse={{--}} The macOS (OS X) version of this game ''does not work'' on macOS Catalina (version 10.15) or later due to the removal of support for 32-bit-only apps.
 
|truehackable={{ii}} The macOS (OS X) version of this game needs a fix to work on macOS Catalina (version 10.15) or later (see [[#API|API]] for details).}}}}<!--
 
|truehackable={{ii}} The macOS (OS X) version of this game needs a fix to work on macOS Catalina (version 10.15) or later (see [[#API|API]] for details).}}}}<!--
 
-->{{#if:{{#var:Windows 3.x}}|{{#if:{{#var:Windows native}}||{{ii}} The Windows 3.x version of this game ''does not work'' on 64-bit versions of Windows (see [[#Availability|Availability]] for affected versions).}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
-->{{#if:{{#var:Windows 3.x}}|{{#if:{{#var:Windows native}}||{{ii}} The Windows 3.x version of this game ''does not work'' on 64-bit versions of Windows (see [[#Availability|Availability]] for affected versions).}}}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 08:13, 12 October 2021

Documentation for the above template (sometimes hidden from view).

Notification template called by other templates (not to be added manually). See the Editing guide for further details.