Difference between revisions of "Template:XDG"

From PCGamingWiki, the wiki about fixing PC games
m (updated link)
(migrated from Semantic MediaWiki to Cargo)
 
Line 1: Line 1:
 
<includeonly>{{#switch: {{lc:{{{1}}}}}
 
<includeonly>{{#switch: {{lc:{{{1}}}}}
|true  = {{++}} This game follows the [https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html XDG Base Directory Specification] on Linux. [[Linux XDG support::true| ]]
+
|true  = {{++}} This game follows the [https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html XDG Base Directory Specification] on Linux. {{#vardefine:Linux XDG support|true}}
|false = {{--}} This game does not follow the [https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html XDG Base Directory Specification] on Linux. [[Linux XDG support::false| ]]
+
|false = {{--}} This game does not follow the [https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html XDG Base Directory Specification] on Linux. {{#vardefine:Linux XDG support|false}}
|unknown = {{ii}} It's unknown whether this game follows the [https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html XDG Base Directory Specification] on Linux. Please fill in this information. [[Linux XDG support::unknown| ]]
+
|unknown = {{ii}} It's unknown whether this game follows the [https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html XDG Base Directory Specification] on Linux. Please fill in this information. {{#vardefine:Linux XDG support|unknown}}
  
|#default = {{ii}} {{{1|}}} [[Linux XDG support::other| ]]
+
|#default = {{ii}} {{{1|}}} {{#vardefine:Linux XDG support|other}}
}}{{#if: {{#var:Linux}} | | [[Category:Invalid template usage (XDG)]]}}</includeonly><noinclude>{{documentation}}</noinclude>
+
}}{{#if: {{#var:Linux}} | | [[Category:Invalid template usage (XDG)]]}}</includeonly><noinclude>{{#cargo_declare:
 +
_table=XDG
 +
|Supported=String
 +
}}</noinclude><includeonly>{{#if:{{#var:Game}}|{{#cargo_store:
 +
_table=XDG
 +
|Supported={{#var:Linux XDG support}}
 +
}}|}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 22:42, 8 October 2021

This template defines the table "XDG". This table has not been created yet.

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

This template states whether the game observes the XDG base directory specification.

Arguments
  • 1
Possible values: true, false, other
Use true if the games observes all parts of the specification, including where to save if the value is not set (~/.local/share/, ~/.config/), as well as using either the environmental values XDG_DATA_HOME, XDG_CONFIG_HOME or both.
Use false if none of the above are followed.
If the case is different (environmental values are observed but not the default location, game crashes when value is set), enter a custom text describing the issue instead, like so {{XDG|Custom text goes here.}}.
Syntax

{{XDG|1}}